mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2025-03-17 04:39:55 +01:00
callback query docstring (#749)
showed from instead of from_user and was missing the informational note about it. [ci skip]
This commit is contained in:
parent
eef1238d60
commit
5ed06df840
1 changed files with 3 additions and 2 deletions
|
@ -30,11 +30,12 @@ class CallbackQuery(TelegramObject):
|
|||
inline mode), the field :attr:`inline_message_id` will be present.
|
||||
|
||||
Note:
|
||||
* In Python `from` is a reserved word, use `from_user` instead.
|
||||
Exactly one of the fields :attr:`data` or :attr:`game_short_name` will be present.
|
||||
|
||||
Attributes:
|
||||
id (:obj:`str`): Unique identifier for this query.
|
||||
from (:class:`telegram.User`): Sender.
|
||||
from_user (:class:`telegram.User`): Sender.
|
||||
message (:class:`telegram.Message`): Optional. Message with the callback button that
|
||||
originated the query.
|
||||
inline_message_id (:obj:`str`): Optional. Identifier of the message sent via the bot in
|
||||
|
@ -46,7 +47,7 @@ class CallbackQuery(TelegramObject):
|
|||
|
||||
Args:
|
||||
id (:obj:`str`): Unique identifier for this query.
|
||||
from (:class:`telegram.User`): Sender.
|
||||
from_user (:class:`telegram.User`): Sender.
|
||||
message (:class:`telegram.Message`, optional): Message with the callback button that
|
||||
originated the query. Note that message content and message date will not be available
|
||||
if the message is too old.
|
||||
|
|
Loading…
Add table
Reference in a new issue