mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-01-25 00:34:19 +03:00
Fix getting ID on custom Dialog class from dce0fd9
This commit is contained in:
parent
790b0d2d23
commit
1c9dc8dc63
|
@ -59,7 +59,7 @@ class Dialog:
|
|||
|
||||
self.entity = entities[utils.get_peer_id(dialog.peer)]
|
||||
self.input_entity = utils.get_input_peer(self.entity)
|
||||
self.id = utils.get_peer_id(self.input_entity)
|
||||
self.id = utils.get_peer_id(self.entity) # ^ May be InputPeerSelf()
|
||||
self.name = utils.get_display_name(self.entity)
|
||||
|
||||
self.unread_count = dialog.unread_count
|
||||
|
|
Loading…
Reference in New Issue
Block a user