Skip to main content

flaregram

A minimal command-line tool for interacting with Telegram via a bot token. List chats that have messaged your bot, read recent messages, and send new ones — all from your terminal.

Every command prints friendly, human-readable output by default and supports --format json for scripting.

Installation

# from PyPI
pip install flaregram

# or with uv
uv tool install flaregram

# straight from source
uv tool install git+https://github.com/MatthewScholefield/flaregram

Authentication

Grab a token from @BotFather and either pass it on every command with -t/--token, or export it once:

export TELEGRAM_BOT_TOKEN=123456:ABC-DEF

Commands

flaregram me

Verify the token and show the bot's identity.

flaregram me

flaregram chats

List chats that have recently messaged the bot (the easiest way to discover chat ids). Send a message to your bot first, then run:

flaregram chats
flaregram chats --format json

flaregram send

Send a text message to a chat.

flaregram send 555 "Hello there!"
flaregram send @channelusername "Announcement" --parse-mode HTML
flaregram send 555 "replying!" --reply-to 42 --silent

flaregram updates

Show recent messages the bot has received, optionally filtered to one chat.

flaregram updates
flaregram updates --chat-id 555 --limit 50
flaregram updates -c 555 -f json

flaregram chat

Show information about a specific chat.

flaregram chat 555
flaregram chat @channelusername

Global options

Option Description
-t, --token Bot token (or set $TELEGRAM_BOT_TOKEN)
-f, --format Output format: human (default) or json

Development

Built with uv and the uv_build backend.

uv sync          # install dev dependencies
uv run pytest    # run the test suite
uv build         # build sdist + wheel

License

MIT

Metadata

Release files for flaregram 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for flaregram 0.1.0
File Size Uploaded
flaregram-0.1.0.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for flaregram 0.1.0
File Interpreter ABI Platform
flaregram-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.3 kB

Release files / flaregram-0.1.0.tar.gz

Download URL flaregram-0.1.0.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
62295b0e6669a9f998aa8fcb570095302df1fd3c8bc7e5ddc59702602ef2379c
BLAKE2b-256 checksum
How to use checksums
08149d35b03567f992069a10e96cfc75dea92bf815f659fbd146f05840d47fc9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / flaregram-0.1.0-py3-none-any.whl

Download URL flaregram-0.1.0-py3-none-any.whl
Size 9.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
42bd41f5a5b15b4bb6f22a2e53da211cf942530b83ae9a32bbcd2edb28bf5528
BLAKE2b-256 checksum
How to use checksums
269897ed74790b184d550fba254ac111b2f9b5b8ba5c1e0e43f3f0e8b5549b84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Fedora Linux","version":"44","id":"","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page