mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-11 16:42:28 +03:00
Update client/src/telethon/_impl/client/events/queries.py
Co-authored-by: Lonami <totufals@hotmail.com>
This commit is contained in:
parent
8fdc255468
commit
fe87031fbd
|
@ -56,9 +56,8 @@ class ButtonCallback(Event):
|
||||||
"""
|
"""
|
||||||
Whether the button was clicked in an inline message.
|
Whether the button was clicked in an inline message.
|
||||||
|
|
||||||
If it was, most likely bot is not in chat, and the :meth:`chat` property will return :data:`None`,
|
If it was, it might indicate that the bot is not in chat.
|
||||||
same for :meth:`get_message` method, however editing the message, using :meth:`message_id` property
|
If this is the case, both the :meth:`chat` and :meth:`get_message` will return :data:`None`.
|
||||||
and :meth:`answer` method will work.
|
|
||||||
"""
|
"""
|
||||||
return isinstance(self._raw, types.UpdateInlineBotCallbackQuery)
|
return isinstance(self._raw, types.UpdateInlineBotCallbackQuery)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user