Struct telegram_typings::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: String
Text of the button. If none of the optional fields are used, it will be sent as a message when the button is pressed
request_contact: Option<bool>
If True, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only
request_location: Option<bool>
If True, the user's current location will be sent when the button is pressed. Available in private chats only
Trait Implementations
impl Debug for KeyboardButton
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for KeyboardButton
[src]
fn clone(&self) -> KeyboardButton
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more