Search code examples
pythontelethonpyrogramtelegram-api

get list of archived chats in pyrogram


How can I get list of archived chats with pyrogram? or with any other python library?

I have searched a lot in documentation and goolge, couldn't find anything.

looks like not implemented in pyrogram.

---------------------------------------------


Solution

  • For telethon use get_dialogs(archived=True).

    For pyrogram it's not implements in native get_dialogs, use the raw api messages.getDialog with folder_id=1. copy the library source code of get_dialogs, and re-implement it with said parameter.