mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-28 12:23:45 +03:00
Fix custom.Dialog passing the wrong instance to custom.Draft
This commit is contained in:
parent
d65f8ecc0d
commit
fc834f60fb
|
@ -79,7 +79,7 @@ class Dialog:
|
|||
self.unread_count = dialog.unread_count
|
||||
self.unread_mentions_count = dialog.unread_mentions_count
|
||||
|
||||
self.draft = Draft._from_dialog(client, dialog)
|
||||
self.draft = Draft._from_dialog(client, self)
|
||||
|
||||
self.is_user = isinstance(self.entity, types.User)
|
||||
self.is_group = (
|
||||
|
|
Loading…
Reference in New Issue
Block a user