Skip to content

Interface: KeyboardButton ​

回复键盘的按钮。

Properties ​

request_contact? ​

optional request_contact: boolean

是否将用户的电话号码将作为联系人发送。

仅在私聊中可用。

与 request_location 和 request_poll 互斥。

Defined in ​

src/typings/message.ts:344


request_location? ​

optional request_location: boolean

是否发送当前位置。

仅在私聊中可用。

与 request_contact 和 request_poll 互斥。

Defined in ​

src/typings/message.ts:352


request_poll? ​

optional request_poll: KeyboardButtonPollType

将要创建的投票类型。

仅在私聊中可用。

与 request_contact 和 request_location 互斥。

Defined in ​

src/typings/message.ts:360


text ​

text: string

按钮的文本. 如果没有使用任何可选字段,当按下按钮时,它将作为消息发送

Defined in ​

src/typings/message.ts:336

Released under the MIT License.