INNER CODE UNIT · Python
callback_query
TechXueXi/TechXueXi · SourcePackages/telegramListener.py:60
def callback_query(call):
bot.answer_callback_query(call.id, "开始学习")
bot.delete_message(call.message.chat.id, call.message.id)
if call.data == "ALLUSER":
bot.send_message(call.message.chat.id, "全部账号开始学习")
pdl.start(None)
else:
bot.send_message(call.message.chat.id, call.data+" 开始学习")
pdl.start(call.data)
@bot.message_handler(commands=['list'], func=authorize)
@exception_catcher(reserve_fun=bot.reply_to, fun_args=("Chrome 崩溃啦",), args_push=True)
def list(message):
bot.send_chat_action(master, "typing")
msg = pdl.get_user_list()
bot.reply_to(message, msg)