我正在创建一个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 = []
)
此代码没有错误,也许是逻辑错误