1
0
Fork
You've already forked kawacent
0
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%
Find a file
Alexander Pushkov accf975c8b
All checks were successful
Default / test (push) Successful in 39s
Default / build (push) Successful in 1m23s
pin pickledb
2026年04月08日 17:27:02 +05:00
.github/workflows Build Docker image ( #3 ) 2026年04月08日 13:56:57 +02:00
assets fix pics 2024年12月01日 13:25:29 +03:00
hooks update hook 2024年12月01日 15:53:23 +03:00
src/currva move to uv + codeberg, relicense to AGPL ( #2 ) 2026年04月08日 13:02:23 +02:00
tests move to uv + codeberg, relicense to AGPL ( #2 ) 2026年04月08日 13:02:23 +02:00
.gitignore move to uv + codeberg, relicense to AGPL ( #2 ) 2026年04月08日 13:02:23 +02:00
Dockerfile Build Docker image ( #3 ) 2026年04月08日 13:56:57 +02:00
LICENSE.md move to uv + codeberg, relicense to AGPL ( #2 ) 2026年04月08日 13:02:23 +02:00
NOTICE move to uv + codeberg, relicense to AGPL ( #2 ) 2026年04月08日 13:02:23 +02:00
pyproject.toml pin pickledb 2026年04月08日 17:27:02 +05:00
pyrightconfig.json Remove deprecated bot_old.py file and update pyrightconfig.json to exclude it 2025年03月21日 17:06:01 +03:00
README.md move to uv + codeberg, relicense to AGPL ( #2 ) 2026年04月08日 13:02:23 +02:00
uv.lock pin pickledb 2026年04月08日 17:27:02 +05:00

Currva Fork

Telegram bot for currency conversion.

Start with Docker Compose

  1. Create a docker-compose.yml file:
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
  1. 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=2 for InfluxDB v2.x
  • INFLUX_VERSION=1.8 for InfluxDB v1.8
  • If not set, metrics reporting will be disabled

Common settings:

  • INFLUX_URL - InfluxDB server URL
  • INFLUX_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 token
  • INFLUX_ORG - Organization name
  • INFLUX_BUCKET - Bucket name

InfluxDB v1.8 Configuration

When INFLUX_VERSION=1.8, set the following environment variables:

  • INFLUX_DB - Database name
  • INFLUX_USER - Username
  • INFLUX_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