Telegram 机器人,quote=False 问题

Telegram bot, quote=False issue

我在使用 python-telegram-bot 时遇到了一些问题。我一直在本地 ubuntu 虚拟机上工作,没有任何问题。我已将 .py 上传到另一台服务器上的虚拟机 (24/7 运行ning),但我 运行 遇到了一些问题。 我收到此错误:

telegram.ext.dispatcher - ERROR - No error handlers are registered, logging exception.
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/telegram/ext/dispatcher.py", line 555, in process_update
    handler.handle_update(update, self, check, context)
  File "/usr/local/lib/python3.8/dist-packages/telegram/ext/handler.py", line 198, in handle_update
    return self.callback(update, context)
  File "scriptbot_v7.py", line 77, in opciones
    query.edit_message_text(text=info(), parse_mode='html', quote=False)
TypeError: edit_message_text() got an unexpected keyword argument 'quote'

知道为什么报价不再有效了吗?当我删除它时它起作用了,但每个人都看到了别人在说什么,我希望这种情况不会发生。

quote 参数仅适用于 telegram.Message.reply_* 方法。这只是传递正确 reply_to_message_id 的捷径。因为 Bot/CallbackQuery.edit_message_text 没有 reply_to_message_id 参数,所以也没有 quote 参数。这是因为在编辑消息时,您无法更改它是否是回复。

When I delete that it works, but everyone sees what someone else is saying and I preferred that doesn't happend.

请注意,无法将消息发送到只有部分成员可以看到的群聊。群组中发布的所有内容都可以被该群组的每个成员看到。


免责声明:我目前是 python-telegram-bot

的维护者