Currency conversion bot for Telegram chats. Forked from https://github.com/vvzvlad/currva_converter_bot
https://t.me/kawacent_bot
- Python 99.1%
- Dockerfile 0.6%
- Shell 0.3%
|
|
||
|---|---|---|
| .github/workflows | Build Docker image ( #3 ) | |
| assets | fix pics | |
| hooks | update hook | |
| src/currva | move to uv + codeberg, relicense to AGPL ( #2 ) | |
| tests | move to uv + codeberg, relicense to AGPL ( #2 ) | |
| .gitignore | move to uv + codeberg, relicense to AGPL ( #2 ) | |
| Dockerfile | Build Docker image ( #3 ) | |
| LICENSE.md | move to uv + codeberg, relicense to AGPL ( #2 ) | |
| NOTICE | move to uv + codeberg, relicense to AGPL ( #2 ) | |
| pyproject.toml | pin pickledb | |
| pyrightconfig.json | Remove deprecated bot_old.py file and update pyrightconfig.json to exclude it | |
| README.md | move to uv + codeberg, relicense to AGPL ( #2 ) | |
| uv.lock | pin pickledb | |
Currva Fork
Telegram bot for currency conversion.
Start with Docker Compose
- Create a
docker-compose.ymlfile:
volumes:data:services:bot:image:TBA:latestrestart:unless-stoppedenvironment:- BOT_TOKEN=your_telegram_bot_token- API_KEY=your_exchange_rates_api_key for https://api.apilayer.com/currency_data-
Start the bot by running:
docker-compose up -d
Metrics Configuration
The bot can optionally report metrics to InfluxDB. Set INFLUX_VERSION to enable metrics reporting:
INFLUX_VERSION=2for InfluxDB v2.xINFLUX_VERSION=1.8for InfluxDB v1.8- If not set, metrics reporting will be disabled
Common settings:
INFLUX_URL- InfluxDB server URLINFLUX_REPORTING_PERIOD- Reporting period in seconds (default: 3600, minimum: 100)INFLUX_TOPIC- Topic for metrics (e.g. bots/currva_converter_bot)
InfluxDB v2.x Configuration
When INFLUX_VERSION=2, set the following environment variables:
INFLUX_TOKEN- API tokenINFLUX_ORG- Organization nameINFLUX_BUCKET- Bucket name
InfluxDB v1.8 Configuration
When INFLUX_VERSION=1.8, set the following environment variables:
INFLUX_DB- Database nameINFLUX_USER- UsernameINFLUX_PASSWORD- Password
The bot will report the following metrics at configured intervals:
- Total requests count
- Total inline requests count
- Unique users count
- Unique chats count