From 45e7b7a380878c7d1f265fb5f21222dc90bd6d34 Mon Sep 17 00:00:00 2001 From: apepenkov Date: Fri, 10 Nov 2023 10:38:19 +0300 Subject: [PATCH] add missing buttons docstring to respond and reply --- client/src/telethon/_impl/client/types/message.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/client/src/telethon/_impl/client/types/message.py b/client/src/telethon/_impl/client/types/message.py index 4e304509..c3cd833d 100644 --- a/client/src/telethon/_impl/client/types/message.py +++ b/client/src/telethon/_impl/client/types/message.py @@ -331,6 +331,10 @@ class Message(metaclass=NoPublicConstructor): :param markdown: See :ref:`formatting`. :param html: See :ref:`formatting`. :param link_preview: See :meth:`~telethon.Client.send_message`. + :param buttons: + The buttons to use for the message. + + Only bot accounts can send buttons. """ return await self._client.send_message( self.chat, @@ -357,6 +361,10 @@ class Message(metaclass=NoPublicConstructor): :param markdown: See :ref:`formatting`. :param html: See :ref:`formatting`. :param link_preview: See :meth:`~telethon.Client.send_message`. + :param buttons: + The buttons to use for the message. + + Only bot accounts can send buttons. """ return await self._client.send_message( self.chat,