From 69e741f2cfbccb85a0ca3e073b3fa1ef90fc0dca Mon Sep 17 00:00:00 2001 From: Lonami Date: Sun, 12 Nov 2023 15:20:38 +0100 Subject: [PATCH] Update client/src/telethon/_impl/client/events/queries.py --- client/src/telethon/_impl/client/events/queries.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/src/telethon/_impl/client/events/queries.py b/client/src/telethon/_impl/client/events/queries.py index 97447a32..c68a1d52 100644 --- a/client/src/telethon/_impl/client/events/queries.py +++ b/client/src/telethon/_impl/client/events/queries.py @@ -49,8 +49,9 @@ class ButtonCallback(Event): @property def chat(self) -> Optional[Chat]: """ - The :term:`chat` when the message was sent. - Only available if the event was triggered by a button under a usual message, not an inline one. + The :term:`chat` where the button was clicked. + + This will be :data:`None` if the message with the button was sent from a user's inline query. """ if isinstance(self._raw, types.UpdateInlineBotCallbackQuery): return None