telegram机器人例子(tg机器人例子带远程数据库操作)

telegram机器人例子 调用了官方的api接口,全部转换为get请求,带远程数据库操作

易语言mysql连接池 可查询返回json -数据库类源码-三叶资源网 //www.sanye.cx/?id=16793

telegram机器人例子(tg机器人例子带远程数据库操作)

telegram机器人例子(tg机器人例子带远程数据库操作)

文件内含 部分接口:

一、

查询所有消息:

https://api.telegram.org/bot【token】/getUpdates

二、

查询最新一条消息:

https://api.telegram.org/bot【token】/getUpdates?offset=-1&limit=1

三、

发送消息:

https://api.telegram.org/bot【token】/sendMessage?chat_id=群ID&text=Hello

四、

回复消息:

https://api.telegram.org/bot【token】/sendMessage?chat_id=群ID&text=发送消息内容&reply_to_message_id=回复消息ID

五、

按钮样式1:

https://api.telegram.org/bot【token】/sendMessage?chat_id=群ID&text=消息内容&reply_markup={"keyboard":[["option1"],["option2"]]}

等等。。。。

参照官方接口文档,所有接口 大同小异:https://core.telegram.org/bots/api

用 https://api.telegram.org/bot【token】/+方法   调用即可!!!!!!!!

相关文件下载地址
©下载资源版权归作者所有;本站所有资源均来源于网络,仅供学习使用,请支持正版!

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注