【发布时间】:2018-08-01 00:16:33
【问题描述】:
我有一个 python Telegram 机器人,我想创建一个命令,让机器人向用户提问,机器人应该将答案作为 PM 发送给我。现在我想知道如何获得答案/非命令消息?
def Command(bot, update):
bot.send_message(chat_id=update.message.chat_id, text="How are you?")
bot.send.message(chat_id= <MY CHAT_ID>, text=update.message.text)
我这样尝试过,但现在 Bot 向我发送“/Command input”而不是问题的答案。
【问题讨论】:
标签: python python-3.x telegram telegram-bot python-telegram-bot