Telegram组件中要怎么设置Bot的快捷指令? #192
-
涉及的编程语言Java 涉及的组件库Telegram 疑问描述Telegram的官方API中有一个setMyCommands API用于设置Bot的快捷指令,请问在Simbot的Telegram组件中该怎么调用API设置快捷指令呢? |
Beta Was this translation helpful? Give feedback.
Answered by
ForteScarlet
Jul 22, 2024
Replies: 1 comment 4 replies
-
目前仅实现了 GetMyCommandsApi ,尚未实现 SetMyCommands API |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
可参考 #21 的代码示例直接使用
TelegramBot
中的API,如果想要直接使用原始API,Java中需要通过静态类TelegramBotRequests
使用(TelegramBotRequests.requestxxx
之类的)当然,示例是Kotlin的,在Java中的样子可能会有些差异
指正:
TelegramBotRequests
在 JVM 平台的API尚未实现,直接用TelegramBot
中的commands
API吧