Skip to content

AI-powered Telegram bot that translates between Ossetian, Russian, and English - handles text messages and photos

Notifications You must be signed in to change notification settings

colruedu/ossetian-translator-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ossetian Language Translator Bot

A Telegram bot that translates between Ossetian, Russian, and English - handles both text messages and text in photos.

What it does

  • Translates typed messages instantly
  • User sends photo with text, bot uses OCR to extract and translate the text
  • Supports 4 translation directions
  • Tracks daily usage to stay within free API limits

How to use

Send the bot text or a photo. Default mode translates Russian to Ossetian.

Switch modes anytime:

  • /rus - Russian → Ossetian
  • /eng - English → Ossetian
  • /os_en - Ossetian → English
  • /os_ru - Ossetian → Russian

Setup for developers

You need Google Cloud API key (for translation + vision) and Telegram bot token.

  1. pip install -r requirements.txt
  2. Replace placeholder keys in config.py with real ones
  3. python3 main.py

Getting API keys:

Cost management: Set quotas in Google Cloud Console to avoid surprise bills.

Features

  • Daily limits: 500 chars text, 20 photos
  • Usage statistics tracking
  • Automatic file creation (logs, stats, state)
  • Error handling and logging

About

AI-powered Telegram bot that translates between Ossetian, Russian, and English - handles text messages and photos

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages