We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
场景描述 我给用户发送1个键盘,用户按下不同的按键会会有不同的callbackdata,根据data的不同,和用户进行不同的询问,并获取用户的输入
代码
报错
疑问
The text was updated successfully, but these errors were encountered:
因为 Bot.send 方法仅支持必定包含 chat 字段的事件,而 CallbackQuery 里 chat 是可选的(虽然我也没测试出不含该字段的 CallbackQuery),所以消息发送失败。
Bot.send
因为不确定 chat 的存在,所以 CallbackQuery 未实现许多流程控制需要的抽象方法。
目前我找到了了从 inline_query_id 解析 chat_id 的方法,下下个版本(下版本是一个紧急修复)可能会重新设计 inline 类型的事件。
Sorry, something went wrong.
No branches or pull requests
场景描述
我给用户发送1个键盘,用户按下不同的按键会会有不同的callbackdata,根据data的不同,和用户进行不同的询问,并获取用户的输入
代码
报错
疑问
The text was updated successfully, but these errors were encountered: