From 5b33b4b9c197e741fb6f0f7eebfa1de52bf642be Mon Sep 17 00:00:00 2001 From: apepenkov <39992738+apepenkov@users.noreply.github.com> Date: Sun, 17 Dec 2023 23:57:03 +0300 Subject: [PATCH] Update client/src/telethon/_impl/client/events/queries.py Co-authored-by: Lonami --- client/src/telethon/_impl/client/events/queries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/telethon/_impl/client/events/queries.py b/client/src/telethon/_impl/client/events/queries.py index dc46d1b3..340b1c1d 100644 --- a/client/src/telethon/_impl/client/events/queries.py +++ b/client/src/telethon/_impl/client/events/queries.py @@ -78,7 +78,7 @@ class ButtonCallback(Event): """ 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, except in channel. + This may be :data:`None` if :data:`via_inline` is :data:`True`, as the bot might not be part of the chat. """ if isinstance(self._raw, types.UpdateInlineBotCallbackQuery): owner_id = None