Skip to main content

ai-mini-box-telegram

Telegram Bot API integration for ai-mini-box. Receives messages via long polling and saves them to the database.

Installation

pip install ai-mini-box-telegram

Requires ai-mini-box-core>=5.0.0.

Setup

Set your Telegram bot token (get one from @BotFather):

ai-mini-box config set telegram_token "123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11"

Optionally restrict which chats the bot processes:

ai-mini-box config set telegram_allowed_chat_ids "[123456789, 987654321]"

Usage

Poll once

Fetch new messages and save them:

ai-mini-box telegram poll
# → Processed 3 new messages

Run daemon

Continuous polling loop (Ctrl+C to stop):

ai-mini-box telegram daemon

Configuration fields used:

Field Default Description
telegram_token Bot token (required, encrypted)
telegram_allowed_chat_ids [] Restrict to specific chats (empty = all)
poll_interval 30 Seconds between polls in daemon mode

Release files for ai-mini-box-telegram 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 ai-mini-box-telegram 0.1.0
File Size Uploaded
ai_mini_box_telegram-0.1.0.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ai-mini-box-telegram 0.1.0
File Interpreter ABI Platform
ai_mini_box_telegram-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.3 kB

Release files / ai_mini_box_telegram-0.1.0.tar.gz

Download URL ai_mini_box_telegram-0.1.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2db2d9329d436d9dda821c2878084aaa38a4d35e301ac2c9b1446425bc5e2fbb
BLAKE2b-256 checksum
How to use checksums
8a81173d9bb40b7a6e09621e8b804f27a3859908fcf7879a674af2c70c70eb86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

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

Download URL ai_mini_box_telegram-0.1.0-py3-none-any.whl
Size 7.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
917a9729f94b6843ba13f1259230f02964601d415a59c29efffcd6dcd3eb9880
BLAKE2b-256 checksum
How to use checksums
456b86b76ab9fea76115e9d4b5c082582a9255de239331491b979cac1fbd2155
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.3

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