Telegram bot for converting KZT to USD automatically.
- Automatically detects amounts in KZT (тенге) in messages
- Converts them to USD using real-time exchange rates
- Supports various formats:
500тг,1500 тенге,10000₸ - Uses fallback rate if API is unavailable
- Docker and Docker Compose installed
- Telegram bot token from @BotFather
-
Create
.envfile with your bot token:BOT_TOKEN=your_telegram_bot_token_here -
Run with Docker Compose:
docker-compose up -d
- Start the bot:
docker-compose up -d - Stop the bot:
docker-compose down - View logs:
docker-compose logs -f tengebot
-
Install dependencies:
pip install -r requirements.txt
-
Create
.envfile withBOT_TOKEN -
Run the bot:
python main.py
Send any message containing amounts in KZT to the bot, and it will automatically convert them to USD.
Examples:
500тг→💰 500 ₸ = 1.11 $1500 тенге→💰 1 500 ₸ = 3.33 $10000₸→💰 10 000 ₸ = 22.22 $