Skip to content

soxoj/telegram-bot-dumper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegram-bot-dumper

Easy dumping of all Telegram bot stuff.

Input: only bot token.

Output: bot name & info, all chats text history & media, bot's users info & photos.

Requirements

Using

pip install -r requirements.txt

vi dumper.py # change API_ID and API_HASH and save

./dumper.py --token 12345678:ABCe2rPVteUWZ7wLeCqCb3CH3ilUY_fLabc

Also you can use --tor flag for Telegram blocking bypass.

Testing

You can ask me for bot testing token.

TEST_TOKEN=... python3 -m pytest bot_test.py

Currently known issues

  1. Bot is exiting with not fully dumped history

Some messages can be deleted by bot users. If you suppose that the history was not completely dumped, specify cycles count to skip empty messages (200 per cycle by default):

# check additionally 5*200 = 1000 messages

./dumper.py --token 12345678:ABCe2rPVteUWZ7wLeCqCb3CH3ilUY_fLabc --lookahead 5
  1. History was not dumped for chats

I don't know the solution to this problem. :(

Token leaks

Dorks examples: telepot.bot

About

🔪 Dumper & ripper for Telegram bots by token

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages