【问题标题】:User's non-command answer in Telegram Bot getting as PM用户在 Telegram Bot 中的非命令回答成为 PM
【发布时间】: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


    【解决方案1】:
    猜你喜欢
    • 2020-06-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-22
    • 1970-01-01
    • 2019-04-27
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多