Update client/src/telethon/_impl/client/events/queries.py

Co-authored-by: Lonami <totufals@hotmail.com>
This commit is contained in:
apepenkov 2023-12-17 23:56:36 +03:00 committed by GitHub
parent 8fdc255468
commit fe87031fbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,9 +56,8 @@ class ButtonCallback(Event):
"""
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`,
same for :meth:`get_message` method, however editing the message, using :meth:`message_id` property
and :meth:`answer` method will work.
If it was, it might indicate that the bot is not in chat.
If this is the case, both the :meth:`chat` and :meth:`get_message` will return :data:`None`.
"""
return isinstance(self._raw, types.UpdateInlineBotCallbackQuery)