From fc834f60fbd848e3444d27bfc9fc9e90b5d63f49 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Mon, 25 Jun 2018 21:24:46 +0200 Subject: [PATCH] Fix custom.Dialog passing the wrong instance to custom.Draft --- telethon/tl/custom/dialog.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/tl/custom/dialog.py b/telethon/tl/custom/dialog.py index fd2becdc..c761141f 100644 --- a/telethon/tl/custom/dialog.py +++ b/telethon/tl/custom/dialog.py @@ -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 = (