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.
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
When you send your Telegram bot a message, ClickRuntime picks it up straight away.
AI translates it into the language you set.
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
Build your own
Need it to work differently?
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
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?
Does voice translation need a separate key?
Is the translation suitable for legal or medical documents?
What permissions does it need?
Does it need AI?
How many runs does it use?
Can I change how it works?
Related
You might also like
Have your Telegram bot answer messages
Anyone who messages your bot gets a helpful reply straight away, and the bot remembers the last few messages.
See how it worksTurn voice notes into text with a reply
Send your bot a voice note and get the transcript back with a short answer.
See how it worksSummarise any link with a bot command
Send /summary with a link and get a five-line summary of the page.
See how it worksKeep exploring
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.