Support iterating over specific drafts more easily

This commit is contained in:
Lonami Exo
2019-08-01 20:15:32 +02:00
parent d3221a508a
commit 8a933afc5d
3 changed files with 54 additions and 27 deletions

View File

@@ -87,7 +87,7 @@ class Dialog:
self.unread_count = dialog.unread_count
self.unread_mentions_count = dialog.unread_mentions_count
self.draft = Draft._from_dialog(client, self)
self.draft = Draft(client, self.entity, self.dialog.draft)
self.is_user = isinstance(self.entity, types.User)
self.is_group = (