Skip to content

Commit e5b0795

Browse files
AliMirloutsnoam
authored andcommitted
Typo fixed for docs (python-telegram-bot#747)
[ci skip]
1 parent ae29620 commit e5b0795

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

telegram/keyboardbutton.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)