一个 PHP 写的 telegram 机器人
Name | Description | Usage |
help | Help plugin. Get info from other plugins. |
/help - Show list of plugins. /help all - Show all commands for every plugin. /help [plugin name] - Commands for that plugin. |
bot | 询问图灵小机器人. |
/bot info: 请求图灵的机器人接口,并返回回答。 Request Turing robot, and return the results. Only support Chinese. 升级链接|Upgrade link:http://www.tuling123.com/openapi/record.do?channel=98150 图灵机器人注册邀请地址,每有一个用户通过此地址注册账号,增加本接口可调用次数 1000次/天。 Turing robot registration invitation address, each user has a registered account through this address, increase the number of calls this interface can be 1000 times / day. Translation from Google! |
Searches Google and send results | /google - Searches Google and send results. | |
img | Random search an image with Google API. | /img info: Random search an image with Google API. |
stats | Plugin to update user stats. |
/stats - Returns a list of Username [telegram_id]: msg_num only top.10. /stats 20150528 - Returns this day stats /stats all: Returns All days stats. /stats 20150528 10: Returns a list only top 10. /state user_id: Returns this user All days stats. |
echo | Simplest plugin ever! | /echo [whatever]: echoes the msg. |
- clone 项目到本地
- 配置 redis
- 设置 Telegram 回掉地址,地址为 项目地址 + ?token={telegram_bot.token}
- 开始玩
You can contact me via Telegram but if you have an issue please open one.