https://github.com/soxoj/telegram-bot-dumper
🔪 Dumper & ripper for Telegram bots by token
https://github.com/soxoj/telegram-bot-dumper
dumper history ripper telegram-bot telegram-bot-api
Last synced: 3 months ago
JSON representation
🔪 Dumper & ripper for Telegram bots by token
- Host: GitHub
- URL: https://github.com/soxoj/telegram-bot-dumper
- Owner: soxoj
- License: mit
- Created: 2019-05-31T18:27:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-12-23T15:40:52.000Z (over 2 years ago)
- Last Synced: 2025-05-04T21:44:36.913Z (about 1 year ago)
- Topics: dumper, history, ripper, telegram-bot, telegram-bot-api
- Language: Python
- Homepage:
- Size: 27.3 KB
- Stars: 197
- Watchers: 6
- Forks: 29
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
- Python >= 3.6
- Telethon >= 1.24.0
- [Register Telegram application](https://core.telegram.org/api/obtaining_api_id) to get API_ID and API_HASH
## Using
```sh
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.
```sh
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):
```sh
# check additionally 5*200 = 1000 messages
./dumper.py --token 12345678:ABCe2rPVteUWZ7wLeCqCb3CH3ilUY_fLabc --lookahead 5
```
2. History was not dumped for chats
I don't know the solution to this problem. :(
## Token leaks
Dorks examples: [telepot.bot](https://github.com/search?q=telepot.bot&type=Code)