Telegram integration for ai-mini-box — poll/daemon commands via Bot API
Project description
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 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ai_mini_box_telegram-0.1.0.tar.gz.
File metadata
- Download URL: ai_mini_box_telegram-0.1.0.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2db2d9329d436d9dda821c2878084aaa38a4d35e301ac2c9b1446425bc5e2fbb
|
|
| MD5 |
d067e8a54c298ce3f56f2d7d346f8ad2
|
|
| BLAKE2b-256 |
8a81173d9bb40b7a6e09621e8b804f27a3859908fcf7879a674af2c70c70eb86
|
File details
Details for the file ai_mini_box_telegram-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ai_mini_box_telegram-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
917a9729f94b6843ba13f1259230f02964601d415a59c29efffcd6dcd3eb9880
|
|
| MD5 |
213a9e5fdf4c7ebecc06903d5737f675
|
|
| BLAKE2b-256 |
456b86b76ab9fea76115e9d4b5c082582a9255de239331491b979cac1fbd2155
|