Skip to content

Telegram组件中要怎么设置Bot的快捷指令? #192

Closed Answered by ForteScarlet
Flock-YT asked this question in Q&A
Discussion options

You must be logged in to vote

可参考 #21 的代码示例直接使用 TelegramBot 中的API,如果想要直接使用原始API,Java中需要通过静态类 TelegramBotRequests 使用(TelegramBotRequests.requestxxx 之类的)

当然,示例是Kotlin的,在Java中的样子可能会有些差异

指正:TelegramBotRequests 在 JVM 平台的API尚未实现,直接用 TelegramBot 中的 commands API吧

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@Flock-YT
Comment options

@Flock-YT
Comment options

@ForteScarlet
Comment options

Answer selected by Flock-YT
@Flock-YT
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
组件:Telegram 与Telegram组件有关的内容
2 participants