Rename send_read_acknowledge

This commit is contained in:
Lonami Exo
2021-10-16 14:01:56 +02:00
parent 1b15a34f69
commit 010ee0813a
5 changed files with 14 additions and 12 deletions

View File

@@ -1237,12 +1237,12 @@ class Message(ChatGetter, SenderGetter):
async def mark_read(self):
"""
Marks the message as read. Shorthand for
`client.send_read_acknowledge()
<telethon.client.messages.MessageMethods.send_read_acknowledge>`
`client.mark_read()
<telethon.client.messages.MessageMethods.mark_read>`
with both ``entity`` and ``message`` already set.
"""
if self._client:
await self._client.send_read_acknowledge(
await self._client.mark_read(
await self.get_input_chat(), max_id=self.id)
async def pin(self, *, notify=False, pm_oneside=False):