【发布时间】:2019-10-17 18:04:07
【问题描述】:
不久前,我曾经向这样的频道发送消息:
def broadcast(bot, update):
bot.send_message(channel_id, text)
我会回复用户:
def reply(bot, update):
update.message.reply_text(text)
现在,CommandHandlers 的参数似乎已从 (bot, update) 更改为 (update, context)。结果,我仍然可以使用 update 参数回复用户,如下所示:
def reply(update, context):
update.message.reply_text(text)
但我无法再向频道发送消息。我该怎么做?
【问题讨论】:
标签: telegram telegram-bot python-telegram-bot