Apply suggestions from code review

This commit is contained in:
Lonami 2023-11-10 17:58:23 +01:00 committed by GitHub
parent 619afe616e
commit d9475ec203
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -331,10 +331,7 @@ 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.
:param buttons: See :meth:`~telethon.Client.send_message`.
"""
return await self._client.send_message(
self.chat,
@ -361,10 +358,7 @@ 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.
:param buttons: See :meth:`~telethon.Client.send_message`.
"""
return await self._client.send_message(
self.chat,
@ -399,10 +393,7 @@ 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.
:param buttons: See :meth:`~telethon.Client.send_message`.
"""
return await self._client.edit_message(
self.chat,