Skip to content

The moment it happens

Translate messages you send your bot

Send your bot text in one language and get it back in another.

Runs
The moment it happens
Apps
Telegram
AI
Yes, uses the built-in AI allowance
Access
bot token

Send this to your assistant

Create a ClickRuntime automation: when I message my Telegram bot, translate the message into Spanish and reply with the translation.

Paste it into your assistant. It tells you what it will send or change before it runs live.

First time? Adding ClickRuntime to your assistant takes about two minutes.

Why use it

Why teams use this automation

A traveler in a foreign city, an expat dealing with paperwork or a team with colleagues across languages keeps switching between a chat and a translation website. Copying text in and out is slow, and a mistake can change the meaning of an important message, such as a bank letter or a message to a landlord. Slow switching makes a short exchange feel clumsy.

You send text to your Telegram bot, or a voice note if you have connected your own transcription key, and ClickRuntime uses ClickRuntime's built-in AI to translate it into the language you want and replies in the same chat. You can set a default target language or specify it per message. Replies come back in seconds.

It suits travelers, language learners and international teams who need quick, informal translation.

What you get out of it

  • Translation happens in the chat you already use

    No switching between apps. You paste or type and receive the translation immediately, which helps in situations where speed matters, such as a conversation. Tapping between tabs and pasting text in the middle of a conversation breaks the flow completely.

  • Context is handled better than word-by-word tools

    The AI reads the whole sentence and produces natural wording. Idioms and tone survive more often than with literal translation. That matters most for polite phrasing and for fixed expressions that do not translate word for word.

  • Voice makes it usable on the move

    Speaking a message instead of typing is easier in the street or while carrying bags. Transcription uses your own key, so you control the cost. A spoken message can be transcribed and translated without typing a single character.

  • Any language pair works

    Translate to a language you are learning, or from one you cannot read. A single bot covers whichever direction you need on a given day. One routine serves tourists, learners and colleagues alike, whichever languages are in play that week.

  • No extra translation subscription

    Text translation uses ClickRuntime's built-in AI. You do not need to pay for another service for everyday use. Everyday translation costs nothing extra, which suits people who only need it now and then.

How it works

What happens, step by step

  1. When you send your Telegram bot a message, ClickRuntime picks it up straight away.

  2. AI translates it into the language you set.

  3. The bot replies with the original and the translation side by side.

Before it runs live

  • Connect Telegram
  • Paste your automation's link into the other app's webhook settings

What you get

RunsThe moment it happens
Translate messages you send your botjust nowSucceeded
Telegram · TranslatorSee you at the Northwind office at 10. → Nos vemos en la oficina de Northwind a las 10.

Build your own

Need it to work differently?

This template is a starting point. Copy the prompt and change it, or describe a different automation from scratch, with your own conditions, more apps or an AI step. Your assistant writes it, tests it and runs it on ClickRuntime.
  • Your own rules

    Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.

  • Any number of apps

    One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.

  • AI where it helps

    Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.

  • On a schedule or on each event

    Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.

Changes you can ask for

  • Act only on the items that match your own rules, and skip the rest
  • Change what the AI looks for, or how it writes the result
  • Add another app, for example also send it to Slack
  • Combine it with other Telegram steps into one automation

Under the hood

The code that runs this automation

This is the Python script that runs each time the automation starts. Your AI assistant writes it for you when you send the prompt, and you allow each step in your assistant. To change how the automation works, describe the change to your assistant and it updates the script for you. For every function it can use, see the script reference.
translate_messages_sent_to_the_bot.pyexample
from clickruntime import on_event, http, credentials, ai

def tg(method, **params):
    r = http.post(f"https://api.telegram.org/bot{credentials.secret('TELEGRAM_BOT_TOKEN')}/{method}", json=params)
    r.raise_for_status()
    return r.json()["result"]

@on_event
def handle(event):
    msg = (event.json or {}).get("message") or {}
    if not msg.get("text"):
        return {"translated": False}
    spanish = ai.generate(msg["text"][:3000], system="Translate into Spanish. Reply with the translation only.",
                          max_output_tokens=600).text
    tg("sendMessage", chat_id=msg["chat"]["id"], text=spanish, reply_to_message_id=msg["message_id"])
    return {"translated": True}

FAQ

Common questions

How do I choose the target language?
Set a default in the instructions, such as always translate to Spanish, or start a message with a code like es: followed by the text. Tell your assistant which style you prefer. Either style works equally well.
Does voice translation need a separate key?
Yes, for voice. Transcribing audio uses a speech-to-text service with your own key, stored as a secret. Text translation needs no key because it uses ClickRuntime's built-in AI. Text alone needs no extra key whatsoever.
Is the translation suitable for legal or medical documents?
Treat it as a helpful draft. For contracts, medical instructions or anything with legal consequences, use a professional translator. Machine translation can miss nuance, and mistakes in these areas can be costly. A professional can check anything critical.
What permissions does it need?
bot token. Nothing else in your accounts is used.
Does it need AI?
Yes. It uses ClickRuntime's built-in AI, so you don't need an OpenAI or Anthropic key. Every plan includes a monthly AI allowance.
How many runs does it use?
One run for each event the app sends.
Can I change how it works?
Yes. Describe the change to your AI assistant, for example a different schedule, channel or filter. It updates the automation, tests it and tells you what changed.

Set up “Translate messages you send your bot” from your assistant

Copy the prompt above, or connect your assistant first. Free plan, no credit card.