aiotdlib
aiotdlib copied to clipboard
how to get chat folder by folder name?
how to get chat folder by folder name?
Get all folders and iterate over them
there is no method in this lib
to get folders
and canu add prebuild windows binarie? i can send you
You need to add event handler for API.Types.UPDATE_CHAT_FOLDERS event. It contains all the information about chat folders
Example:
client = Client()
async def on_update_chat_folders(self, _: Client, update: UpdateChatFolders):
print(update.chat_folders)
update_chat_folders_handler = client.add_event_handler(on_update_chat_folders, API.Types.UPDATE_CHAT_FOLDERS)