当有人在消息上添加“反应”(喜欢/不喜欢/其他表情符号)时,python-telegram-bot 是否可以获取更新?

问题描述 投票:0回答:1

以下代码使用 python-telegram-bot (对于在某个组中添加为管理员的机器人)捕获所有类型的消息 - 发布消息、回复、编辑。但是,当有人在现有消息上添加类似(或其他表情符号)时,不会调用处理程序函数。

from telegram import Update
from telegram.ext import Updater, MessageHandler, Filters, CallbackContext

updater = Updater(token='TOKEN', use_context=True)
dispatcher = updater.dispatcher

def handler(update: Update, context: CallbackContext):
    print("here")

echo_handler = MessageHandler(Filters.all, handler)
dispatcher.add_handler(echo_handler)
updater.start_polling()

当有人在消息上添加“反应”(喜欢/不喜欢/其他表情符号)时,python-telegram-bot 是否可以在处理程序函数中获取更新?

python-telegram-bot
1个回答
0
投票

目前还不可能。

您可以对以下票进行投票:https://bugs.telegram.org/c/12710

© www.soinside.com 2019 - 2024. All rights reserved.