Document custom.Message

This commit is contained in:
Lonami Exo
2018-06-02 12:52:38 +02:00
parent 5c76af34aa
commit f7222407de
6 changed files with 48 additions and 16 deletions

View File

@@ -204,8 +204,8 @@ class ChatAction(EventBuilder):
@property
def pinned_message(self):
"""
If ``new_pin`` is ``True``, this returns the (:tl:`Message`)
object that was pinned.
If ``new_pin`` is ``True``, this returns the
`telethon.tl.custom.message.Message` object that was pinned.
"""
if self._pinned_message == 0:
return None

View File

@@ -91,7 +91,8 @@ class MessageRead(EventBuilder):
@property
def messages(self):
"""
The list of :tl:`Message` **which contents'** were read.
The list of `telethon.tl.custom.message.Message`
**which contents'** were read.
Use :meth:`is_read` if you need to check whether a message
was read instead checking if it's in here.