mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 13:29:47 +00:00
Fix .get_dialogs() failing due to IDs being marked
Also removed utils.find_user_or_chat to prevent this from happening again. Using a dict {marked_id: entity} is better.
This commit is contained in:
@@ -338,9 +338,8 @@ class TelegramClient(TelegramBareClient):
|
||||
break
|
||||
|
||||
offset_date = r.messages[-1].date
|
||||
offset_peer = utils.find_user_or_chat(
|
||||
r.dialogs[-1].peer, entities, entities
|
||||
)
|
||||
offset_peer = entities[
|
||||
utils.get_peer_id(r.dialogs[-1].peer, add_mark=True)]
|
||||
offset_id = r.messages[-1].id & 4294967296 # Telegram/danog magic
|
||||
|
||||
dialogs = UserList(dialogs.values())
|
||||
|
Reference in New Issue
Block a user