Skip to content

交互按钮

Properties ​

action? ​

optional action?: "callback" | "command" | "link"

callback 回调(默认) / command 指令(输入框插入) / link 跳转


data? ​

optional data?: string

callback / command 的数据


enter? ​

optional enter?: boolean

command 点击后是否直接发送


id? ​

optional id?: string


label ​

label: string


permission? ​

optional permission?: readonly string[] | "all" | "admin"

"all" 所有人 / "admin" 仅管理员 / 用户 id 列表


reply? ​

optional reply?: boolean

command 是否引用本消息


style? ​

optional style?: 0 | 1 | 2 | 3

0 灰色线框 1 蓝色线框 2 白字 3 蓝底白字


unsupportedTips? ​

optional unsupportedTips?: string

客户端版本过低时的提示文案


url? ​

optional url?: string

link 的跳转地址


visitedLabel? ​

optional visitedLabel?: string

点击后按钮文字

Released under the MIT License with love.