Skip to content

RasterSec/telegram-bot-dumper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

telegram-bot-dumper

A Go 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
  • Optional media file downloads

Installation

go install github.com/digilolnet/telegram-bot-dumper@latest

Usage

$ 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)

Quick Start

telegram-bot-dumper --bot-token YOUR_BOT_TOKEN

Notes

Default --app-id and --app-hash were taken from Telegram Desktop Snap build.

License

Licensed under the Apache License, Version 2.0.

About

A Go tool to dump Telegram bot information and chat data with continuous monitoring support

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages