Struct wdg_telegram_types::KeyboardButton [] [src]

pub struct KeyboardButton {
    pub _text: String,
    pub _request_contact: Option<bool>,
    pub _request_location: Option<bool>,
}

This object represents one button of the reply keyboard. For simple text buttons String can be used instead of this object to specify text of the button. Optional fields are mutually exclusive.

Fields

Text of the button. If none of the optional fields are used, it will be sent to the bot as a message when the button is pressed

Optional. If True, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only

Optional. If True, the user's current location will be sent when the button is pressed. Available in private chats only