Improve logging and make get_dialogs use iterators more

This commit is contained in:
Tulir Asokan
2019-08-06 19:58:15 +03:00
parent ee08458df1
commit 43d16474c2
5 changed files with 17 additions and 14 deletions
+2
View File
@@ -108,6 +108,8 @@ class Puppet(CustomPuppetMixin):
if self.custom_mxid:
self.by_custom_mxid[self.custom_mxid] = self
self.log = self.log.getChild(str(self.id))
@property
def tgid(self) -> TelegramID:
return self.id