A Go tool to dump Telegram bot information and chat data.
- Saves bot info to
bot_info.json
- Saves each chat to separate files in
chats/
directory - Continuous mode: listens for new messages in real-time and appends them immediately
- Optional media file downloads
go install github.com/digilolnet/telegram-bot-dumper@latest
$ telegram-bot-dumper -h
A tool to dump Telegram bot information and chat data.
Features:
- Saves bot info to bot_info.json
- Saves each chat to separate files in chats/ directory
- Continuous mode: listens for new messages in real-time and appends them immediately
Usage:
telegram-bot-dumper [flags]
Flags:
--app-hash string Telegram API app hash (default "d524b414d21f4d37f08684c1df41ac9c")
--app-id int Telegram API app ID (default 611335)
--batch-size int Number of messages to scan per batch (max 200) (default 200)
--bot-token string Bot token (required)
--continuous Listen for new messages continuously after initial scan
--download-files Download media files
-h, --help help for telegram-bot-dumper
--log-level string Log level (default "info")
--max-messages int Maximum messages per chat (default 100)
--output string Output directory for dumped data (default "./dump")
--rate-limit duration Delay between API calls (default 1s)
telegram-bot-dumper --bot-token YOUR_BOT_TOKEN
Default --app-id
and --app-hash
were taken from Telegram Desktop Snap build.
Licensed under the Apache License, Version 2.0.