Return produced service message with pin_message

Fixes #1394.
This commit is contained in:
Lonami Exo
2020-04-29 10:29:14 +02:00
parent 74bced75b4
commit c43e2a0a3a
4 changed files with 25 additions and 5 deletions

View File

@@ -259,7 +259,7 @@ class Album(EventBuilder):
`telethon.client.messages.MessageMethods.pin_message`
with both ``entity`` and ``message`` already set.
"""
await self.messages[0].pin(notify=notify)
return await self.messages[0].pin(notify=notify)
def __len__(self):
"""