首页 文章
  • 1 votes
     answers
     views

    如何使用bot从Telegram组中读取消息?

    我想连接一个简单的电报机器人来读取组中的消息(我不是管理员) . 我已将机器人添加到组中,但它不起作用 . 这是我在Python中的代码: import telepot from pprint import pprint import time from telepot.loop import MessageLoop key = "MY API" bot = telepot...
  • 0 votes
     answers
     views

    python-telegram-bot:一段时间后删除内联键盘

    我在会话处理程序中使用内联键盘,它有两个步骤: 使用内联键盘菜单发送消息 . 接收回调并执行所选命令 . 一切正常,但如果用户在1分钟后没有选择任何内容,我想找出一种方法来删除它并关闭对话 . 来自python-telegram-bot的标准代码用内联键盘发送消息,例如: def start(bot, update): keyboard = [[InlineKeyboardBu...

热门问题