TranslateBot

AI-Powered Translation

Powered by Google Gemini AI

Smart Translation Bot

Seamlessly translate between any two languages with AI-powered accuracy. Perfect for bilingual conversations in Hinglish style.

TranslateBot
Online

Hello, how are you?

🔁 Translated Hinglish:

`Namaste, aap kaise hain?`

Powerful Features

Everything you need for seamless translation

Multi-Language Support
Support for any language pair with intelligent detection and Hinglish output style.
Easy Configuration
Simple /set command to configure your preferred language pairs instantly.
AI-Powered
Powered by Google Gemini AI for accurate and contextual translations.
Telegram Integration
Works seamlessly within Telegram with instant message translation.
User Privacy
Secure configuration storage with individual user settings management.
Open Source
Fully open source and customizable to fit your specific needs.

How to Use

Get started in just a few simple steps

1

Set Language Pair

Configure your preferred translation languages using the /set command.

/set hindi_to_gujarati
2

Send Message

Simply type your message in either language and send it to the bot.

hello, kaise ho aap
3

Get Translation

Receive instant AI-powered translation in Hinglish style.

🔁 Translated Hinglish:
hello, kem chho tame?

Get Your API Keys

Follow these steps to obtain the required API keys and tokens

Google AI API Key

Get your free Google AI API key to power the translation functionality.

1Visit Google AI Studio
2Sign in with your Google account
3Click "Get API Key" and create a new key
4Copy your API key

Telegram Bot Token

Create a new Telegram bot and get your bot token from BotFather.

1Open Telegram and search for @BotFather
2Send /newbot command
3Choose a name and username for your bot
4Copy the bot token provided by BotFather

Installation Guide

Set up your own translation bot in minutes

1
Prerequisites

  • • Python 3.7 or higher
  • • Google AI API key (from step above)
  • • Telegram Bot Token (from step above)

2
Clone Repository

git clone https://github.com/jaixmario/translator_telegram_bot.git

3
Install Dependencies

pip install pyTelegramBotAPI google-generativeai

4
Configure API Keys

Edit the bot.py file and replace the placeholder values:

API_KEY = "your_google_ai_api_key_here"BOT_TOKEN = "your_telegram_bot_token_here"

5
Run the Bot

python bot.py

You should see "🤖 Bot is running..." message

Contributions Welcome!

Help us make this bot even better

Code Contributions

Submit pull requests for new features, bug fixes, or improvements to the codebase.

Report Issues

Found a bug or have a suggestion? Open an issue on GitHub to help us improve.

Language Support

Help us test and improve translation quality for different language pairs.

Feature Requests

Have ideas for new features? Share them with us through GitHub discussions.

Documentation

Help improve documentation, add examples, or create tutorials for other users.

Testing & Feedback

Test the bot with different languages and provide feedback on translation quality.

Whether you're a developer, linguist, or just someone who loves open source projects, we'd love to have your contribution!

Ready to Get Started?

Download the code and start building your own AI-powered translation bot today.