mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Fix entities weren't being passed to Draft
This commit is contained in:
@@ -45,10 +45,10 @@ class Draft:
|
||||
draft=dialog.dialog.draft, entity=dialog.entity)
|
||||
|
||||
@classmethod
|
||||
def _from_update(cls, client, update, entities=None):
|
||||
def _from_update(cls, client, update, entities):
|
||||
assert isinstance(update, UpdateDraftMessage)
|
||||
return cls(client=client, peer=update.peer, draft=update.draft,
|
||||
entity=(entities or {}).get(get_peer_id(update.peer)))
|
||||
entity=entities.get(get_peer_id(update.peer)))
|
||||
|
||||
@property
|
||||
def entity(self):
|
||||
|
Reference in New Issue
Block a user