fwolf / tgbot-php

一个 PHP 写的 telegram 机器人

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

telegram 机器人

一个 PHP 写的 telegram 机器人

Bot Commands

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!
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.

Installation

  1. clone 项目到本地
  2. 配置 redis
  3. 设置 Telegram 回掉地址,地址为 项目地址 + ?token={telegram_bot.token}
  4. 开始玩

Contact me

You can contact me via Telegram but if you have an issue please open one.

About

一个 PHP 写的 telegram 机器人


Languages

Language:PHP 99.5%Language:Nginx 0.5%