mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-30 11:19:24 +02:00
parent
ae29620cd6
commit
e5b0795916
1 changed files with 4 additions and 4 deletions
|
@ -31,15 +31,15 @@ class KeyboardButton(TelegramObject):
|
|||
|
||||
Attributes:
|
||||
text (:obj:`str`): Text of the button.
|
||||
request_location (:obj:`bool`): Optional. If the user's phone number will be sent.
|
||||
request_contact (:obj:`bool`): Optional. If the user's current location will be sent.
|
||||
request_contact (:obj:`bool`): Optional. If the user's phone number will be sent.
|
||||
request_location (:obj:`bool`): Optional. If the user's current location will be sent.
|
||||
|
||||
Args:
|
||||
text (:obj:`str`): 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.
|
||||
request_location (:obj:`bool`, optional): If True, the user's phone number will be sent as
|
||||
request_contact (:obj:`bool`, optional): If True, the user's phone number will be sent as
|
||||
a contact when the button is pressed. Available in private chats only.
|
||||
request_contact (:obj:`bool`, optional): If True, the user's current location will be sent
|
||||
request_location (:obj:`bool`, optional): If True, the user's current location will be sent
|
||||
when the button is pressed. Available in private chats only.
|
||||
|
||||
Note:
|
||||
|
|
Loading…
Add table
Reference in a new issue