AI Robot Translator — a translator for text and voice messages in Telegram

Task

To solve the language barrier problem in online Telegram communications. Standard tools and simple bots based on Google Translate struggle with long, complex dialogues: they lack memory, confuse the gender of participants, and require the tedious manual translation of every phrase. The goal was to create a "smart bridge" that makes communication virtually seamless.

Solution

Unlike primitive translators, this bot utilizes powerful language models (OpenAI, Gemini) operating on a Context-Aware principle. The bot analyzes chat history and considers the social roles of participants (Inviter/Invited), allowing the AI to flawlessly select the correct grammatical forms and professional vocabulary.

Key Functionality

  • Intelligent Memory: The AI sees the history of recent messages, understanding who or what is being discussed and maintaining the flow of conversation.
  • Context Setting: Users can define a topic (e.g., "business negotiations" or "casual flirting"), and the bot adapts the translation style to the situation.
  • Role Accounting (Inviter/Invited): A unique participant identification system solves the "wrong gender" problem where AI might otherwise address a woman in the masculine form.
  • Voice Bridge: Automatic speech recognition (STT) and voice synthesis for translation (TTS) allow for fluent voice-to-voice communication in different languages.
  • Solo Mode (Personal Assistant): A mode for individual use — translate forwarded messages from other chats or transcribe (convert to text) personal voice notes.

Usage Instructions

The bot's interface changes dynamically depending on whether you are in an active dialogue or idle.

Main Menu:

  • ➕ Start Dialog: Generates a unique invite link. You select the partner's language, send them the link, and as soon as they press "Start," translation begins automatically.
  • 👥 My Contacts: Quick access to people you have already communicated with. You can invite a partner to a new chat with one click without re-sending links.
  • ⚙️ Settings: Global management of your translator profile.
  • 💰 Balance / History: View your current account and detailed spending for each message. Top-ups are handled via Telegram Stars or bank cards.
  • 🚪 Finish Chat: Closes the current session and frees up the line for both participants.
  • 👤 About Partner: (Available only during a chat) Shows the partner's language, profile, and registration time.

Fine-Tuning (Settings Menu):

These parameters allow you to bring translation accuracy to perfection:

  • 🌍 My Language: The language in which YOU want to read and listen to messages. The bot will translate all incoming content into this language.
  • 🧠 Bot Memory (History): Limits the number of messages the AI sees to understand the conversation topic.
  • 📍 Change Context: Situation description (e.g., "I (Inviter) am discussing an apartment rental with the Invited"). This gives the AI an understanding of roles and subject matter.
  • 🎭 Change Prompt: Setting the style of your "voice." You can ask the bot to translate your words as formally as possible or, conversely, use slang.
  • 🔊 Toggle Voiceover: Enable or disable the TTS (Text-to-Speech) function.
  • 👁 Toggle Original: If enabled, you will see the partner's original text first, followed by the translation.
  • 🧘 Solo Translation Language: Sets the target language for personal assistant mode when no dialogue is active.

View

You can evaluate the quality of neural network translation in Telegram: @ai_robot_translator_bot.