Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 1.32 KB

README.md

File metadata and controls

21 lines (17 loc) · 1.32 KB

del_my_message

Deletes your messages from telegram.
By default, you delete all messages older than 24 hours.
Only for chats and dialogs you are currently in.
--------------------------------------
BE CAREFUL!
Please note that the script deletes ALL YOUR messages. Including messages from your private channels that you created.
--------------------------------------

Before working with Telegram’s API, you need to get your own API ID and hash:

    1. Login to your Telegram account (https://my.telegram.org/) with the phone number of the developer account to use.
    2. Click under API Development tools.
    3. A Create new application window will appear. Fill in your application details. There is no need to enter any URL, and only the first two fields (App title and Short name) can currently be changed later.
    4. Click on Create application at the end. Remember that your API hash is secret and Telegram won’t let you revoke it. Don’t post it anywhere!

requirements:
    telethone (pip3 install -U telethon --user)
    pytz

It is also worth noting that telegram traffic is blocked in some countries. In this case, use a proxy.