File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -31,15 +31,15 @@ class KeyboardButton(TelegramObject):
3131
3232 Attributes:
3333 text (:obj:`str`): Text of the button.
34- request_location (:obj:`bool`): Optional. If the user's phone number will be sent.
35- request_contact (:obj:`bool`): Optional. If the user's current location will be sent.
34+ request_contact (:obj:`bool`): Optional. If the user's phone number will be sent.
35+ request_location (:obj:`bool`): Optional. If the user's current location will be sent.
3636
3737 Args:
3838 text (:obj:`str`): Text of the button. If none of the optional fields are used, it will be
3939 sent to the bot as a message when the button is pressed.
40- request_location (:obj:`bool`, optional): If True, the user's phone number will be sent as
40+ request_contact (:obj:`bool`, optional): If True, the user's phone number will be sent as
4141 a contact when the button is pressed. Available in private chats only.
42- request_contact (:obj:`bool`, optional): If True, the user's current location will be sent
42+ request_location (:obj:`bool`, optional): If True, the user's current location will be sent
4343 when the button is pressed. Available in private chats only.
4444
4545 Note:
You can’t perform that action at this time.
0 commit comments