delete all my messages in all my chats, unless I trigger a given command in said userbot. Does code for that exist so far?
come up with something yourself with both iter_dialogs and iter_messages w/from_user='me'
Fair enough. So far I do have a command called purgeme to do the deletions on command. I guess I could just schedule running that command against messages that are e.g. more than a week old. If code for it exists already, I figured that it may be easier to adapt from that project than to do it from scratch :)
Обсуждают сегодня