mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-05 04:30:22 +03:00
Apply suggestions from code review
This commit is contained in:
parent
619afe616e
commit
d9475ec203
|
@ -331,10 +331,7 @@ class Message(metaclass=NoPublicConstructor):
|
||||||
:param markdown: See :ref:`formatting`.
|
:param markdown: See :ref:`formatting`.
|
||||||
:param html: See :ref:`formatting`.
|
:param html: See :ref:`formatting`.
|
||||||
:param link_preview: See :meth:`~telethon.Client.send_message`.
|
:param link_preview: See :meth:`~telethon.Client.send_message`.
|
||||||
:param buttons:
|
:param buttons: See :meth:`~telethon.Client.send_message`.
|
||||||
The buttons to use for the message.
|
|
||||||
|
|
||||||
Only bot accounts can send buttons.
|
|
||||||
"""
|
"""
|
||||||
return await self._client.send_message(
|
return await self._client.send_message(
|
||||||
self.chat,
|
self.chat,
|
||||||
|
@ -361,10 +358,7 @@ class Message(metaclass=NoPublicConstructor):
|
||||||
:param markdown: See :ref:`formatting`.
|
:param markdown: See :ref:`formatting`.
|
||||||
:param html: See :ref:`formatting`.
|
:param html: See :ref:`formatting`.
|
||||||
:param link_preview: See :meth:`~telethon.Client.send_message`.
|
:param link_preview: See :meth:`~telethon.Client.send_message`.
|
||||||
:param buttons:
|
:param buttons: See :meth:`~telethon.Client.send_message`.
|
||||||
The buttons to use for the message.
|
|
||||||
|
|
||||||
Only bot accounts can send buttons.
|
|
||||||
"""
|
"""
|
||||||
return await self._client.send_message(
|
return await self._client.send_message(
|
||||||
self.chat,
|
self.chat,
|
||||||
|
@ -399,10 +393,7 @@ class Message(metaclass=NoPublicConstructor):
|
||||||
:param markdown: See :ref:`formatting`.
|
:param markdown: See :ref:`formatting`.
|
||||||
:param html: See :ref:`formatting`.
|
:param html: See :ref:`formatting`.
|
||||||
:param link_preview: See :meth:`~telethon.Client.send_message`.
|
:param link_preview: See :meth:`~telethon.Client.send_message`.
|
||||||
:param buttons:
|
:param buttons: See :meth:`~telethon.Client.send_message`.
|
||||||
The buttons to use for the message.
|
|
||||||
|
|
||||||
Only bot accounts can send buttons.
|
|
||||||
"""
|
"""
|
||||||
return await self._client.edit_message(
|
return await self._client.edit_message(
|
||||||
self.chat,
|
self.chat,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user