Update Telethon

This commit is contained in:
Tulir Asokan
2022-05-19 13:15:39 +03:00
parent 7feea5aa6d
commit e6ef40e51d
3 changed files with 13 additions and 11 deletions
+3
View File
@@ -57,6 +57,7 @@ from telethon.tl.types import (
UpdateReadChannelInbox,
UpdateReadHistoryInbox,
UpdateReadHistoryOutbox,
UpdateShort,
UpdateShortChatMessage,
UpdateShortMessage,
UpdateUserName,
@@ -297,6 +298,8 @@ class AbstractUser(ABC):
# region Telegram update handling
async def _update(self, update: TypeUpdate) -> None:
if isinstance(update, UpdateShort):
update = update.update
asyncio.create_task(self._handle_entity_updates(getattr(update, "_entities", {})))
if isinstance(
update,