telegram-bot-dumper

command module
v0.0.0-...-3a97b40 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL