Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

how to get chat folders? – telethon

I’m trying to get the chat folders using telethon

I’m not sure what to do and there’s nothing i found in the documentation, can anyone help? it will be appreciated <3

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

Folders are called Filters in the full api, you can get them with GetDialogFilters

req = await client(functions.messages.GetDialogFiltersRequest())

The req will be of type DialogFilter which can be either of:

  • DialogFilterDefault:
    ignore it, it was added as premium feature to sort "All" tab

  • DialogFilter:
    This is a Folder basically, it contains title, included chats, pinned, excluded, etc..

Get the existing fields at auto generated TL site or their info @official TG site

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading