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
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| flaregram-0.1.0.tar.gz | 6.9 kB | Without provenance | Details for flaregram-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| flaregram-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for flaregram-0.1.0-py3-none-any.whl |
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}
|
Security for flaregram 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.