我尝试与CoversationHandler一起工作,但它没有出错... !!!!!!!!!! 11

时间:2019-06-16 05:46:51

标签: python telegram-bot

我正在创建一个CoversationHandler并在(如果updata.callback_query)下返回它

SEND2 = 22
def startentry(bot, update):
    bot.send_message(chat_id = query.message.chat_id, text = "دلیل خود را بفرستید...")
    global text20
    text20 = update.message.text
    return SEND2
def senmes(bot, update):
    text20 = update.message.text
    bot.send_message(chat_id = userchatid[0], text = text20)
    return SEND
    return ConversationHandler.END
CovForBadalil = ConversationHandler(
    entry_points = [MessageHandler(Filters.text, startentry)],

    states = {
        SEND : [MessageHandler(Filters.text, senmes)]
    },
    fallbacks = []


)

此代码没有错误,也许是逻辑错误

0 个答案:

没有答案