fix docstring typo in ButtonCallback.chat

This commit is contained in:
apepenkov 2023-11-11 23:00:01 +03:00
parent 8948c8cef9
commit c2509ade09

View File

@ -50,7 +50,7 @@ class ButtonCallback(Event):
def chat(self) -> Optional[Chat]: def chat(self) -> Optional[Chat]:
""" """
The :term:`chat` when the message was sent. The :term:`chat` when the message was sent.
Only available if the event was triggered by a button under usual message, not an inline one. Only available if the event was triggered by a button under a usual message, not an inline one.
""" """
if isinstance(self._raw, types.UpdateInlineBotCallbackQuery): if isinstance(self._raw, types.UpdateInlineBotCallbackQuery):
return None return None