'how to archive a chat in telethon api python3?
Is it possible to archive a chat in telethon api using python3 As i searched found in document
client.get_dialogs(archived=True)
This code snippet is giving details of archived chats.
Solution 1:[1]
Archived is a folder with ID 1.
To unarchive you have to set folder ID 0.
Example:
client: TelegramClient
client.edit_folder(chat, 1) # 1 is archived 0 unarchived
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | codepy |
