AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
feat(telegram-bot): ui improvement (#16083)
Talal Jaber2f7162ec281d
diff --git a/bun.lock b/bun.lockindex 26418376f0f..7870ffa256b 100644--- a/bun.lock+++ b/bun.lock@@ -9047,7 +9047,7 @@},"packages/pieces/community/telegram-bot": {"name": "@activepieces/piece-telegram-bot",- "version": "0.7.0",+ "version": "0.8.0","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",@@ -9057,6 +9057,7 @@},"devDependencies": {"tslib": "2.6.2",+ "vitest": "3.2.6",},},"packages/pieces/community/telnyx": {diff --git a/docs/build-pieces/piece-reference/properties.mdx b/docs/build-pieces/piece-reference/properties.mdxindex b168084131f..65bd5abdb72 100644--- a/docs/build-pieces/piece-reference/properties.mdx+++ b/docs/build-pieces/piece-reference/properties.mdx@@ -536,7 +536,7 @@ Every property accepts a few optional hints that fine-tune how it renders. They| --- | --- | --- || `placeholder` | text inputs | Grey hint text shown inside an empty field (e.g. `[email protected]`). || `width: 'half'` | any prop inside a group | Renders two fields side-by-side instead of full-width. |-| `icon` | any prop | A named icon shown beside the field in the filter builder. |+| `icon` | any prop, `section` and `builder` groups | A named icon shown beside the field in the filter builder, or in the header of a section card. One of `text`, `code`, `markdown`, `reply`, `reply-all`, `users`, `user`, `send`, `type`, `file`, `paperclip`, `location`, `tag`, `inbox`, `calendar`, `trash`, `filter`, `sliders`, `blank`; any other name renders nothing. || `advanced: true` | any prop | Moves the field into the collapsible *Advanced* section. Props render in the main form by default. |Every property renders in the main form by default, required or not. Set `advanced: true` on a secondary option to tuck it into the collapsible **Advanced** section; `advanced: false` is the default and has no effect. Avoid the flag on required props: the section starts collapsed, so a mandatory field hidden there only surfaces as a validation error.diff --git a/docs/install/reference/breaking-changes.mdx b/docs/install/reference/breaking-changes.mdxindex 0ba0ceabbb8..8a005a7cd16 100644--- a/docs/install/reference/breaking-changes.mdx+++ b/docs/install/reference/breaking-changes.mdx@@ -8,6 +8,16 @@ icon: "hammer"### What has changed?+#### Telegram Bot Get Chat and Get Chat Member fail on Telegram errors, and Get File no longer returns the bot token++Get Chat and Get Chat Member used to return Telegram's error response, such as `{ "ok": false, "description": "Bad Request: chat not found" }`, as a **successful** step. From Telegram Bot 0.8.0 the step fails with that error instead, so a wrong chat or user ID stops the flow where it happened.++Get File used to return a `file_url` that contained the bot token, which put the token in the run's step output. From 0.8.0 the output no longer has `file_url`. With **Download File** on, it still returns the content as `file_content_base64`.++#### What you need to do++If a flow branches on Get Chat or Get Chat Member returning `ok: false`, handle the failure with the step's error handling options instead. If a later step reads Get File's `file_url`, turn on **Download File** and use `file_content_base64`. Steps keep running on the version they were built with until you upgrade them.+#### Helm chart 0.5.0 uses the cluster's default StorageClass againChart 0.4.0 set the app's cache volume to the `local-path` StorageClass whenever `persistence.storageClassName` was unset, which only exists on k3s-style clusters, so new installs elsewhere stayed `Pending`. From 0.5.0 an unset value uses the cluster's default StorageClass again, as chart 0.3.x did. A StatefulSet's volume class cannot change after it is created, so `helm upgrade` keeps the class your release already uses.diff --git a/packages/pieces/community/telegram-bot/package.json b/packages/pieces/community/telegram-bot/package.jsonindex b6d8015abcd..2ccd779f622 100644--- a/packages/pieces/community/telegram-bot/package.json+++ b/packages/pieces/community/telegram-bot/package.json@@ -1,10 +1,11 @@{"name": "@activepieces/piece-telegram-bot",- "version": "0.7.0",+ "version": "0.8.0","main": "./dist/src/index.js","types": "./dist/src/index.d.ts","scripts": {"build": "tsc -p tsconfig.lib.json && cp package.json dist/",+ "test": "vitest run","bundle": "node ../../../../dist/packages/cli/src/index.js pieces bundle","lint": "eslint 'src/**/*.ts'"},@@ -16,6 +17,7 @@"@activepieces/core-utils": "workspace:*"},"devDependencies": {- "tslib": "2.6.2"+ "tslib": "2.6.2",+ "vitest": "3.2.6"}}diff --git a/packages/pieces/community/telegram-bot/src/i18n/de.json b/packages/pieces/community/telegram-bot/src/i18n/de.jsonindex 01992e1a906..4a45b1a10d0 100644--- a/packages/pieces/community/telegram-bot/src/i18n/de.json+++ b/packages/pieces/community/telegram-bot/src/i18n/de.json@@ -218,5 +218,124 @@"Poll Answer": "Poll Answer","My Chat Member": "My Chat Member","Chat Member": "Chat Member",- "Chat Join Request": "Chat Join Request"+ "Chat Join Request": "Chat Join Request",+ "\n**Authentication**:\n\n1. Begin a conversation with the [Botfather](https://telegram.me/BotFather).\n2. Type in \"/newbot\"\n3. Choose a name for your bot\n4. Choose a username for your bot.\n5. Copy the token BotFather sends and paste it here.\n": "\n**Authentifizierung**:\n\n1. Beginnen Sie eine Unterhaltung mit dem [Botfather](https://telegram.me/BotFather).\n2. Geben Sie \"/newbot\" ein\n3. Wählen Sie einen Namen für Ihren Bot\n4. Wählen Sie einen Benutzernamen für Ihren Bot.\n5. Kopieren Sie das Token, das BotFather sendet, und fügen Sie es hier ein.\n",+ "Send a text message to a chat, group or channel.": "Eine Textnachricht an einen Chat, eine Gruppe oder einen Kanal senden.",+ "Send a photo, video, sticker or GIF to a chat.": "Ein Foto, Video, Sticker oder GIF an einen Chat senden.",+ "Send any file to a chat as a document.": "Eine beliebige Datei als Dokument an einen Chat senden.",+ "Send an MP3 or M4A file that plays in Telegram's music player.": "Eine MP3- oder M4A-Datei senden, die im Musikplayer von Telegram abgespielt wird.",+ "Send a map pin, or a live location that updates, to a chat.": "Eine Kartenmarkierung oder einen sich aktualisierenden Live-Standort an einen Chat senden.",+ "Send 2 to 10 photos, videos, files or audio tracks as one album.": "2 bis 10 Fotos, Videos, Dateien oder Audiotitel als ein Album senden.",+ "Send a poll or a quiz to a chat.": "Eine Umfrage oder ein Quiz an einen Chat senden.",+ "Show a status like \"typing…\" in a chat for up to 5 seconds.": "Einen Status wie „schreibt…“ bis zu 5 Sekunden in einem Chat anzeigen.",+ "Replace the text of a message the bot sent.": "Den Text einer vom Bot gesendeten Nachricht ersetzen.",+ "Delete a message. The bot needs admin rights to delete other people's messages.": "Eine Nachricht löschen. Für Nachrichten anderer braucht der Bot Adminrechte.",+ "Pin a message. The bot must be an admin in the chat.": "Eine Nachricht anheften. Der Bot muss Admin im Chat sein.",+ "Unpin one message, or the most recent pinned message.": "Eine Nachricht oder die zuletzt angeheftete Nachricht lösen.",+ "Get a chat's title, type, description and settings.": "Titel, Typ, Beschreibung und Einstellungen eines Chats abrufen.",+ "Get a person's status and permissions in a chat.": "Status und Berechtigungen einer Person in einem Chat abrufen.",+ "Get file details and, optionally, its content.": "Dateidetails und optional den Inhalt abrufen.",+ "Create an invite link for a group or channel.": "Einen Einladungslink für eine Gruppe oder einen Kanal erstellen.",+ "Answer a tap on an inline button with a short banner or alert.": "Auf das Tippen einer Inline-Schaltfläche mit einem kurzen Banner oder Hinweis antworten.",+ "Chat ID": "Chat-ID",+ "Topic ID": "Themen-ID",+ "Disable Link Preview": "Linkvorschau deaktivieren",+ "Reply To Message ID": "Antwort auf Nachrichten-ID",+ "Buttons": "Schaltflächen",+ "File": "Datei",+ "Document ID": "Dokument-ID",+ "Audio ID": "Audio-ID",+ "Title": "Titel",+ "Correct Option": "Richtige Antwort",+ "Explanation": "Erklärung",+ "Open Period": "Laufzeit",+ "Message ID": "Nachrichten-ID",+ "Inline Message ID": "Inline-Nachrichten-ID",+ "From Chat ID": "Quell-Chat-ID",+ "User ID": "Benutzer-ID",+ "Link Name": "Linkname",+ "Expiry Date": "Ablaufdatum",+ "Require Admin Approval": "Admin-Freigabe erforderlich",+ "Callback Query ID": "Callback-Query-ID",+ "Cache Time": "Cache-Dauer",+ "Response is Binary": "Antwort ist binär",+ "Return Error as Output": "Fehler als Ausgabe zurückgeben",+ "Timeout": "Zeitlimit",+ "Your own chat ID: message @getmyid_bot and send /my_id. A group's ID: add your bot, send /start there, and read chat.id in the New Update trigger's test data before publishing. A public channel can use its @username.\n\nThe bot must be in the group or channel, or the person must have messaged it first, or Telegram answers \"chat not found\".": "Ihre eigene Chat-ID: Schreiben Sie @getmyid_bot und senden Sie /my_id. ID einer Gruppe: Fügen Sie Ihren Bot hinzu, senden Sie dort /start und lesen Sie vor dem Veröffentlichen chat.id in den Testdaten des Triggers „New Update“. Ein öffentlicher Kanal kann seinen @username verwenden.\n\nDer Bot muss in der Gruppe oder im Kanal sein, oder die Person muss ihm zuerst geschrieben haben, sonst antwortet Telegram mit \"chat not found\".",+ "Numeric chat ID, or @username for a public channel.": "Numerische Chat-ID oder @username bei einem öffentlichen Kanal.",+ "How Telegram styles the text.": "Wie Telegram den Text formatiert.",+ "Up to 4096 characters.": "Bis zu 4096 Zeichen.",+ "[Telegram's formatting guide](https://core.telegram.org/bots/api#formatting-options) lists every tag. MarkdownV2 needs a backslash before symbols like . ! - ( ), or Telegram rejects the message.": "Der [Formatierungsleitfaden von Telegram](https://core.telegram.org/bots/api#formatting-options) listet alle Tags auf. MarkdownV2 braucht einen Backslash vor Symbolen wie . ! - ( ), sonst lehnt Telegram die Nachricht ab.",+ "Post inside a topic of a forum group. Empty posts to the main chat.": "In einem Thema einer Forumgruppe posten. Leer postet in den Hauptchat.",+ "Don't show a preview card for links in the message.": "Für Links in der Nachricht keine Vorschaukarte anzeigen.",+ "Deliver without a sound. The message still arrives.": "Ohne Ton zustellen. Die Nachricht kommt trotzdem an.",+ "Stop recipients from forwarding or saving the message.": "Verhindert, dass Empfänger die Nachricht weiterleiten oder speichern.",+ "Send as a reply to this message in the same chat.": "Als Antwort auf diese Nachricht im selben Chat senden.",+ "reply_markup JSON: an inline keyboard, reply keyboard or forced reply.": "reply_markup JSON: eine Inline-Tastatur, Antworttastatur oder erzwungene Antwort.",+ "Up to 1024 characters. Not shown on stickers.": "Bis zu 1024 Zeichen. Bei Stickern nicht angezeigt.",+ "Upload a file or enter a file ID. If both are set, the upload is sent.": "Laden Sie eine Datei hoch oder geben Sie eine Datei-ID ein. Ist beides gesetzt, wird der Upload gesendet.",+ "Any file type, up to 50 MB.": "Jeder Dateityp, bis zu 50 MB.",+ "file_id of a document already on Telegram, to send it again.": "file_id eines Dokuments, das schon auf Telegram liegt, um es erneut zu senden.",+ "Up to 1024 characters.": "Bis zu 1024 Zeichen.",+ "An MP3 or M4A file.": "Eine MP3- oder M4A-Datei.",+ "file_id of audio already on Telegram, to send it again.": "file_id einer Audiodatei, die schon auf Telegram liegt, um sie erneut zu senden.",+ "Track name shown in the player.": "Titelname, der im Player angezeigt wird.",+ "Artist name shown in the player.": "Künstlername, der im Player angezeigt wird.",+ "Length in seconds.": "Länge in Sekunden.",+ "Between -90 and 90.": "Zwischen -90 und 90.",+ "Between -180 and 180.": "Zwischen -180 und 180.",+ "Uncertainty radius in meters, 0 to 1500.": "Ungenauigkeitsradius in Metern, 0 bis 1500.",+ "Fill Live Period to share a live location. Heading and Proximity Alert Radius only work with it.": "Füllen Sie „Live Period“ aus, um einen Live-Standort zu teilen. „Heading“ und „Proximity Alert Radius“ funktionieren nur damit.",+ "Seconds, 60 to 86400.": "Sekunden, 60 bis 86400.",+ "Degrees, 1 to 360.": "Grad, 1 bis 360.",+ "Alert distance in meters, 1 to 100000.": "Alarmabstand in Metern, 1 bis 100000.",+ "Photos and videos can mix. Audio and files go in albums of their own.": "Fotos und Videos lassen sich mischen. Audio und Dateien kommen in eigene Alben.",+ "How Telegram styles the captions.": "Wie Telegram die Bildunterschriften formatiert.",+ "Up to 300 characters.": "Bis zu 300 Zeichen.",+ "2 to 10 answers, each up to 100 characters.": "2 bis 10 Antworten, je bis zu 100 Zeichen.",+ "Hide who voted for what.": "Verbergen, wer wofür gestimmt hat.",+ "Regular polls only.": "Nur bei regulären Umfragen.",+ "Only used when Poll Type is Quiz.": "Nur verwendet, wenn „Poll Type“ auf „Quiz“ steht.",+ "Position of the right answer, counting from 0.": "Position der richtigen Antwort, ab 0 gezählt.",+ "Shown after a wrong answer, up to 200 characters.": "Wird nach einer falschen Antwort angezeigt, bis zu 200 Zeichen.",+ "How Telegram styles the explanation.": "Wie Telegram die Erklärung formatiert.",+ "Set an open period or a close date, not both.": "Legen Sie eine Laufzeit oder ein Enddatum fest, nicht beides.",+ "Seconds the poll stays open, 5 to 600.": "Sekunden, die die Umfrage offen bleibt, 5 bis 600.",+ "When the poll closes, 5 to 600 seconds from now.": "Wann die Umfrage endet, 5 bis 600 Sekunden ab jetzt.",+ "Post the poll already closed, to show results.": "Die Umfrage bereits geschlossen posten, um Ergebnisse zu zeigen.",+ "What the chat shows, e.g. typing or uploading a photo.": "Was der Chat anzeigt, z. B. Tippen oder Hochladen eines Fotos.",+ "Fill Chat ID and Message ID together, or Inline Message ID alone.": "Füllen Sie „Chat-ID“ und „Nachrichten-ID“ zusammen aus oder nur „Inline-Nachrichten-ID“.",+ "From the output of the step that sent it, or the trigger.": "Aus der Ausgabe des Schritts, der sie gesendet hat, oder aus dem Trigger.",+ "For messages sent in inline mode. Replaces Chat ID and Message ID.": "Für im Inline-Modus gesendete Nachrichten. Ersetzt „Chat-ID“ und „Nachrichten-ID“.",+ "Up to 4096 characters. Replaces the whole message.": "Bis zu 4096 Zeichen. Ersetzt die ganze Nachricht.",+ "Chat the message is in, by ID or @username.": "Chat der Nachricht, per ID oder @username.",+ "ID of the message in that chat.": "ID der Nachricht in diesem Chat.",+ "Pin without notifying chat members.": "Anheften, ohne Chatmitglieder zu benachrichtigen.",+ "Empty unpins the most recent pinned message.": "Leer löst die zuletzt angeheftete Nachricht.",+ "Numeric user ID, found in the trigger as message.from.id.": "Numerische Benutzer-ID, im Trigger als message.from.id zu finden.",+ "The file_id of a photo, document or audio in a message.": "Die file_id eines Fotos, Dokuments oder Audios in einer Nachricht.",+ "Also return the content as base64. Telegram caps this at 20 MB.": "Inhalt zusätzlich als base64 zurückgeben. Telegram begrenzt dies auf 20 MB.",+ "Up to 32 characters, shown only to admins.": "Bis zu 32 Zeichen, nur für Admins sichtbar.",+ "Empty means the link never expires.": "Leer bedeutet, der Link läuft nie ab.",+ "Use a member limit or admin approval, not both.": "Mitgliederlimit oder Admin-Freigabe verwenden, nicht beides.",+ "How many people can join with this link, 1 to 99999.": "Wie viele Personen über diesen Link beitreten können, 1 bis 99999.",+ "Admins approve each person who joins with the link.": "Admins geben jede Person frei, die über den Link beitritt.",+ "callback_query.id from the New Update trigger.": "callback_query.id aus dem Trigger „New Update“.",+ "Up to 200 characters. Empty just stops the loading spinner.": "Bis zu 200 Zeichen. Leer beendet nur das Ladesymbol.",+ "Show a pop-up the user must close, instead of a banner.": "Ein Pop-up anzeigen, das der Nutzer schließen muss, statt eines Banners.",+ "Only a t.me link to your bot, or a game URL.": "Nur ein t.me-Link zu Ihrem Bot oder eine Spiel-URL.",+ "Seconds Telegram may reuse this answer. Default 0.": "Sekunden, die Telegram diese Antwort wiederverwenden darf. Standard 0.",+ "Sent with a Review & Respond button that opens the approval page.": "Wird mit einer Schaltfläche „Review & Respond“ gesendet, die die Freigabeseite öffnet.",+ "Appended to the URL as ?key=value.": "Wird als ?key=value an die URL angehängt.",+ "On a failed request, output the error instead of failing the step.": "Bei einer fehlgeschlagenen Anfrage den Fehler ausgeben, statt den Schritt fehlschlagen zu lassen.",+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Sekunden, die auf eine Antwort gewartet wird. Leer: bis zum Flow-Limit (10 Min.).",+ "Follow 3xx redirects instead of returning them as the response.": "3xx-Weiterleitungen folgen, statt sie als Antwort zurückzugeben.",+ "MarkdownV2": "MarkdownV2",+ "**One webhook per bot.** Publishing another flow with this bot token stops this one. Use one flow per bot and branch on the update type.\n\nAfter publishing, Retest shows sample data. Test before publishing to load a real update.": "**Ein Webhook pro Bot.** Wenn Sie einen weiteren Flow mit diesem Bot-Token veröffentlichen, stoppt dieser. Nutzen Sie einen Flow pro Bot und verzweigen Sie nach Update-Typ.\n\nNach dem Veröffentlichen zeigt „Retest“ Beispieldaten. Testen Sie vor dem Veröffentlichen, um ein echtes Update zu laden.",+ "Empty receives every update except member changes and reactions.": "Leer empfängt jedes Update außer Mitgliederänderungen und Reaktionen.",+ "Inline Button Tap": "Tippen auf Inline-Schaltfläche",+ "Your own chat ID: message @getmyid_bot and send /my_id. A group's ID: add your bot, send /start there, test the New Update trigger before publishing and copy chat.id from that message, not the 123456789 sample. A public channel can use its @username.\n\nThe bot must be in the group or channel, or the person must have messaged it first, or Telegram answers \"chat not found\".": "Ihre eigene Chat-ID: Schreiben Sie @getmyid_bot und senden Sie /my_id. ID einer Gruppe: Fügen Sie Ihren Bot hinzu, senden Sie dort /start, testen Sie vor dem Veröffentlichen den Trigger „New Update“ und kopieren Sie chat.id aus dieser Nachricht, nicht die Beispiel-ID 123456789. Ein öffentlicher Kanal kann seinen @username verwenden.\n\nDer Bot muss in der Gruppe oder im Kanal sein, oder die Person muss ihm zuerst geschrieben haben, sonst antwortet Telegram mit \"chat not found\".",+ "Empty receives every update except Chat Member and reactions.": "Leer empfängt jedes Update außer Chat Member und Reaktionen.",+ "Caption Format": "Format der Bildunterschrift",+ "Explanation Format": "Format der Erklärung"}\ No newline at end of filediff --git a/packages/pieces/community/telegram-bot/src/i18n/es.json b/packages/pieces/community/telegram-bot/src/i18n/es.jsonindex f9cc54d6d91..0d8f1d7d28e 100644--- a/packages/pieces/community/telegram-bot/src/i18n/es.json+++ b/packages/pieces/community/telegram-bot/src/i18n/es.json@@ -218,5 +218,124 @@"Poll Answer": "Poll Answer","My Chat Member": "My Chat Member","Chat Member": "Chat Member",- "Chat Join Request": "Chat Join Request"+ "Chat Join Request": "Chat Join Request",+ "\n**Authentication**:\n\n1. Begin a conversation with the [Botfather](https://telegram.me/BotFather).\n2. Type in \"/newbot\"\n3. Choose a name for your bot\n4. Choose a username for your bot.\n5. Copy the token BotFather sends and paste it here.\n": "\n**Autenticación**:\n\n1. Inicia una conversación con [Botfather](https://telegram.me/BotFather).\n2. Escribe \"/newbot\"\n3. Elige un nombre para tu bot\n4. Elige un nombre de usuario para tu bot.\n5. Copia el token que envía BotFather y pégalo aquí.\n",+ "Send a text message to a chat, group or channel.": "Envía un mensaje de texto a un chat, grupo o canal.",+ "Send a photo, video, sticker or GIF to a chat.": "Envía una foto, video, sticker o GIF a un chat.",+ "Send any file to a chat as a document.": "Envía cualquier archivo a un chat como documento.",+ "Send an MP3 or M4A file that plays in Telegram's music player.": "Envía un archivo MP3 o M4A que se reproduce en el reproductor de música de Telegram.",+ "Send a map pin, or a live location that updates, to a chat.": "Envía un pin en el mapa, o una ubicación en tiempo real que se actualiza, a un chat.",+ "Send 2 to 10 photos, videos, files or audio tracks as one album.": "Envía de 2 a 10 fotos, videos, archivos o pistas de audio como un solo álbum.",+ "Send a poll or a quiz to a chat.": "Envía una encuesta o un cuestionario a un chat.",+ "Show a status like \"typing…\" in a chat for up to 5 seconds.": "Muestra un estado como «escribiendo…» en un chat durante hasta 5 segundos.",+ "Replace the text of a message the bot sent.": "Reemplaza el texto de un mensaje que envió el bot.",+ "Delete a message. The bot needs admin rights to delete other people's messages.": "Elimina un mensaje. El bot necesita permisos de admin para eliminar mensajes de otros.",+ "Pin a message. The bot must be an admin in the chat.": "Fija un mensaje. El bot debe ser admin del chat.",+ "Unpin one message, or the most recent pinned message.": "Desfija un mensaje, o el último mensaje fijado.",+ "Get a chat's title, type, description and settings.": "Obtiene el título, tipo, descripción y ajustes de un chat.",+ "Get a person's status and permissions in a chat.": "Obtiene el estado y los permisos de una persona en un chat.",+ "Get file details and, optionally, its content.": "Obtiene los detalles de un archivo y, opcionalmente, su contenido.",+ "Create an invite link for a group or channel.": "Crea un enlace de invitación para un grupo o canal.",+ "Answer a tap on an inline button with a short banner or alert.": "Responde al toque en un botón inline con un banner breve o una alerta.",+ "Chat ID": "ID del chat",+ "Topic ID": "ID del tema",+ "Disable Link Preview": "Desactivar vista previa de enlaces",+ "Reply To Message ID": "Responder al ID de mensaje",+ "Buttons": "Botones",+ "File": "Archivo",+ "Document ID": "ID del documento",+ "Audio ID": "ID del audio",+ "Title": "Título",+ "Correct Option": "Opción correcta",+ "Explanation": "Explicación",+ "Open Period": "Periodo abierto",+ "Message ID": "ID del mensaje",+ "Inline Message ID": "ID del mensaje inline",+ "From Chat ID": "ID del chat de origen",+ "User ID": "ID del usuario",+ "Link Name": "Nombre del enlace",+ "Expiry Date": "Fecha de caducidad",+ "Require Admin Approval": "Requerir aprobación de admin",+ "Callback Query ID": "ID de callback query",+ "Cache Time": "Tiempo de caché",+ "Response is Binary": "Respuesta es binaria",+ "Return Error as Output": "Devolver error como salida",+ "Timeout": "Tiempo de espera",+ "Your own chat ID: message @getmyid_bot and send /my_id. A group's ID: add your bot, send /start there, and read chat.id in the New Update trigger's test data before publishing. A public channel can use its @username.\n\nThe bot must be in the group or channel, or the person must have messaged it first, or Telegram answers \"chat not found\".": "Tu propio ID de chat: escribe a @getmyid_bot y envía /my_id. ID de un grupo: agrega tu bot, envía /start allí y lee chat.id en los datos de prueba del disparador «New Update» antes de publicar. Un canal público puede usar su @username.\n\nEl bot debe estar en el grupo o canal, o la persona debe haberle escrito primero; si no, Telegram responde \"chat not found\".",+ "Numeric chat ID, or @username for a public channel.": "ID numérico del chat, o @username para un canal público.",+ "How Telegram styles the text.": "Cómo Telegram da formato al texto.",+ "Up to 4096 characters.": "Hasta 4096 caracteres.",+ "[Telegram's formatting guide](https://core.telegram.org/bots/api#formatting-options) lists every tag. MarkdownV2 needs a backslash before symbols like . ! - ( ), or Telegram rejects the message.": "La [guía de formato de Telegram](https://core.telegram.org/bots/api#formatting-options) lista todas las etiquetas. MarkdownV2 necesita una barra invertida antes de símbolos como . ! - ( ), o Telegram rechaza el mensaje.",+ "Post inside a topic of a forum group. Empty posts to the main chat.": "Publica dentro de un tema de un grupo foro. Vacío publica en el chat principal.",+ "Don't show a preview card for links in the message.": "No mostrar tarjeta de vista previa para los enlaces del mensaje.",+ "Deliver without a sound. The message still arrives.": "Entregar sin sonido. El mensaje llega igual.",+ "Stop recipients from forwarding or saving the message.": "Impide que los destinatarios reenvíen o guarden el mensaje.",+ "Send as a reply to this message in the same chat.": "Enviar como respuesta a este mensaje en el mismo chat.",+ "reply_markup JSON: an inline keyboard, reply keyboard or forced reply.": "reply_markup JSON: un teclado inline, un teclado de respuesta o una respuesta forzada.",+ "Up to 1024 characters. Not shown on stickers.": "Hasta 1024 caracteres. No se muestra en stickers.",+ "Upload a file or enter a file ID. If both are set, the upload is sent.": "Sube un archivo o ingresa un ID de archivo. Si hay ambos, se envía el archivo subido.",+ "Any file type, up to 50 MB.": "Cualquier tipo de archivo, hasta 50 MB.",+ "file_id of a document already on Telegram, to send it again.": "file_id de un documento que ya está en Telegram, para enviarlo de nuevo.",+ "Up to 1024 characters.": "Hasta 1024 caracteres.",+ "An MP3 or M4A file.": "Un archivo MP3 o M4A.",+ "file_id of audio already on Telegram, to send it again.": "file_id de un audio que ya está en Telegram, para enviarlo de nuevo.",+ "Track name shown in the player.": "Nombre de la pista que muestra el reproductor.",+ "Artist name shown in the player.": "Nombre del artista que muestra el reproductor.",+ "Length in seconds.": "Duración en segundos.",+ "Between -90 and 90.": "Entre -90 y 90.",+ "Between -180 and 180.": "Entre -180 y 180.",+ "Uncertainty radius in meters, 0 to 1500.": "Radio de incertidumbre en metros, de 0 a 1500.",+ "Fill Live Period to share a live location. Heading and Proximity Alert Radius only work with it.": "Completa «Live Period» para compartir una ubicación en tiempo real. «Heading» y «Proximity Alert Radius» solo funcionan con ella.",+ "Seconds, 60 to 86400.": "Segundos, de 60 a 86400.",+ "Degrees, 1 to 360.": "Grados, de 1 a 360.",+ "Alert distance in meters, 1 to 100000.": "Distancia de alerta en metros, de 1 a 100000.",+ "Photos and videos can mix. Audio and files go in albums of their own.": "Se pueden mezclar fotos y videos. El audio y los archivos van en álbumes propios.",+ "How Telegram styles the captions.": "Cómo Telegram da formato a las leyendas.",+ "Up to 300 characters.": "Hasta 300 caracteres.",+ "2 to 10 answers, each up to 100 characters.": "De 2 a 10 respuestas, cada una de hasta 100 caracteres.",+ "Hide who voted for what.": "Oculta quién votó qué.",+ "Regular polls only.": "Solo encuestas normales.",+ "Only used when Poll Type is Quiz.": "Solo se usa cuando «Poll Type» es «Quiz».",+ "Position of the right answer, counting from 0.": "Posición de la respuesta correcta, contando desde 0.",+ "Shown after a wrong answer, up to 200 characters.": "Se muestra tras una respuesta incorrecta, hasta 200 caracteres.",+ "How Telegram styles the explanation.": "Cómo Telegram da formato a la explicación.",+ "Set an open period or a close date, not both.": "Define un periodo abierto o una fecha de cierre, no ambos.",+ "Seconds the poll stays open, 5 to 600.": "Segundos que la encuesta sigue abierta, de 5 a 600.",+ "When the poll closes, 5 to 600 seconds from now.": "Cuándo se cierra la encuesta, de 5 a 600 segundos desde ahora.",+ "Post the poll already closed, to show results.": "Publica la encuesta ya cerrada, para mostrar los resultados.",+ "What the chat shows, e.g. typing or uploading a photo.": "Lo que muestra el chat, p. ej. escribiendo o subiendo una foto.",+ "Fill Chat ID and Message ID together, or Inline Message ID alone.": "Completa «ID del chat» e «ID del mensaje» juntos, o solo «ID del mensaje inline».",+ "From the output of the step that sent it, or the trigger.": "De la salida del paso que lo envió, o del disparador.",+ "For messages sent in inline mode. Replaces Chat ID and Message ID.": "Para mensajes enviados en modo inline. Reemplaza «ID del chat» e «ID del mensaje».",+ "Up to 4096 characters. Replaces the whole message.": "Hasta 4096 caracteres. Reemplaza todo el mensaje.",+ "Chat the message is in, by ID or @username.": "Chat donde está el mensaje, por ID o @username.",+ "ID of the message in that chat.": "ID del mensaje en ese chat.",+ "Pin without notifying chat members.": "Fijar sin notificar a los miembros del chat.",+ "Empty unpins the most recent pinned message.": "Vacío desfija el último mensaje fijado.",+ "Numeric user ID, found in the trigger as message.from.id.": "ID numérico del usuario, en el disparador como message.from.id.",+ "The file_id of a photo, document or audio in a message.": "El file_id de una foto, documento o audio de un mensaje.",+ "Also return the content as base64. Telegram caps this at 20 MB.": "Devuelve también el contenido en base64. Telegram lo limita a 20 MB.",+ "Up to 32 characters, shown only to admins.": "Hasta 32 caracteres, visible solo para admins.",+ "Empty means the link never expires.": "Vacío significa que el enlace nunca caduca.",+ "Use a member limit or admin approval, not both.": "Usa un límite de miembros o la aprobación de admin, no ambos.",+ "How many people can join with this link, 1 to 99999.": "Cuántas personas pueden unirse con este enlace, de 1 a 99999.",+ "Admins approve each person who joins with the link.": "Los admins aprueban a cada persona que se une con el enlace.",+ "callback_query.id from the New Update trigger.": "callback_query.id del disparador «New Update».",+ "Up to 200 characters. Empty just stops the loading spinner.": "Hasta 200 caracteres. Vacío solo detiene el indicador de carga.",+ "Show a pop-up the user must close, instead of a banner.": "Muestra una ventana emergente que el usuario debe cerrar, en lugar de un banner.",+ "Only a t.me link to your bot, or a game URL.": "Solo un enlace t.me a tu bot, o una URL de juego.",+ "Seconds Telegram may reuse this answer. Default 0.": "Segundos que Telegram puede reutilizar esta respuesta. Por defecto 0.",+ "Sent with a Review & Respond button that opens the approval page.": "Se envía con un botón Review & Respond que abre la página de aprobación.",+ "Appended to the URL as ?key=value.": "Se añade a la URL como ?key=value.",+ "On a failed request, output the error instead of failing the step.": "Si la solicitud falla, devuelve el error en lugar de fallar el paso.",+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Segundos de espera de una respuesta. Vacío: hasta el límite del flujo (10 min).",+ "Follow 3xx redirects instead of returning them as the response.": "Seguir redirecciones 3xx en lugar de devolverlas como respuesta.",+ "MarkdownV2": "MarkdownV2",+ "**One webhook per bot.** Publishing another flow with this bot token stops this one. Use one flow per bot and branch on the update type.\n\nAfter publishing, Retest shows sample data. Test before publishing to load a real update.": "**Un webhook por bot.** Publicar otro flujo con este token de bot detiene este. Usa un flujo por bot y ramifica según el tipo de actualización.\n\nTras publicar, «Volver a probar» muestra datos de ejemplo. Prueba antes de publicar para cargar una actualización real.",+ "Empty receives every update except member changes and reactions.": "Vacío recibe todas las actualizaciones excepto cambios de miembros y reacciones.",+ "Inline Button Tap": "Toque en botón inline",+ "Your own chat ID: message @getmyid_bot and send /my_id. A group's ID: add your bot, send /start there, test the New Update trigger before publishing and copy chat.id from that message, not the 123456789 sample. A public channel can use its @username.\n\nThe bot must be in the group or channel, or the person must have messaged it first, or Telegram answers \"chat not found\".": "Tu propio ID de chat: escribe a @getmyid_bot y envía /my_id. ID de un grupo: agrega tu bot, envía /start allí, prueba el disparador «New Update» antes de publicar y copia chat.id de ese mensaje, no el 123456789 del ejemplo. Un canal público puede usar su @username.\n\nEl bot debe estar en el grupo o canal, o la persona debe haberle escrito primero; si no, Telegram responde \"chat not found\".",+ "Empty receives every update except Chat Member and reactions.": "Vacío recibe todas las actualizaciones excepto Chat Member y reacciones.",+ "Caption Format": "Formato de la leyenda",+ "Explanation Format": "Formato de la explicación"}\ No newline at end of filediff --git a/packages/pieces/community/telegram-bot/src/i18n/fr.json b/packages/pieces/community/telegram-bot/src/i18n/fr.jsonindex df1b6f42ce0..52eaf5c9ccc 100644--- a/packages/pieces/community/telegram-bot/src/i18n/fr.json+++ b/packages/pieces/community/telegram-bot/src/i18n/fr.json@@ -65,7 +65,7 @@"Longitude": "Longitude","Horizontal Accuracy": "Horizontal Accuracy","Live Period": "Live Period",- "Heading": "Titres",+ "Heading": "Cap","Proximity Alert Radius": "Proximity Alert Radius","Media": "Media","Question": "Question",@@ -218,5 +218,124 @@"Poll Answer": "Poll Answer","My Chat Member": "My Chat Member","Chat Member": "Chat Member",- "Chat Join Request": "Chat Join Request"+ "Chat Join Request": "Chat Join Request",+ "\n**Authentication**:\n\n1. Begin a conversation with the [Botfather](https://telegram.me/BotFather).\n2. Type in \"/newbot\"\n3. Choose a name for your bot\n4. Choose a username for your bot.\n5. Copy the token BotFather sends and paste it here.\n": "\n**Authentification**:\n\n1. Démarrez une conversation avec [Botfather](https://telegram.me/BotFather).\n2. Tapez \"/newbot\"\n3. Choisissez un nom pour votre bot\n4. Choisissez un nom d'utilisateur pour votre bot.\n5. Copiez le jeton envoyé par BotFather et collez-le ici.\n",+ "Send a text message to a chat, group or channel.": "Envoie un message texte à un chat, un groupe ou un canal.",+ "Send a photo, video, sticker or GIF to a chat.": "Envoie une photo, une vidéo, un sticker ou un GIF à un chat.",+ "Send any file to a chat as a document.": "Envoie n'importe quel fichier à un chat comme document.",+ "Send an MP3 or M4A file that plays in Telegram's music player.": "Envoie un fichier MP3 ou M4A lu dans le lecteur de musique de Telegram.",+ "Send a map pin, or a live location that updates, to a chat.": "Envoie un repère sur la carte, ou une position en direct mise à jour, à un chat.",+ "Send 2 to 10 photos, videos, files or audio tracks as one album.": "Envoie 2 à 10 photos, vidéos, fichiers ou pistes audio en un seul album.",+ "Send a poll or a quiz to a chat.": "Envoie un sondage ou un quiz à un chat.",+ "Show a status like \"typing…\" in a chat for up to 5 seconds.": "Affiche un statut comme « écrit… » dans un chat pendant 5 secondes max.",+ "Replace the text of a message the bot sent.": "Remplace le texte d'un message envoyé par le bot.",+ "Delete a message. The bot needs admin rights to delete other people's messages.": "Supprime un message. Le bot doit être admin pour supprimer les messages des autres.",+ "Pin a message. The bot must be an admin in the chat.": "Épingle un message. Le bot doit être admin du chat.",+ "Unpin one message, or the most recent pinned message.": "Désépingle un message, ou le dernier message épinglé.",+ "Get a chat's title, type, description and settings.": "Récupère le titre, le type, la description et les paramètres d'un chat.",+ "Get a person's status and permissions in a chat.": "Récupère le statut et les permissions d'une personne dans un chat.",+ "Get file details and, optionally, its content.": "Récupère les détails d'un fichier et, si besoin, son contenu.",+ "Create an invite link for a group or channel.": "Crée un lien d'invitation pour un groupe ou un canal.",+ "Answer a tap on an inline button with a short banner or alert.": "Répond à un appui sur un bouton inline avec une courte bannière ou une alerte.",+ "Chat ID": "ID du chat",+ "Topic ID": "ID du sujet",+ "Disable Link Preview": "Désactiver l'aperçu des liens",+ "Reply To Message ID": "Répondre à l'ID de message",+ "Buttons": "Boutons",+ "File": "Fichier",+ "Document ID": "ID du document",+ "Audio ID": "ID de l'audio",+ "Title": "Titre",+ "Correct Option": "Bonne réponse",+ "Explanation": "Explication",+ "Open Period": "Durée d'ouverture",+ "Message ID": "ID du message",+ "Inline Message ID": "ID du message inline",+ "From Chat ID": "ID du chat source",+ "User ID": "ID de l'utilisateur",+ "Link Name": "Nom du lien",+ "Expiry Date": "Date d'expiration",+ "Require Admin Approval": "Exiger l'approbation d'un admin",+ "Callback Query ID": "ID du callback query",+ "Cache Time": "Durée du cache",+ "Response is Binary": "La réponse est binaire",+ "Return Error as Output": "Renvoyer l'erreur en sortie",+ "Timeout": "Délai d'attente",+ "Your own chat ID: message @getmyid_bot and send /my_id. A group's ID: add your bot, send /start there, and read chat.id in the New Update trigger's test data before publishing. A public channel can use its @username.\n\nThe bot must be in the group or channel, or the person must have messaged it first, or Telegram answers \"chat not found\".": "Votre propre ID de chat : écrivez à @getmyid_bot et envoyez /my_id. ID d'un groupe : ajoutez votre bot, envoyez /start dans le groupe et lisez chat.id dans les données de test du déclencheur « New Update » avant de publier. Un canal public peut utiliser son @username.\n\nLe bot doit être dans le groupe ou le canal, ou la personne doit lui avoir écrit d'abord, sinon Telegram répond \"chat not found\".",+ "Numeric chat ID, or @username for a public channel.": "ID numérique du chat, ou @username pour un canal public.",+ "How Telegram styles the text.": "Comment Telegram met en forme le texte.",+ "Up to 4096 characters.": "Jusqu'à 4096 caractères.",+ "[Telegram's formatting guide](https://core.telegram.org/bots/api#formatting-options) lists every tag. MarkdownV2 needs a backslash before symbols like . ! - ( ), or Telegram rejects the message.": "Le [guide de mise en forme de Telegram](https://core.telegram.org/bots/api#formatting-options) liste toutes les balises. MarkdownV2 exige une barre oblique inverse avant les symboles comme . ! - ( ), sinon Telegram rejette le message.",+ "Post inside a topic of a forum group. Empty posts to the main chat.": "Publier dans un sujet d'un groupe forum. Vide publie dans le chat principal.",+ "Don't show a preview card for links in the message.": "Ne pas afficher de carte d'aperçu pour les liens du message.",+ "Deliver without a sound. The message still arrives.": "Envoyer sans son. Le message arrive quand même.",+ "Stop recipients from forwarding or saving the message.": "Empêche les destinataires de transférer ou d'enregistrer le message.",+ "Send as a reply to this message in the same chat.": "Envoyer en réponse à ce message dans le même chat.",+ "reply_markup JSON: an inline keyboard, reply keyboard or forced reply.": "reply_markup JSON : un clavier inline, un clavier de réponse ou une réponse forcée.",+ "Up to 1024 characters. Not shown on stickers.": "Jusqu'à 1024 caractères. Non affiché sur les stickers.",+ "Upload a file or enter a file ID. If both are set, the upload is sent.": "Importez un fichier ou saisissez un ID de fichier. Si les deux sont remplis, le fichier importé est envoyé.",+ "Any file type, up to 50 MB.": "Tout type de fichier, jusqu'à 50 Mo.",+ "file_id of a document already on Telegram, to send it again.": "file_id d'un document déjà sur Telegram, pour l'envoyer à nouveau.",+ "Up to 1024 characters.": "Jusqu'à 1024 caractères.",+ "An MP3 or M4A file.": "Un fichier MP3 ou M4A.",+ "file_id of audio already on Telegram, to send it again.": "file_id d'un audio déjà sur Telegram, pour l'envoyer à nouveau.",+ "Track name shown in the player.": "Nom du morceau affiché dans le lecteur.",+ "Artist name shown in the player.": "Nom de l'artiste affiché dans le lecteur.",+ "Length in seconds.": "Durée en secondes.",+ "Between -90 and 90.": "Entre -90 et 90.",+ "Between -180 and 180.": "Entre -180 et 180.",+ "Uncertainty radius in meters, 0 to 1500.": "Rayon d'incertitude en mètres, de 0 à 1500.",+ "Fill Live Period to share a live location. Heading and Proximity Alert Radius only work with it.": "Remplissez « Live Period » pour partager une position en direct. « Cap » et « Proximity Alert Radius » ne fonctionnent qu'avec elle.",+ "Seconds, 60 to 86400.": "Secondes, de 60 à 86400.",+ "Degrees, 1 to 360.": "Degrés, de 1 à 360.",+ "Alert distance in meters, 1 to 100000.": "Distance d'alerte en mètres, de 1 à 100000.",+ "Photos and videos can mix. Audio and files go in albums of their own.": "Photos et vidéos peuvent être mélangées. Audio et fichiers vont dans leurs propres albums.",+ "How Telegram styles the captions.": "Comment Telegram met en forme les légendes.",+ "Up to 300 characters.": "Jusqu'à 300 caractères.",+ "2 to 10 answers, each up to 100 characters.": "2 à 10 réponses, jusqu'à 100 caractères chacune.",+ "Hide who voted for what.": "Masquer qui a voté pour quoi.",+ "Regular polls only.": "Sondages classiques uniquement.",+ "Only used when Poll Type is Quiz.": "Utilisé seulement si « Poll Type » vaut « Quiz ».",+ "Position of the right answer, counting from 0.": "Position de la bonne réponse, en comptant à partir de 0.",+ "Shown after a wrong answer, up to 200 characters.": "Affichée après une mauvaise réponse, jusqu'à 200 caractères.",+ "How Telegram styles the explanation.": "Comment Telegram met en forme l'explication.",+ "Set an open period or a close date, not both.": "Définissez une durée d'ouverture ou une date de clôture, pas les deux.",+ "Seconds the poll stays open, 5 to 600.": "Secondes pendant lesquelles le sondage reste ouvert, de 5 à 600.",+ "When the poll closes, 5 to 600 seconds from now.": "Quand le sondage se ferme, de 5 à 600 secondes à partir de maintenant.",+ "Post the poll already closed, to show results.": "Publier le sondage déjà clos, pour afficher les résultats.",+ "What the chat shows, e.g. typing or uploading a photo.": "Ce qu'affiche le chat, par ex. saisie en cours ou envoi d'une photo.",+ "Fill Chat ID and Message ID together, or Inline Message ID alone.": "Remplissez « ID du chat » et « ID du message » ensemble, ou « ID du message inline » seul.",+ "From the output of the step that sent it, or the trigger.": "Depuis la sortie de l'étape qui l'a envoyé, ou du déclencheur.",+ "For messages sent in inline mode. Replaces Chat ID and Message ID.": "Pour les messages envoyés en mode inline. Remplace « ID du chat » et « ID du message ».",+ "Up to 4096 characters. Replaces the whole message.": "Jusqu'à 4096 caractères. Remplace tout le message.",+ "Chat the message is in, by ID or @username.": "Chat contenant le message, par ID ou @username.",+ "ID of the message in that chat.": "ID du message dans ce chat.",+ "Pin without notifying chat members.": "Épingler sans notifier les membres du chat.",+ "Empty unpins the most recent pinned message.": "Vide désépingle le dernier message épinglé.",+ "Numeric user ID, found in the trigger as message.from.id.": "ID numérique de l'utilisateur, dans le déclencheur sous message.from.id.",+ "The file_id of a photo, document or audio in a message.": "Le file_id d'une photo, d'un document ou d'un audio dans un message.",+ "Also return the content as base64. Telegram caps this at 20 MB.": "Renvoie aussi le contenu en base64. Telegram limite cela à 20 Mo.",+ "Up to 32 characters, shown only to admins.": "Jusqu'à 32 caractères, visible uniquement par les admins.",+ "Empty means the link never expires.": "Vide signifie que le lien n'expire jamais.",+ "Use a member limit or admin approval, not both.": "Utilisez une limite de membres ou l'approbation d'un admin, pas les deux.",+ "How many people can join with this link, 1 to 99999.": "Nombre de personnes pouvant rejoindre via ce lien, de 1 à 99999.",+ "Admins approve each person who joins with the link.": "Les admins approuvent chaque personne qui rejoint via le lien.",+ "callback_query.id from the New Update trigger.": "callback_query.id du déclencheur « New Update ».",+ "Up to 200 characters. Empty just stops the loading spinner.": "Jusqu'à 200 caractères. Vide arrête seulement l'indicateur de chargement.",+ "Show a pop-up the user must close, instead of a banner.": "Afficher une fenêtre que l'utilisateur doit fermer, au lieu d'une bannière.",+ "Only a t.me link to your bot, or a game URL.": "Uniquement un lien t.me vers votre bot, ou l'URL d'un jeu.",+ "Seconds Telegram may reuse this answer. Default 0.": "Secondes pendant lesquelles Telegram peut réutiliser cette réponse. 0 par défaut.",+ "Sent with a Review & Respond button that opens the approval page.": "Envoyé avec un bouton Review & Respond qui ouvre la page d'approbation.",+ "Appended to the URL as ?key=value.": "Ajouté à l'URL sous la forme ?key=value.",+ "On a failed request, output the error instead of failing the step.": "En cas d'échec de la requête, renvoyer l'erreur au lieu de faire échouer l'étape.",+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Secondes d'attente d'une réponse. Vide : jusqu'à la limite du flow (10 min).",+ "Follow 3xx redirects instead of returning them as the response.": "Suivre les redirections 3xx au lieu de les renvoyer comme réponse.",+ "MarkdownV2": "MarkdownV2",+ "**One webhook per bot.** Publishing another flow with this bot token stops this one. Use one flow per bot and branch on the update type.\n\nAfter publishing, Retest shows sample data. Test before publishing to load a real update.": "**Un webhook par bot.** Publier un autre flow avec ce jeton de bot arrête celui-ci. Utilisez un flow par bot et créez des branches selon le type de mise à jour.\n\nAprès publication, « Retest » affiche des données d'exemple. Testez avant de publier pour charger une vraie mise à jour.",+ "Empty receives every update except member changes and reactions.": "Vide reçoit toutes les mises à jour sauf les changements de membres et les réactions.",+ "Inline Button Tap": "Appui sur un bouton inline",+ "Your own chat ID: message @getmyid_bot and send /my_id. A group's ID: add your bot, send /start there, test the New Update trigger before publishing and copy chat.id from that message, not the 123456789 sample. A public channel can use its @username.\n\nThe bot must be in the group or channel, or the person must have messaged it first, or Telegram answers \"chat not found\".": "Votre propre ID de chat : écrivez à @getmyid_bot et envoyez /my_id. ID d'un groupe : ajoutez votre bot, envoyez /start dans le groupe, testez le déclencheur « New Update » avant de publier et copiez chat.id de ce message, pas le 123456789 de l'exemple. Un canal public peut utiliser son @username.\n\nLe bot doit être dans le groupe ou le canal, ou la personne doit lui avoir écrit d'abord, sinon Telegram répond \"chat not found\".",+ "Empty receives every update except Chat Member and reactions.": "Vide reçoit toutes les mises à jour sauf Chat Member et les réactions.",+ "Caption Format": "Format de la légende",+ "Explanation Format": "Format de l'explication"}\ No newline at end of filediff --git a/packages/pieces/community/telegram-bot/src/i18n/ja.json b/packages/pieces/community/telegram-bot/src/i18n/ja.jsonindex 1297b7e27ae..d44c9c26e74 100644--- a/packages/pieces/community/telegram-bot/src/i18n/ja.json+++ b/packages/pieces/community/telegram-bot/src/i18n/ja.json@@ -218,5 +218,124 @@"Poll Answer": "Poll Answer","My Chat Member": "My Chat Member","Chat Member": "Chat Member",- "Chat Join Request": "Chat Join Request"+ "Chat Join Request": "Chat Join Request",+ "\n**Authentication**:\n\n1. Begin a conversation with the [Botfather](https://telegram.me/BotFather).\n2. Type in \"/newbot\"\n3. Choose a name for your bot\n4. Choose a username for your bot.\n5. Copy the token BotFather sends and paste it here.\n": "\n**認証**:\n\n1. [Botfather](https://telegram.me/BotFather) との会話を始めます。\n2. \"/newbot\" と入力します\n3. ボットの名前を決めます\n4. ボットのユーザー名を決めます。\n5. BotFather から届いたトークンをコピーして、ここに貼り付けます。\n",+ "Send a text message to a chat, group or channel.": "チャット、グループ、チャンネルにテキストメッセージを送信します。",+ "Send a photo, video, sticker or GIF to a chat.": "写真、動画、ステッカー、GIF をチャットに送信します。",+ "Send any file to a chat as a document.": "任意のファイルをドキュメントとしてチャットに送信します。",+ "Send an MP3 or M4A file that plays in Telegram's music player.": "Telegram の音楽プレーヤーで再生される MP3 または M4A ファイルを送信します。",+ "Send a map pin, or a live location that updates, to a chat.": "地図のピン、または更新され続けるライブ位置情報をチャットに送信します。",+ "Send 2 to 10 photos, videos, files or audio tracks as one album.": "2〜10 件の写真、動画、ファイル、音声を 1 つのアルバムとして送信します。",+ "Send a poll or a quiz to a chat.": "アンケートまたはクイズをチャットに送信します。",+ "Show a status like \"typing…\" in a chat for up to 5 seconds.": "チャットに「入力中…」などのステータスを最大 5 秒間表示します。",+ "Replace the text of a message the bot sent.": "ボットが送信したメッセージのテキストを置き換えます。",+ "Delete a message. The bot needs admin rights to delete other people's messages.": "メッセージを削除します。他の人のメッセージを削除するには、ボットに管理者権限が必要です。",+ "Pin a message. The bot must be an admin in the chat.": "メッセージをピン留めします。ボットはチャットの管理者である必要があります。",+ "Unpin one message, or the most recent pinned message.": "1 件のメッセージ、または最新のピン留めメッセージのピン留めを解除します。",+ "Get a chat's title, type, description and settings.": "チャットのタイトル、種類、説明、設定を取得します。",+ "Get a person's status and permissions in a chat.": "チャット内のユーザーのステータスと権限を取得します。",+ "Get file details and, optionally, its content.": "ファイルの詳細と、必要に応じてその内容を取得します。",+ "Create an invite link for a group or channel.": "グループまたはチャンネルの招待リンクを作成します。",+ "Answer a tap on an inline button with a short banner or alert.": "インラインボタンのタップに、短いバナーまたはアラートで応答します。",+ "Chat ID": "チャット ID",+ "Topic ID": "トピック ID",+ "Disable Link Preview": "リンクプレビューを無効化",+ "Reply To Message ID": "返信先メッセージ ID",+ "Buttons": "ボタン",+ "File": "ファイル",+ "Document ID": "ドキュメント ID",+ "Audio ID": "音声 ID",+ "Title": "タイトル",+ "Correct Option": "正解の選択肢",+ "Explanation": "解説",+ "Open Period": "受付期間",+ "Message ID": "メッセージ ID",+ "Inline Message ID": "インラインメッセージ ID",+ "From Chat ID": "転送元チャット ID",+ "User ID": "ユーザー ID",+ "Link Name": "リンク名",+ "Expiry Date": "有効期限",+ "Require Admin Approval": "管理者の承認を必須にする",+ "Callback Query ID": "コールバッククエリ ID",+ "Cache Time": "キャッシュ時間",+ "Response is Binary": "応答はバイナリ",+ "Return Error as Output": "エラーを出力として返す",+ "Timeout": "タイムアウト",+ "Your own chat ID: message @getmyid_bot and send /my_id. A group's ID: add your bot, send /start there, and read chat.id in the New Update trigger's test data before publishing. A public channel can use its @username.\n\nThe bot must be in the group or channel, or the person must have messaged it first, or Telegram answers \"chat not found\".": "自分のチャット ID: @getmyid_bot にメッセージを送り、/my_id を送信します。グループの ID: ボットを追加してそこで /start を送信し、公開前に New Update トリガーのテストデータで chat.id を確認します。公開チャンネルは @username を使えます。\n\nボットがグループまたはチャンネルに参加しているか、相手が先にボットへメッセージを送っている必要があります。そうでないと Telegram は \"chat not found\" を返します。",+ "Numeric chat ID, or @username for a public channel.": "数値のチャット ID、または公開チャンネルの @username。",+ "How Telegram styles the text.": "Telegram でのテキストの書式。",+ "Up to 4096 characters.": "最大 4096 文字。",+ "[Telegram's formatting guide](https://core.telegram.org/bots/api#formatting-options) lists every tag. MarkdownV2 needs a backslash before symbols like . ! - ( ), or Telegram rejects the message.": "[Telegram の書式ガイド](https://core.telegram.org/bots/api#formatting-options)にすべてのタグが載っています。MarkdownV2 では . ! - ( ) などの記号の前にバックスラッシュが必要です。ないと Telegram はメッセージを拒否します。",+ "Post inside a topic of a forum group. Empty posts to the main chat.": "フォーラムグループのトピック内に投稿します。空欄の場合はメインチャットに投稿します。",+ "Don't show a preview card for links in the message.": "メッセージ内のリンクのプレビューカードを表示しません。",+ "Deliver without a sound. The message still arrives.": "通知音なしで送信します。メッセージは通常どおり届きます。",+ "Stop recipients from forwarding or saving the message.": "受信者がメッセージを転送・保存できないようにします。",+ "Send as a reply to this message in the same chat.": "同じチャット内のこのメッセージへの返信として送信します。",+ "reply_markup JSON: an inline keyboard, reply keyboard or forced reply.": "reply_markup JSON: インラインキーボード、返信キーボード、または強制返信。",+ "Up to 1024 characters. Not shown on stickers.": "最大 1024 文字。ステッカーには表示されません。",+ "Upload a file or enter a file ID. If both are set, the upload is sent.": "ファイルをアップロードするか、ファイル ID を入力します。両方ある場合はアップロードしたファイルが送信されます。",+ "Any file type, up to 50 MB.": "あらゆる種類のファイル、最大 50 MB。",+ "file_id of a document already on Telegram, to send it again.": "Telegram 上にある既存ドキュメントの file_id。再送信に使います。",+ "Up to 1024 characters.": "最大 1024 文字。",+ "An MP3 or M4A file.": "MP3 または M4A ファイル。",+ "file_id of audio already on Telegram, to send it again.": "Telegram 上にある既存音声の file_id。再送信に使います。",+ "Track name shown in the player.": "プレーヤーに表示される曲名。",+ "Artist name shown in the player.": "プレーヤーに表示されるアーティスト名。",+ "Length in seconds.": "長さ(秒)。",+ "Between -90 and 90.": "-90 〜 90 の範囲。",+ "Between -180 and 180.": "-180 〜 180 の範囲。",+ "Uncertainty radius in meters, 0 to 1500.": "誤差の半径(メートル)、0〜1500。",+ "Fill Live Period to share a live location. Heading and Proximity Alert Radius only work with it.": "ライブ位置情報を共有するには Live Period を入力します。Heading と Proximity Alert Radius はこれと併用した場合のみ機能します。",+ "Seconds, 60 to 86400.": "秒数、60〜86400。",+ "Degrees, 1 to 360.": "角度、1〜360。",+ "Alert distance in meters, 1 to 100000.": "アラート距離(メートル)、1〜100000。",+ "Photos and videos can mix. Audio and files go in albums of their own.": "写真と動画は混在できます。音声とファイルはそれぞれ専用のアルバムになります。",+ "How Telegram styles the captions.": "Telegram でのキャプションの書式。",+ "Up to 300 characters.": "最大 300 文字。",+ "2 to 10 answers, each up to 100 characters.": "回答は 2〜10 個、各 100 文字まで。",+ "Hide who voted for what.": "誰が何に投票したかを非表示にします。",+ "Regular polls only.": "通常のアンケートのみ。",+ "Only used when Poll Type is Quiz.": "Poll Type が Quiz の場合のみ使用されます。",+ "Position of the right answer, counting from 0.": "正解の位置(0 から数える)。",+ "Shown after a wrong answer, up to 200 characters.": "不正解の後に表示されます。最大 200 文字。",+ "How Telegram styles the explanation.": "Telegram での解説の書式。",+ "Set an open period or a close date, not both.": "受付期間か締切日時のどちらか一方を設定してください。",+ "Seconds the poll stays open, 5 to 600.": "アンケートの受付秒数、5〜600。",+ "When the poll closes, 5 to 600 seconds from now.": "アンケートの締切。現在から 5〜600 秒後。",+ "Post the poll already closed, to show results.": "結果を見せるため、締め切った状態でアンケートを投稿します。",+ "What the chat shows, e.g. typing or uploading a photo.": "チャットに表示する内容(例: 入力中、写真をアップロード中)。",+ "Fill Chat ID and Message ID together, or Inline Message ID alone.": "チャット ID とメッセージ ID を一緒に入力するか、インラインメッセージ ID のみを入力します。",+ "From the output of the step that sent it, or the trigger.": "送信したステップ、またはトリガーの出力から取得します。",+ "For messages sent in inline mode. Replaces Chat ID and Message ID.": "インラインモードで送信されたメッセージ用。チャット ID とメッセージ ID の代わりに使います。",+ "Up to 4096 characters. Replaces the whole message.": "最大 4096 文字。メッセージ全体を置き換えます。",+ "Chat the message is in, by ID or @username.": "メッセージがあるチャット(ID または @username)。",+ "ID of the message in that chat.": "そのチャット内のメッセージの ID。",+ "Pin without notifying chat members.": "チャットメンバーに通知せずにピン留めします。",+ "Empty unpins the most recent pinned message.": "空欄の場合、最新のピン留めメッセージを解除します。",+ "Numeric user ID, found in the trigger as message.from.id.": "数値のユーザー ID。トリガーの message.from.id で確認できます。",+ "The file_id of a photo, document or audio in a message.": "メッセージ内の写真、ドキュメント、音声の file_id。",+ "Also return the content as base64. Telegram caps this at 20 MB.": "内容も base64 で返します。Telegram の上限は 20 MB です。",+ "Up to 32 characters, shown only to admins.": "最大 32 文字。管理者にのみ表示されます。",+ "Empty means the link never expires.": "空欄の場合、リンクは無期限です。",+ "Use a member limit or admin approval, not both.": "メンバー数の上限か管理者の承認のどちらか一方を使ってください。",+ "How many people can join with this link, 1 to 99999.": "このリンクで参加できる人数、1〜99999。",+ "Admins approve each person who joins with the link.": "リンクから参加する人を管理者が 1 人ずつ承認します。",+ "callback_query.id from the New Update trigger.": "New Update トリガーの callback_query.id。",+ "Up to 200 characters. Empty just stops the loading spinner.": "最大 200 文字。空欄の場合は読み込みスピナーを止めるだけです。",+ "Show a pop-up the user must close, instead of a banner.": "バナーの代わりに、ユーザーが閉じる必要のあるポップアップを表示します。",+ "Only a t.me link to your bot, or a game URL.": "ボットへの t.me リンク、またはゲームの URL のみ。",+ "Seconds Telegram may reuse this answer. Default 0.": "Telegram がこの応答を再利用できる秒数。デフォルトは 0。",+ "Sent with a Review & Respond button that opens the approval page.": "承認ページを開く Review & Respond ボタン付きで送信されます。",+ "Appended to the URL as ?key=value.": "?key=value として URL に追加されます。",+ "On a failed request, output the error instead of failing the step.": "リクエストが失敗した場合、ステップを失敗させずにエラーを出力します。",+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "応答を待つ秒数。空欄の場合はフローの上限(10 分)まで待ちます。",+ "Follow 3xx redirects instead of returning them as the response.": "3xx リダイレクトを応答として返さず、リダイレクト先をたどります。",+ "MarkdownV2": "MarkdownV2",+ "**One webhook per bot.** Publishing another flow with this bot token stops this one. Use one flow per bot and branch on the update type.\n\nAfter publishing, Retest shows sample data. Test before publishing to load a real update.": "**Webhook はボットごとに 1 つです。** このボットトークンで別のフローを公開すると、このフローは停止します。ボットごとに 1 つのフローを使い、更新の種類で分岐してください。\n\n公開後は Retest でサンプルデータが表示されます。実際の更新を読み込むには、公開前にテストしてください。",+ "Empty receives every update except member changes and reactions.": "空欄の場合、メンバーの変更とリアクションを除くすべての更新を受信します。",+ "Inline Button Tap": "インラインボタンのタップ",+ "Your own chat ID: message @getmyid_bot and send /my_id. A group's ID: add your bot, send /start there, test the New Update trigger before publishing and copy chat.id from that message, not the 123456789 sample. A public channel can use its @username.\n\nThe bot must be in the group or channel, or the person must have messaged it first, or Telegram answers \"chat not found\".": "自分のチャット ID: @getmyid_bot にメッセージを送り、/my_id を送信します。グループの ID: ボットを追加してそこで /start を送信し、公開前に New Update トリガーをテストして、そのメッセージの chat.id をコピーします (サンプルの 123456789 ではありません)。公開チャンネルは @username を使えます。\n\nボットがグループまたはチャンネルに参加しているか、相手が先にボットへメッセージを送っている必要があります。そうでないと Telegram は \"chat not found\" を返します。",+ "Empty receives every update except Chat Member and reactions.": "空欄の場合、Chat Member とリアクションを除くすべての更新を受信します。",+ "Caption Format": "キャプションの書式",+ "Explanation Format": "解説の書式"}\ No newline at end of filediff --git a/packages/pieces/community/telegram-bot/src/i18n/nl.json b/packages/pieces/community/telegram-bot/src/i18n/nl.jsonindex 98ae42c0bdf..379ad25e104 100644--- a/packages/pieces/community/telegram-bot/src/i18n/nl.json+++ b/packages/pieces/community/telegram-bot/src/i18n/nl.json@@ -218,5 +218,124 @@"Poll Answer": "Poll Answer","My Chat Member": "My Chat Member","Chat Member": "Chat Member",- "Chat Join Request": "Chat Join Request"+ "Chat Join Request": "Chat Join Request",+ "\n**Authentication**:\n\n1. Begin a conversation with the [Botfather](https://telegram.me/BotFather).\n2. Type in \"/newbot\"\n3. Choose a name for your bot\n4. Choose a username for your bot.\n5. Copy the token BotFather sends and paste it here.\n": "\n**Authenticatie**:\n\n1. Begin een gesprek met de [Botfather](https://telegram.me/BotFather).\n2. Typ \"/newbot\"\n3. Kies een naam voor je bot\n4. Kies een gebruikersnaam voor je bot.\n5. Kopieer het token dat BotFather stuurt en plak het hier.\n",+ "Send a text message to a chat, group or channel.": "Stuur een tekstbericht naar een chat, groep of kanaal.",+ "Send a photo, video, sticker or GIF to a chat.": "Stuur een foto, video, sticker of GIF naar een chat.",+ "Send any file to a chat as a document.": "Stuur een willekeurig bestand als document naar een chat.",+ "Send an MP3 or M4A file that plays in Telegram's music player.": "Stuur een MP3- of M4A-bestand dat in de muziekspeler van Telegram speelt.",+ "Send a map pin, or a live location that updates, to a chat.": "Stuur een kaartpin, of een live locatie die wordt bijgewerkt, naar een chat.",+ "Send 2 to 10 photos, videos, files or audio tracks as one album.": "Stuur 2 tot 10 foto's, video's, bestanden of audiotracks als één album.",+ "Send a poll or a quiz to a chat.": "Stuur een peiling of quiz naar een chat.",+ "Show a status like \"typing…\" in a chat for up to 5 seconds.": "Toon een status zoals \"typt…\" in een chat, tot 5 seconden lang.",+ "Replace the text of a message the bot sent.": "Vervang de tekst van een bericht dat de bot heeft verstuurd.",+ "Delete a message. The bot needs admin rights to delete other people's messages.": "Verwijder een bericht. De bot heeft beheerdersrechten nodig om berichten van anderen te verwijderen.",+ "Pin a message. The bot must be an admin in the chat.": "Maak een bericht vast. De bot moet beheerder zijn in de chat.",+ "Unpin one message, or the most recent pinned message.": "Maak één bericht los, of het laatst vastgemaakte bericht.",+ "Get a chat's title, type, description and settings.": "Haal de titel, het type, de beschrijving en de instellingen van een chat op.",+ "Get a person's status and permissions in a chat.": "Haal de status en rechten van een persoon in een chat op.",+ "Get file details and, optionally, its content.": "Haal bestandsgegevens en eventueel de inhoud op.",+ "Create an invite link for a group or channel.": "Maak een uitnodigingslink voor een groep of kanaal.",+ "Answer a tap on an inline button with a short banner or alert.": "Beantwoord een tik op een inline knop met een korte banner of melding.",+ "Chat ID": "Chat-ID",+ "Topic ID": "Onderwerp-ID",+ "Disable Link Preview": "Linkvoorbeeld uitschakelen",+ "Reply To Message ID": "Antwoord op bericht-ID",+ "Buttons": "Knoppen",+ "File": "Bestand",+ "Document ID": "Document-ID",+ "Audio ID": "Audio-ID",+ "Title": "Titel",+ "Correct Option": "Juiste optie",+ "Explanation": "Uitleg",+ "Open Period": "Openingsduur",+ "Message ID": "Bericht-ID",+ "Inline Message ID": "Inline bericht-ID",+ "From Chat ID": "Van chat-ID",+ "User ID": "Gebruikers-ID",+ "Link Name": "Linknaam",+ "Expiry Date": "Vervaldatum",+ "Require Admin Approval": "Goedkeuring door beheerder vereisen",+ "Callback Query ID": "Callback-query-ID",+ "Cache Time": "Cachetijd",+ "Response is Binary": "Antwoord is binair",+ "Return Error as Output": "Fout als uitvoer teruggeven",+ "Timeout": "Time-out",+ "Your own chat ID: message @getmyid_bot and send /my_id. A group's ID: add your bot, send /start there, and read chat.id in the New Update trigger's test data before publishing. A public channel can use its @username.\n\nThe bot must be in the group or channel, or the person must have messaged it first, or Telegram answers \"chat not found\".": "Je eigen chat-ID: stuur @getmyid_bot een bericht en verstuur /my_id. ID van een groep: voeg je bot toe, stuur daar /start en lees chat.id in de testgegevens van de New Update-trigger vóór het publiceren. Een openbaar kanaal kan zijn @username gebruiken.\n\nDe bot moet in de groep of het kanaal zitten, of de persoon moet de bot eerst een bericht hebben gestuurd, anders antwoordt Telegram \"chat not found\".",+ "Numeric chat ID, or @username for a public channel.": "Numerieke chat-ID, of @username voor een openbaar kanaal.",+ "How Telegram styles the text.": "Hoe Telegram de tekst opmaakt.",+ "Up to 4096 characters.": "Maximaal 4096 tekens.",+ "[Telegram's formatting guide](https://core.telegram.org/bots/api#formatting-options) lists every tag. MarkdownV2 needs a backslash before symbols like . ! - ( ), or Telegram rejects the message.": "[De opmaakgids van Telegram](https://core.telegram.org/bots/api#formatting-options) noemt elke tag. MarkdownV2 vereist een backslash vóór tekens als . ! - ( ), anders weigert Telegram het bericht.",+ "Post inside a topic of a forum group. Empty posts to the main chat.": "Plaats in een onderwerp van een forumgroep. Leeg plaatst in de hoofdchat.",+ "Don't show a preview card for links in the message.": "Toon geen voorbeeldkaart voor links in het bericht.",+ "Deliver without a sound. The message still arrives.": "Bezorg zonder geluid. Het bericht komt gewoon aan.",+ "Stop recipients from forwarding or saving the message.": "Voorkom dat ontvangers het bericht doorsturen of opslaan.",+ "Send as a reply to this message in the same chat.": "Stuur als antwoord op dit bericht in dezelfde chat.",+ "reply_markup JSON: an inline keyboard, reply keyboard or forced reply.": "reply_markup JSON: een inline toetsenbord, antwoordtoetsenbord of geforceerd antwoord.",+ "Up to 1024 characters. Not shown on stickers.": "Maximaal 1024 tekens. Niet zichtbaar bij stickers.",+ "Upload a file or enter a file ID. If both are set, the upload is sent.": "Upload een bestand of voer een bestands-ID in. Als beide zijn ingevuld, wordt de upload verstuurd.",+ "Any file type, up to 50 MB.": "Elk bestandstype, maximaal 50 MB.",+ "file_id of a document already on Telegram, to send it again.": "file_id van een document dat al op Telegram staat, om het opnieuw te sturen.",+ "Up to 1024 characters.": "Maximaal 1024 tekens.",+ "An MP3 or M4A file.": "Een MP3- of M4A-bestand.",+ "file_id of audio already on Telegram, to send it again.": "file_id van audio die al op Telegram staat, om die opnieuw te sturen.",+ "Track name shown in the player.": "Tracknaam in de speler.",+ "Artist name shown in the player.": "Artiestnaam in de speler.",+ "Length in seconds.": "Lengte in seconden.",+ "Between -90 and 90.": "Tussen -90 en 90.",+ "Between -180 and 180.": "Tussen -180 en 180.",+ "Uncertainty radius in meters, 0 to 1500.": "Onzekerheidsstraal in meters, 0 tot 1500.",+ "Fill Live Period to share a live location. Heading and Proximity Alert Radius only work with it.": "Vul Live Period in om een live locatie te delen. Heading en Proximity Alert Radius werken alleen in combinatie daarmee.",+ "Seconds, 60 to 86400.": "Seconden, 60 tot 86400.",+ "Degrees, 1 to 360.": "Graden, 1 tot 360.",+ "Alert distance in meters, 1 to 100000.": "Meldingsafstand in meters, 1 tot 100000.",+ "Photos and videos can mix. Audio and files go in albums of their own.": "Foto's en video's mogen samen. Audio en bestanden krijgen een eigen album.",+ "How Telegram styles the captions.": "Hoe Telegram de bijschriften opmaakt.",+ "Up to 300 characters.": "Maximaal 300 tekens.",+ "2 to 10 answers, each up to 100 characters.": "2 tot 10 antwoorden, elk maximaal 100 tekens.",+ "Hide who voted for what.": "Verberg wie waarop heeft gestemd.",+ "Regular polls only.": "Alleen gewone peilingen.",+ "Only used when Poll Type is Quiz.": "Alleen gebruikt als Poll Type Quiz is.",+ "Position of the right answer, counting from 0.": "Positie van het juiste antwoord, geteld vanaf 0.",+ "Shown after a wrong answer, up to 200 characters.": "Getoond na een fout antwoord, maximaal 200 tekens.",+ "How Telegram styles the explanation.": "Hoe Telegram de uitleg opmaakt.",+ "Set an open period or a close date, not both.": "Stel een openingsduur of een sluitdatum in, niet allebei.",+ "Seconds the poll stays open, 5 to 600.": "Seconden dat de peiling open blijft, 5 tot 600.",+ "When the poll closes, 5 to 600 seconds from now.": "Wanneer de peiling sluit, 5 tot 600 seconden vanaf nu.",+ "Post the poll already closed, to show results.": "Plaats de peiling al gesloten, om de resultaten te tonen.",+ "What the chat shows, e.g. typing or uploading a photo.": "Wat de chat toont, bijv. typen of een foto uploaden.",+ "Fill Chat ID and Message ID together, or Inline Message ID alone.": "Vul Chat-ID en Bericht-ID samen in, of alleen Inline bericht-ID.",+ "From the output of the step that sent it, or the trigger.": "Uit de uitvoer van de stap die het verstuurde, of van de trigger.",+ "For messages sent in inline mode. Replaces Chat ID and Message ID.": "Voor berichten verstuurd in inline modus. Vervangt Chat-ID en Bericht-ID.",+ "Up to 4096 characters. Replaces the whole message.": "Maximaal 4096 tekens. Vervangt het hele bericht.",+ "Chat the message is in, by ID or @username.": "Chat waarin het bericht staat, via ID of @username.",+ "ID of the message in that chat.": "ID van het bericht in die chat.",+ "Pin without notifying chat members.": "Vastmaken zonder chatleden te melden.",+ "Empty unpins the most recent pinned message.": "Leeg maakt het laatst vastgemaakte bericht los.",+ "Numeric user ID, found in the trigger as message.from.id.": "Numerieke gebruikers-ID, te vinden in de trigger als message.from.id.",+ "The file_id of a photo, document or audio in a message.": "De file_id van een foto, document of audio in een bericht.",+ "Also return the content as base64. Telegram caps this at 20 MB.": "Geef de inhoud ook terug als base64. Telegram beperkt dit tot 20 MB.",+ "Up to 32 characters, shown only to admins.": "Maximaal 32 tekens, alleen zichtbaar voor beheerders.",+ "Empty means the link never expires.": "Leeg betekent dat de link nooit verloopt.",+ "Use a member limit or admin approval, not both.": "Gebruik een ledenlimiet of goedkeuring door beheerder, niet allebei.",+ "How many people can join with this link, 1 to 99999.": "Hoeveel mensen via deze link kunnen deelnemen, 1 tot 99999.",+ "Admins approve each person who joins with the link.": "Beheerders keuren iedereen goed die via de link deelneemt.",+ "callback_query.id from the New Update trigger.": "callback_query.id uit de New Update-trigger.",+ "Up to 200 characters. Empty just stops the loading spinner.": "Maximaal 200 tekens. Leeg stopt alleen de laadspinner.",+ "Show a pop-up the user must close, instead of a banner.": "Toon een pop-up die de gebruiker moet sluiten, in plaats van een banner.",+ "Only a t.me link to your bot, or a game URL.": "Alleen een t.me-link naar je bot, of een game-URL.",+ "Seconds Telegram may reuse this answer. Default 0.": "Seconden dat Telegram dit antwoord mag hergebruiken. Standaard 0.",+ "Sent with a Review & Respond button that opens the approval page.": "Verstuurd met een Review & Respond-knop die de goedkeuringspagina opent.",+ "Appended to the URL as ?key=value.": "Toegevoegd aan de URL als ?key=value.",+ "On a failed request, output the error instead of failing the step.": "Geef bij een mislukt verzoek de fout als uitvoer, in plaats van de stap te laten mislukken.",+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Seconden wachten op een antwoord. Leeg: tot de flowlimiet (10 min).",+ "Follow 3xx redirects instead of returning them as the response.": "Volg 3xx-omleidingen in plaats van ze als antwoord terug te geven.",+ "MarkdownV2": "MarkdownV2",+ "**One webhook per bot.** Publishing another flow with this bot token stops this one. Use one flow per bot and branch on the update type.\n\nAfter publishing, Retest shows sample data. Test before publishing to load a real update.": "**Eén webhook per bot.** Als je een andere flow met dit bottoken publiceert, stopt deze. Gebruik één flow per bot en vertak op het updatetype.\n\nNa publicatie toont Retest voorbeeldgegevens. Test vóór publicatie om een echte update te laden.",+ "Empty receives every update except member changes and reactions.": "Leeg ontvangt elke update behalve ledenwijzigingen en reacties.",+ "Inline Button Tap": "Tik op inline knop",+ "Your own chat ID: message @getmyid_bot and send /my_id. A group's ID: add your bot, send /start there, test the New Update trigger before publishing and copy chat.id from that message, not the 123456789 sample. A public channel can use its @username.\n\nThe bot must be in the group or channel, or the person must have messaged it first, or Telegram answers \"chat not found\".": "Je eigen chat-ID: stuur @getmyid_bot een bericht en verstuur /my_id. ID van een groep: voeg je bot toe, stuur daar /start, test de New Update-trigger vóór het publiceren en kopieer chat.id uit dat bericht, niet het voorbeeld 123456789. Een openbaar kanaal kan zijn @username gebruiken.\n\nDe bot moet in de groep of het kanaal zitten, of de persoon moet de bot eerst een bericht hebben gestuurd, anders antwoordt Telegram \"chat not found\".",+ "Empty receives every update except Chat Member and reactions.": "Leeg ontvangt elke update behalve Chat Member en reacties.",+ "Caption Format": "Opmaak van bijschrift",+ "Explanation Format": "Opmaak van uitleg"}\ No newline at end of filediff --git a/packages/pieces/community/telegram-bot/src/i18n/pt.json b/packages/pieces/community/telegram-bot/src/i18n/pt.jsonindex b15c611bbbb..8f714189b12 100644--- a/packages/pieces/community/telegram-bot/src/i18n/pt.json+++ b/packages/pieces/community/telegram-bot/src/i18n/pt.json@@ -218,5 +218,124 @@"Poll Answer": "Poll Answer","My Chat Member": "My Chat Member","Chat Member": "Chat Member",- "Chat Join Request": "Chat Join Request"+ "Chat Join Request": "Chat Join Request",+ "\n**Authentication**:\n\n1. Begin a conversation with the [Botfather](https://telegram.me/BotFather).\n2. Type in \"/newbot\"\n3. Choose a name for your bot\n4. Choose a username for your bot.\n5. Copy the token BotFather sends and paste it here.\n": "\n**Autenticação**:\n\n1. Comece uma conversa com o [Botfather](https://telegram.me/BotFather).\n2. Digite \"/newbot\"\n3. Escolha um nome para o seu bot\n4. Escolha um nome de usuário para o seu bot.\n5. Copie o token que o BotFather enviar e cole aqui.\n",+ "Send a text message to a chat, group or channel.": "Envia uma mensagem de texto para um chat, grupo ou canal.",+ "Send a photo, video, sticker or GIF to a chat.": "Envia uma foto, vídeo, figurinha ou GIF para um chat.",+ "Send any file to a chat as a document.": "Envia qualquer arquivo para um chat como documento.",+ "Send an MP3 or M4A file that plays in Telegram's music player.": "Envia um arquivo MP3 ou M4A que toca no player de música do Telegram.",+ "Send a map pin, or a live location that updates, to a chat.": "Envia um pin no mapa, ou uma localização em tempo real que se atualiza, para um chat.",+ "Send 2 to 10 photos, videos, files or audio tracks as one album.": "Envia de 2 a 10 fotos, vídeos, arquivos ou faixas de áudio como um único álbum.",+ "Send a poll or a quiz to a chat.": "Envia uma enquete ou um quiz para um chat.",+ "Show a status like \"typing…\" in a chat for up to 5 seconds.": "Mostra um status como \"digitando…\" em um chat por até 5 segundos.",+ "Replace the text of a message the bot sent.": "Substitui o texto de uma mensagem enviada pelo bot.",+ "Delete a message. The bot needs admin rights to delete other people's messages.": "Exclui uma mensagem. O bot precisa ser admin para excluir mensagens de outras pessoas.",+ "Pin a message. The bot must be an admin in the chat.": "Fixa uma mensagem. O bot precisa ser admin no chat.",+ "Unpin one message, or the most recent pinned message.": "Desafixa uma mensagem, ou a mensagem fixada mais recente.",+ "Get a chat's title, type, description and settings.": "Obtém o título, tipo, descrição e configurações de um chat.",+ "Get a person's status and permissions in a chat.": "Obtém o status e as permissões de uma pessoa em um chat.",+ "Get file details and, optionally, its content.": "Obtém os detalhes de um arquivo e, opcionalmente, seu conteúdo.",+ "Create an invite link for a group or channel.": "Cria um link de convite para um grupo ou canal.",+ "Answer a tap on an inline button with a short banner or alert.": "Responde ao toque em um botão inline com um banner curto ou um alerta.",+ "Chat ID": "ID do chat",+ "Topic ID": "ID do tópico",+ "Disable Link Preview": "Desativar pré-visualização de links",+ "Reply To Message ID": "Responder ao ID da mensagem",+ "Buttons": "Botões",+ "File": "Arquivo",+ "Document ID": "ID do documento",+ "Audio ID": "ID do áudio",+ "Title": "Título",+ "Correct Option": "Opção correta",+ "Explanation": "Explicação",+ "Open Period": "Tempo de abertura",+ "Message ID": "ID da mensagem",+ "Inline Message ID": "ID da mensagem inline",+ "From Chat ID": "ID do chat de origem",+ "User ID": "ID do usuário",+ "Link Name": "Nome do link",+ "Expiry Date": "Data de expiração",+ "Require Admin Approval": "Exigir aprovação de admin",+ "Callback Query ID": "ID da callback query",+ "Cache Time": "Tempo de cache",+ "Response is Binary": "Resposta é binária",+ "Return Error as Output": "Retornar erro como saída",+ "Timeout": "Tempo limite",+ "Your own chat ID: message @getmyid_bot and send /my_id. A group's ID: add your bot, send /start there, and read chat.id in the New Update trigger's test data before publishing. A public channel can use its @username.\n\nThe bot must be in the group or channel, or the person must have messaged it first, or Telegram answers \"chat not found\".": "Seu próprio ID de chat: envie uma mensagem para @getmyid_bot e mande /my_id. ID de um grupo: adicione seu bot, envie /start lá e leia chat.id nos dados de teste do gatilho \"New Update\" antes de publicar. Um canal público pode usar o @username.\n\nO bot precisa estar no grupo ou canal, ou a pessoa precisa ter enviado mensagem a ele antes; senão o Telegram responde \"chat not found\".",+ "Numeric chat ID, or @username for a public channel.": "ID numérico do chat, ou @username para um canal público.",+ "How Telegram styles the text.": "Como o Telegram formata o texto.",+ "Up to 4096 characters.": "Até 4096 caracteres.",+ "[Telegram's formatting guide](https://core.telegram.org/bots/api#formatting-options) lists every tag. MarkdownV2 needs a backslash before symbols like . ! - ( ), or Telegram rejects the message.": "O [guia de formatação do Telegram](https://core.telegram.org/bots/api#formatting-options) lista todas as tags. O MarkdownV2 exige uma barra invertida antes de símbolos como . ! - ( ), ou o Telegram rejeita a mensagem.",+ "Post inside a topic of a forum group. Empty posts to the main chat.": "Publica dentro de um tópico de um grupo fórum. Vazio publica no chat principal.",+ "Don't show a preview card for links in the message.": "Não mostrar cartão de pré-visualização para links na mensagem.",+ "Deliver without a sound. The message still arrives.": "Entregar sem som. A mensagem ainda chega.",+ "Stop recipients from forwarding or saving the message.": "Impede que os destinatários encaminhem ou salvem a mensagem.",+ "Send as a reply to this message in the same chat.": "Enviar como resposta a esta mensagem no mesmo chat.",+ "reply_markup JSON: an inline keyboard, reply keyboard or forced reply.": "reply_markup JSON: um teclado inline, um teclado de resposta ou uma resposta forçada.",+ "Up to 1024 characters. Not shown on stickers.": "Até 1024 caracteres. Não aparece em figurinhas.",+ "Upload a file or enter a file ID. If both are set, the upload is sent.": "Faça upload de um arquivo ou informe um ID de arquivo. Se ambos forem definidos, o upload é enviado.",+ "Any file type, up to 50 MB.": "Qualquer tipo de arquivo, até 50 MB.",+ "file_id of a document already on Telegram, to send it again.": "file_id de um documento que já está no Telegram, para enviá-lo de novo.",+ "Up to 1024 characters.": "Até 1024 caracteres.",+ "An MP3 or M4A file.": "Um arquivo MP3 ou M4A.",+ "file_id of audio already on Telegram, to send it again.": "file_id de um áudio que já está no Telegram, para enviá-lo de novo.",+ "Track name shown in the player.": "Nome da faixa exibido no player.",+ "Artist name shown in the player.": "Nome do artista exibido no player.",+ "Length in seconds.": "Duração em segundos.",+ "Between -90 and 90.": "Entre -90 e 90.",+ "Between -180 and 180.": "Entre -180 e 180.",+ "Uncertainty radius in meters, 0 to 1500.": "Raio de incerteza em metros, de 0 a 1500.",+ "Fill Live Period to share a live location. Heading and Proximity Alert Radius only work with it.": "Preencha \"Live Period\" para compartilhar uma localização em tempo real. \"Heading\" e \"Proximity Alert Radius\" só funcionam com ele.",+ "Seconds, 60 to 86400.": "Segundos, de 60 a 86400.",+ "Degrees, 1 to 360.": "Graus, de 1 a 360.",+ "Alert distance in meters, 1 to 100000.": "Distância do alerta em metros, de 1 a 100000.",+ "Photos and videos can mix. Audio and files go in albums of their own.": "Fotos e vídeos podem ser misturados. Áudios e arquivos ficam em álbuns próprios.",+ "How Telegram styles the captions.": "Como o Telegram formata as legendas.",+ "Up to 300 characters.": "Até 300 caracteres.",+ "2 to 10 answers, each up to 100 characters.": "De 2 a 10 respostas, cada uma com até 100 caracteres.",+ "Hide who voted for what.": "Ocultar quem votou em quê.",+ "Regular polls only.": "Apenas enquetes normais.",+ "Only used when Poll Type is Quiz.": "Usado apenas quando \"Poll Type\" é \"Quiz\".",+ "Position of the right answer, counting from 0.": "Posição da resposta correta, contando a partir de 0.",+ "Shown after a wrong answer, up to 200 characters.": "Mostrada após uma resposta errada, até 200 caracteres.",+ "How Telegram styles the explanation.": "Como o Telegram formata a explicação.",+ "Set an open period or a close date, not both.": "Defina um tempo de abertura ou uma data de encerramento, não ambos.",+ "Seconds the poll stays open, 5 to 600.": "Segundos que a enquete fica aberta, de 5 a 600.",+ "When the poll closes, 5 to 600 seconds from now.": "Quando a enquete fecha, de 5 a 600 segundos a partir de agora.",+ "Post the poll already closed, to show results.": "Publicar a enquete já encerrada, para mostrar os resultados.",+ "What the chat shows, e.g. typing or uploading a photo.": "O que o chat mostra, ex.: digitando ou enviando uma foto.",+ "Fill Chat ID and Message ID together, or Inline Message ID alone.": "Preencha \"ID do chat\" e \"ID da mensagem\" juntos, ou só \"ID da mensagem inline\".",+ "From the output of the step that sent it, or the trigger.": "Da saída da etapa que a enviou, ou do gatilho.",+ "For messages sent in inline mode. Replaces Chat ID and Message ID.": "Para mensagens enviadas no modo inline. Substitui \"ID do chat\" e \"ID da mensagem\".",+ "Up to 4096 characters. Replaces the whole message.": "Até 4096 caracteres. Substitui a mensagem inteira.",+ "Chat the message is in, by ID or @username.": "Chat onde está a mensagem, por ID ou @username.",+ "ID of the message in that chat.": "ID da mensagem nesse chat.",+ "Pin without notifying chat members.": "Fixar sem notificar os membros do chat.",+ "Empty unpins the most recent pinned message.": "Vazio desafixa a mensagem fixada mais recente.",+ "Numeric user ID, found in the trigger as message.from.id.": "ID numérico do usuário, encontrado no gatilho como message.from.id.",+ "The file_id of a photo, document or audio in a message.": "O file_id de uma foto, documento ou áudio em uma mensagem.",+ "Also return the content as base64. Telegram caps this at 20 MB.": "Também retorna o conteúdo em base64. O Telegram limita isso a 20 MB.",+ "Up to 32 characters, shown only to admins.": "Até 32 caracteres, visível só para admins.",+ "Empty means the link never expires.": "Vazio significa que o link nunca expira.",+ "Use a member limit or admin approval, not both.": "Use um limite de membros ou aprovação de admin, não ambos.",+ "How many people can join with this link, 1 to 99999.": "Quantas pessoas podem entrar com este link, de 1 a 99999.",+ "Admins approve each person who joins with the link.": "Admins aprovam cada pessoa que entra pelo link.",+ "callback_query.id from the New Update trigger.": "callback_query.id do gatilho \"New Update\".",+ "Up to 200 characters. Empty just stops the loading spinner.": "Até 200 caracteres. Vazio só para o indicador de carregamento.",+ "Show a pop-up the user must close, instead of a banner.": "Mostrar um pop-up que o usuário precisa fechar, em vez de um banner.",+ "Only a t.me link to your bot, or a game URL.": "Apenas um link t.me para o seu bot, ou uma URL de jogo.",+ "Seconds Telegram may reuse this answer. Default 0.": "Segundos em que o Telegram pode reutilizar esta resposta. Padrão 0.",+ "Sent with a Review & Respond button that opens the approval page.": "Enviado com um botão Review & Respond que abre a página de aprovação.",+ "Appended to the URL as ?key=value.": "Adicionado à URL como ?key=value.",+ "On a failed request, output the error instead of failing the step.": "Se a requisição falhar, retorna o erro em vez de falhar a etapa.",+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Segundos de espera por uma resposta. Vazio: até o limite do fluxo (10 min).",+ "Follow 3xx redirects instead of returning them as the response.": "Seguir redirecionamentos 3xx em vez de retorná-los como resposta.",+ "MarkdownV2": "MarkdownV2",+ "**One webhook per bot.** Publishing another flow with this bot token stops this one. Use one flow per bot and branch on the update type.\n\nAfter publishing, Retest shows sample data. Test before publishing to load a real update.": "**Um webhook por bot.** Publicar outro fluxo com este token de bot interrompe este. Use um fluxo por bot e ramifique pelo tipo de atualização.\n\nDepois de publicar, \"Retest\" mostra dados de exemplo. Teste antes de publicar para carregar uma atualização real.",+ "Empty receives every update except member changes and reactions.": "Vazio recebe todas as atualizações, exceto mudanças de membros e reações.",+ "Inline Button Tap": "Toque em botão inline",+ "Your own chat ID: message @getmyid_bot and send /my_id. A group's ID: add your bot, send /start there, test the New Update trigger before publishing and copy chat.id from that message, not the 123456789 sample. A public channel can use its @username.\n\nThe bot must be in the group or channel, or the person must have messaged it first, or Telegram answers \"chat not found\".": "Seu próprio ID de chat: envie uma mensagem para @getmyid_bot e mande /my_id. ID de um grupo: adicione seu bot, envie /start lá, teste o gatilho \"New Update\" antes de publicar e copie o chat.id dessa mensagem, não o 123456789 do exemplo. Um canal público pode usar o @username.\n\nO bot precisa estar no grupo ou canal, ou a pessoa precisa ter enviado mensagem a ele antes; senão o Telegram responde \"chat not found\".",+ "Empty receives every update except Chat Member and reactions.": "Vazio recebe todas as atualizações, exceto Chat Member e reações.",+ "Caption Format": "Formato da legenda",+ "Explanation Format": "Formato da explicação"}\ No newline at end of filediff --git a/packages/pieces/community/telegram-bot/src/i18n/ru.json b/packages/pieces/community/telegram-bot/src/i18n/ru.jsonindex 1d71af835be..6eb01ac33d0 100644--- a/packages/pieces/community/telegram-bot/src/i18n/ru.json+++ b/packages/pieces/community/telegram-bot/src/i18n/ru.json@@ -56,5 +56,124 @@"DELETE": "УДАЛИТЬ","HEAD": "HEAD","New message": "Новое сообщение",- "Triggers when Telegram receives a new message": "Триггеры, когда Telegram получает новое сообщение"+ "Triggers when Telegram receives a new message": "Триггеры, когда Telegram получает новое сообщение",+ "\n**Authentication**:\n\n1. Begin a conversation with the [Botfather](https://telegram.me/BotFather).\n2. Type in \"/newbot\"\n3. Choose a name for your bot\n4. Choose a username for your bot.\n5. Copy the token BotFather sends and paste it here.\n": "\n**Аутентификация**:\n\n1. Начните диалог с [Botfather](https://telegram.me/BotFather).\n2. Введите \"/newbot\"\n3. Выберите имя для бота\n4. Выберите имя пользователя для бота.\n5. Скопируйте токен, который пришлёт BotFather, и вставьте его сюда.\n",+ "Send a text message to a chat, group or channel.": "Отправить текстовое сообщение в чат, группу или канал.",+ "Send a photo, video, sticker or GIF to a chat.": "Отправить фото, видео, стикер или GIF в чат.",+ "Send any file to a chat as a document.": "Отправить любой файл в чат как документ.",+ "Send an MP3 or M4A file that plays in Telegram's music player.": "Отправить файл MP3 или M4A, который играет в музыкальном плеере Telegram.",+ "Send a map pin, or a live location that updates, to a chat.": "Отправить в чат точку на карте или обновляемую геопозицию.",+ "Send 2 to 10 photos, videos, files or audio tracks as one album.": "Отправить от 2 до 10 фото, видео, файлов или аудиозаписей одним альбомом.",+ "Send a poll or a quiz to a chat.": "Отправить в чат опрос или викторину.",+ "Show a status like \"typing…\" in a chat for up to 5 seconds.": "Показать в чате статус вроде «печатает…» на срок до 5 секунд.",+ "Replace the text of a message the bot sent.": "Заменить текст сообщения, отправленного ботом.",+ "Delete a message. The bot needs admin rights to delete other people's messages.": "Удалить сообщение. Чтобы удалять чужие сообщения, боту нужны права администратора.",+ "Pin a message. The bot must be an admin in the chat.": "Закрепить сообщение. Бот должен быть администратором чата.",+ "Unpin one message, or the most recent pinned message.": "Открепить одно сообщение или последнее закреплённое.",+ "Get a chat's title, type, description and settings.": "Получить название, тип, описание и настройки чата.",+ "Get a person's status and permissions in a chat.": "Получить статус и права участника в чате.",+ "Get file details and, optionally, its content.": "Получить сведения о файле и, при необходимости, его содержимое.",+ "Create an invite link for a group or channel.": "Создать ссылку-приглашение в группу или канал.",+ "Answer a tap on an inline button with a short banner or alert.": "Ответить на нажатие inline-кнопки коротким баннером или оповещением.",+ "Chat ID": "ID чата",+ "Topic ID": "ID темы",+ "Disable Link Preview": "Отключить предпросмотр ссылок",+ "Reply To Message ID": "ID сообщения для ответа",+ "Buttons": "Кнопки",+ "File": "Файл",+ "Document ID": "ID документа",+ "Audio ID": "ID аудио",+ "Title": "Название",+ "Correct Option": "Правильный вариант",+ "Explanation": "Пояснение",+ "Open Period": "Период активности",+ "Message ID": "ID сообщения",+ "Inline Message ID": "ID inline-сообщения",+ "From Chat ID": "ID исходного чата",+ "User ID": "ID пользователя",+ "Link Name": "Название ссылки",+ "Expiry Date": "Срок действия",+ "Require Admin Approval": "Требовать одобрения администратора",+ "Callback Query ID": "ID callback-запроса",+ "Cache Time": "Время кэширования",+ "Response is Binary": "Ответ в бинарном виде",+ "Return Error as Output": "Возвращать ошибку как результат",+ "Timeout": "Таймаут",+ "Your own chat ID: message @getmyid_bot and send /my_id. A group's ID: add your bot, send /start there, and read chat.id in the New Update trigger's test data before publishing. A public channel can use its @username.\n\nThe bot must be in the group or channel, or the person must have messaged it first, or Telegram answers \"chat not found\".": "Ваш собственный ID чата: напишите @getmyid_bot и отправьте /my_id. ID группы: добавьте бота, отправьте там /start и найдите chat.id в тестовых данных триггера New Update до публикации. Для публичного канала можно указать его @username.\n\nБот должен состоять в группе или канале, либо пользователь должен сначала написать ему, иначе Telegram ответит \"chat not found\".",+ "Numeric chat ID, or @username for a public channel.": "Числовой ID чата или @username публичного канала.",+ "How Telegram styles the text.": "Как Telegram оформляет текст.",+ "Up to 4096 characters.": "До 4096 символов.",+ "[Telegram's formatting guide](https://core.telegram.org/bots/api#formatting-options) lists every tag. MarkdownV2 needs a backslash before symbols like . ! - ( ), or Telegram rejects the message.": "[Руководство Telegram по форматированию](https://core.telegram.org/bots/api#formatting-options) перечисляет все теги. В MarkdownV2 перед символами вроде . ! - ( ) нужна обратная косая черта, иначе Telegram отклонит сообщение.",+ "Post inside a topic of a forum group. Empty posts to the main chat.": "Опубликовать в теме форум-группы. Если пусто, публикуется в основной чат.",+ "Don't show a preview card for links in the message.": "Не показывать карточку предпросмотра для ссылок в сообщении.",+ "Deliver without a sound. The message still arrives.": "Доставить без звука. Сообщение всё равно придёт.",+ "Stop recipients from forwarding or saving the message.": "Запретить получателям пересылать и сохранять сообщение.",+ "Send as a reply to this message in the same chat.": "Отправить как ответ на это сообщение в том же чате.",+ "reply_markup JSON: an inline keyboard, reply keyboard or forced reply.": "reply_markup JSON: inline-клавиатура, клавиатура ответа или принудительный ответ.",+ "Up to 1024 characters. Not shown on stickers.": "До 1024 символов. Не отображается у стикеров.",+ "Upload a file or enter a file ID. If both are set, the upload is sent.": "Загрузите файл или введите ID файла. Если указано и то и другое, отправляется загруженный файл.",+ "Any file type, up to 50 MB.": "Файл любого типа, до 50 МБ.",+ "file_id of a document already on Telegram, to send it again.": "file_id документа, который уже есть в Telegram, чтобы отправить его повторно.",+ "Up to 1024 characters.": "До 1024 символов.",+ "An MP3 or M4A file.": "Файл MP3 или M4A.",+ "file_id of audio already on Telegram, to send it again.": "file_id аудио, которое уже есть в Telegram, чтобы отправить его повторно.",+ "Track name shown in the player.": "Название трека в плеере.",+ "Artist name shown in the player.": "Имя исполнителя в плеере.",+ "Length in seconds.": "Длительность в секундах.",+ "Between -90 and 90.": "От -90 до 90.",+ "Between -180 and 180.": "От -180 до 180.",+ "Uncertainty radius in meters, 0 to 1500.": "Радиус погрешности в метрах, от 0 до 1500.",+ "Fill Live Period to share a live location. Heading and Proximity Alert Radius only work with it.": "Заполните Live Period, чтобы транслировать геопозицию. Heading и Proximity Alert Radius работают только вместе с ним.",+ "Seconds, 60 to 86400.": "Секунды, от 60 до 86400.",+ "Degrees, 1 to 360.": "Градусы, от 1 до 360.",+ "Alert distance in meters, 1 to 100000.": "Расстояние оповещения в метрах, от 1 до 100000.",+ "Photos and videos can mix. Audio and files go in albums of their own.": "Фото и видео можно смешивать. Аудио и файлы идут в отдельные альбомы.",+ "How Telegram styles the captions.": "Как Telegram оформляет подписи.",+ "Up to 300 characters.": "До 300 символов.",+ "2 to 10 answers, each up to 100 characters.": "От 2 до 10 ответов, каждый до 100 символов.",+ "Hide who voted for what.": "Скрыть, кто за что проголосовал.",+ "Regular polls only.": "Только для обычных опросов.",+ "Only used when Poll Type is Quiz.": "Используется, только если Poll Type — Quiz.",+ "Position of the right answer, counting from 0.": "Позиция правильного ответа, отсчёт с 0.",+ "Shown after a wrong answer, up to 200 characters.": "Показывается после неверного ответа, до 200 символов.",+ "How Telegram styles the explanation.": "Как Telegram оформляет пояснение.",+ "Set an open period or a close date, not both.": "Задайте период активности или дату закрытия, но не оба.",+ "Seconds the poll stays open, 5 to 600.": "Сколько секунд опрос открыт, от 5 до 600.",+ "When the poll closes, 5 to 600 seconds from now.": "Когда опрос закроется: через 5–600 секунд от текущего момента.",+ "Post the poll already closed, to show results.": "Опубликовать опрос уже закрытым, чтобы показать результаты.",+ "What the chat shows, e.g. typing or uploading a photo.": "Что отображается в чате, например «печатает» или «отправляет фото».",+ "Fill Chat ID and Message ID together, or Inline Message ID alone.": "Заполните ID чата и ID сообщения вместе или только ID inline-сообщения.",+ "From the output of the step that sent it, or the trigger.": "Из результата шага, который его отправил, или триггера.",+ "For messages sent in inline mode. Replaces Chat ID and Message ID.": "Для сообщений, отправленных в inline-режиме. Заменяет ID чата и ID сообщения.",+ "Up to 4096 characters. Replaces the whole message.": "До 4096 символов. Заменяет всё сообщение.",+ "Chat the message is in, by ID or @username.": "Чат с сообщением, по ID или @username.",+ "ID of the message in that chat.": "ID сообщения в этом чате.",+ "Pin without notifying chat members.": "Закрепить без уведомления участников чата.",+ "Empty unpins the most recent pinned message.": "Если пусто, открепляется последнее закреплённое сообщение.",+ "Numeric user ID, found in the trigger as message.from.id.": "Числовой ID пользователя, в триггере это message.from.id.",+ "The file_id of a photo, document or audio in a message.": "file_id фото, документа или аудио в сообщении.",+ "Also return the content as base64. Telegram caps this at 20 MB.": "Также вернуть содержимое в base64. Telegram ограничивает это 20 МБ.",+ "Up to 32 characters, shown only to admins.": "До 32 символов, видно только администраторам.",+ "Empty means the link never expires.": "Если пусто, ссылка бессрочная.",+ "Use a member limit or admin approval, not both.": "Используйте лимит участников или одобрение администратора, но не оба.",+ "How many people can join with this link, 1 to 99999.": "Сколько человек может вступить по этой ссылке, от 1 до 99999.",+ "Admins approve each person who joins with the link.": "Администраторы одобряют каждого, кто вступает по ссылке.",+ "callback_query.id from the New Update trigger.": "callback_query.id из триггера New Update.",+ "Up to 200 characters. Empty just stops the loading spinner.": "До 200 символов. Если пусто, просто останавливает индикатор загрузки.",+ "Show a pop-up the user must close, instead of a banner.": "Показать всплывающее окно, которое нужно закрыть, вместо баннера.",+ "Only a t.me link to your bot, or a game URL.": "Только ссылка t.me на вашего бота или URL игры.",+ "Seconds Telegram may reuse this answer. Default 0.": "Сколько секунд Telegram может повторно использовать этот ответ. По умолчанию 0.",+ "Sent with a Review & Respond button that opens the approval page.": "Отправляется с кнопкой Review & Respond, которая открывает страницу одобрения.",+ "Appended to the URL as ?key=value.": "Добавляется к URL как ?key=value.",+ "On a failed request, output the error instead of failing the step.": "При неудачном запросе вывести ошибку, а не завершить шаг с ошибкой.",+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Сколько секунд ждать ответа. Пусто: до лимита потока (10 мин).",+ "Follow 3xx redirects instead of returning them as the response.": "Следовать 3xx-перенаправлениям, а не возвращать их как ответ.",+ "MarkdownV2": "MarkdownV2",+ "**One webhook per bot.** Publishing another flow with this bot token stops this one. Use one flow per bot and branch on the update type.\n\nAfter publishing, Retest shows sample data. Test before publishing to load a real update.": "**Один вебхук на бота.** Публикация другого потока с этим токеном бота остановит этот. Используйте один поток на бота и ветвление по типу обновления.\n\nПосле публикации «Повторить тест» покажет пример данных. Протестируйте до публикации, чтобы загрузить реальное обновление.",+ "Empty receives every update except member changes and reactions.": "Если пусто, приходят все обновления, кроме изменений участников и реакций.",+ "Inline Button Tap": "Нажатие inline-кнопки",+ "Your own chat ID: message @getmyid_bot and send /my_id. A group's ID: add your bot, send /start there, test the New Update trigger before publishing and copy chat.id from that message, not the 123456789 sample. A public channel can use its @username.\n\nThe bot must be in the group or channel, or the person must have messaged it first, or Telegram answers \"chat not found\".": "Ваш собственный ID чата: напишите @getmyid_bot и отправьте /my_id. ID группы: добавьте бота, отправьте там /start, протестируйте триггер New Update до публикации и скопируйте chat.id из этого сообщения, а не 123456789 из примера. Для публичного канала можно указать его @username.\n\nБот должен состоять в группе или канале, либо пользователь должен сначала написать ему, иначе Telegram ответит \"chat not found\".",+ "Empty receives every update except Chat Member and reactions.": "Если пусто, приходят все обновления, кроме Chat Member и реакций.",+ "Caption Format": "Формат подписи",+ "Explanation Format": "Формат пояснения"}\ No newline at end of filediff --git a/packages/pieces/community/telegram-bot/src/i18n/translation.json b/packages/pieces/community/telegram-bot/src/i18n/translation.jsonindex 104bd60946a..0d8fb13cb45 100644--- a/packages/pieces/community/telegram-bot/src/i18n/translation.json+++ b/packages/pieces/community/telegram-bot/src/i18n/translation.json@@ -1,6 +1,6 @@{"Build chatbots for Telegram": "Build chatbots for Telegram",- "\n**Authentication**:\n\n1. Begin a conversation with the [Botfather](https://telegram.me/BotFather).\n2. Type in \"/newbot\"\n3. Choose a name for your bot\n4. Choose a username for your bot.\n5. Copy the token value from the Botfather and use it activepieces connection.\n6. Congratulations! You can now use your new Telegram connection in your flows.\n": "\n**Authentication**:\n\n1. Begin a conversation with the [Botfather](https://telegram.me/BotFather).\n2. Type in \"/newbot\"\n3. Choose a name for your bot\n4. Choose a username for your bot.\n5. Copy the token value from the Botfather and use it activepieces connection.\n6. Congratulations! You can now use your new Telegram connection in your flows.\n",+ "\n**Authentication**:\n\n1. Begin a conversation with the [Botfather](https://telegram.me/BotFather).\n2. Type in \"/newbot\"\n3. Choose a name for your bot\n4. Choose a username for your bot.\n5. Copy the token BotFather sends and paste it here.\n": "\n**Authentication**:\n\n1. Begin a conversation with the [Botfather](https://telegram.me/BotFather).\n2. Type in \"/newbot\"\n3. Choose a name for your bot\n4. Choose a username for your bot.\n5. Copy the token BotFather sends and paste it here.\n","Send Text Message": "Send Text Message","Send Media": "Send Media","Send Document": "Send Document",@@ -27,30 +27,29 @@"Send Message": "Send Message","Send Photo, Video, Sticker or GIF": "Send Photo, Video, Sticker or GIF","Custom API Call": "Custom API Call",- "Send a text message through a Telegram bot": "Send a text message through a Telegram bot",- "Send a media message (photo, video, sticker, GIF) through a Telegram bot": "Send a media message (photo, video, sticker, GIF) through a Telegram bot",- "Send a generic file (document) to a Telegram chat": "Send a generic file (document) to a Telegram chat",- "Send an audio file to a Telegram chat (.MP3/.M4A — shown in the music player)": "Send an audio file to a Telegram chat (.MP3/.M4A — shown in the music player)",- "Send a geographic location (latitude/longitude) to a Telegram chat": "Send a geographic location (latitude/longitude) to a Telegram chat",- "Send a group of 2–10 photos, videos, documents or audios as an album to a chat": "Send a group of 2–10 photos, videos, documents or audios as an album to a chat",- "Send a native Telegram poll (regular or quiz) to a chat": "Send a native Telegram poll (regular or quiz) to a chat",- "Show a status (typing, uploading photo, recording voice, etc.) on behalf of the bot in a chat. The status is shown for up to 5 seconds.": "Show a status (typing, uploading photo, recording voice, etc.) on behalf of the bot in a chat. The status is shown for up to 5 seconds.",- "Edit the text of a previously sent message or an inline message": "Edit the text of a previously sent message or an inline message",- "Delete a message sent in a chat. Bots can delete their own messages and messages in groups where they are admins.": "Delete a message sent in a chat. Bots can delete their own messages and messages in groups where they are admins.",- "Forward a message from one chat to another": "Forward a message from one chat to another",- "Pin a message in a chat. The bot must be an administrator in the chat for this to work.": "Pin a message in a chat. The bot must be an administrator in the chat for this to work.",- "Unpin a message in a chat. Leave Message Id empty to unpin the most recent pinned message.": "Unpin a message in a chat. Leave Message Id empty to unpin the most recent pinned message.",- "Get up-to-date information about a chat (name, description, photo, member count, etc.)": "Get up-to-date information about a chat (name, description, photo, member count, etc.)",- "Get member info (or null) for the provided chat id and user id": "Get member info (or null) for the provided chat id and user id",- "Get file information and optionally download a file from Telegram": "Get file information and optionally download a file from Telegram",- "Create an invite link for a chat": "Create an invite link for a chat",- "Respond to a callback query sent by an inline keyboard button. Shows a notification or alert to the user.": "Respond to a callback query sent by an inline keyboard button. Shows a notification or alert to the user.",+ "Send a text message to a chat, group or channel.": "Send a text message to a chat, group or channel.",+ "Send a photo, video, sticker or GIF to a chat.": "Send a photo, video, sticker or GIF to a chat.",+ "Send any file to a chat as a document.": "Send any file to a chat as a document.",+ "Send an MP3 or M4A file that plays in Telegram's music player.": "Send an MP3 or M4A file that plays in Telegram's music player.",+ "Send a map pin, or a live location that updates, to a chat.": "Send a map pin, or a live location that updates, to a chat.",+ "Send 2 to 10 photos, videos, files or audio tracks as one album.": "Send 2 to 10 photos, videos, files or audio tracks as one album.",+ "Send a poll or a quiz to a chat.": "Send a poll or a quiz to a chat.",+ "Show a status like \"typing…\" in a chat for up to 5 seconds.": "Show a status like \"typing…\" in a chat for up to 5 seconds.",+ "Replace the text of a message the bot sent.": "Replace the text of a message the bot sent.",+ "Delete a message. The bot needs admin rights to delete other people's messages.": "Delete a message. The bot needs admin rights to delete other people's messages.",+ "Forward a message from one chat to another.": "Forward a message from one chat to another.",+ "Pin a message. The bot must be an admin in the chat.": "Pin a message. The bot must be an admin in the chat.",+ "Unpin one message, or the most recent pinned message.": "Unpin one message, or the most recent pinned message.",+ "Get a chat's title, type, description and settings.": "Get a chat's title, type, description and settings.",+ "Get a person's status and permissions in a chat.": "Get a person's status and permissions in a chat.",+ "Get file details and, optionally, its content.": "Get file details and, optionally, its content.",+ "Create an invite link for a group or channel.": "Create an invite link for a group or channel.",+ "Answer a tap on an inline button with a short banner or alert.": "Answer a tap on an inline button with a short banner or alert.","Send an approval message to a chat and wait until the message is approved or disapproved": "Send an approval message to a chat and wait until the message is approved or disapproved","Respond to a callback query raised by an inline keyboard button tap.": "Respond to a callback query raised by an inline keyboard button tap.","Create a new invite link for a Telegram chat.": "Create a new invite link for a Telegram chat.","Delete a message from a Telegram chat.": "Delete a message from a Telegram chat.","Edit the text of a message the bot already sent.": "Edit the text of a message the bot already sent.",- "Forward a message from one chat to another.": "Forward a message from one chat to another.","Get the authenticated bot's own identity and capabilities.": "Get the authenticated bot's own identity and capabilities.","List the administrators of a Telegram chat.": "List the administrators of a Telegram chat.","Get the number of members in a Telegram chat.": "Get the number of members in a Telegram chat.",@@ -59,6 +58,7 @@"Resolve a Telegram file_id to its metadata and download URL.": "Resolve a Telegram file_id to its metadata and download URL.","Pin a message in a Telegram chat.": "Pin a message in a Telegram chat.","Send an audio file to a Telegram chat (.MP3/.M4A — shown in the music player).": "Send an audio file to a Telegram chat (.MP3/.M4A — shown in the music player).",+ "Show a status (typing, uploading photo, recording voice, etc.) on behalf of the bot in a chat. The status is shown for up to 5 seconds.": "Show a status (typing, uploading photo, recording voice, etc.) on behalf of the bot in a chat. The status is shown for up to 5 seconds.","Send a generic file (document) to a Telegram chat.": "Send a generic file (document) to a Telegram chat.","Send a geographic location (latitude/longitude) to a Telegram chat.": "Send a geographic location (latitude/longitude) to a Telegram chat.","Send a group of 2–10 photos, videos, documents or audios as an album to a chat.": "Send a group of 2–10 photos, videos, documents or audios as an album to a chat.",@@ -68,25 +68,25 @@"Unpin a message in a Telegram chat.": "Unpin a message in a Telegram chat.","Make a custom API call to a specific endpoint": "Make a custom API call to a specific endpoint","Markdown": "Markdown",- "Chat Id": "Chat Id",- "Message Thread Id": "Message Thread Id",+ "Chat ID": "Chat ID","Format": "Format",- "Disable Web Page Preview": "Disable Web Page Preview",+ "Message": "Message",+ "Topic ID": "Topic ID",+ "Disable Link Preview": "Disable Link Preview","Disable Notification": "Disable Notification","Protect Content": "Protect Content",- "Reply To Message Id": "Reply To Message Id",- "Message": "Message",- "Reply Markup": "Reply Markup",+ "Reply To Message ID": "Reply To Message ID",+ "Buttons": "Buttons","Media Type": "Media Type",- "Media Properties": "Media Properties",+ "File": "File","Caption": "Caption","Document": "Document",- "Document Id": "Document Id",+ "Document ID": "Document ID","Audio": "Audio",- "Audio Id": "Audio Id",- "Duration": "Duration",+ "Audio ID": "Audio ID",+ "Title": "Title","Performer": "Performer",- "Track Title": "Track Title",+ "Duration": "Duration","Latitude": "Latitude","Longitude": "Longitude","Horizontal Accuracy": "Horizontal Accuracy",@@ -94,66 +94,172 @@"Heading": "Heading","Proximity Alert Radius": "Proximity Alert Radius","Media": "Media",+ "Caption Format": "Caption Format","Question": "Question","Options": "Options",- "Anonymous": "Anonymous","Poll Type": "Poll Type",+ "Anonymous": "Anonymous","Allow Multiple Answers": "Allow Multiple Answers",- "Correct Option Id (Quiz)": "Correct Option Id (Quiz)",- "Explanation (Quiz)": "Explanation (Quiz)",- "Open Period (seconds)": "Open Period (seconds)",+ "Correct Option": "Correct Option",+ "Explanation": "Explanation",+ "Explanation Format": "Explanation Format",+ "Open Period": "Open Period","Close Date": "Close Date","Closed": "Closed","Action": "Action",- "Message Id": "Message Id",- "Inline Message Id": "Inline Message Id",+ "Message ID": "Message ID",+ "Inline Message ID": "Inline Message ID","New Text": "New Text",- "Target Chat Id": "Target Chat Id",- "From Chat Id": "From Chat Id",- "User Id": "User Id",+ "From Chat ID": "From Chat ID",+ "User ID": "User ID","File ID": "File ID","Download File": "Download File",- "Name": "Name",- "Expire Date": "Expire Date",+ "Link Name": "Link Name",+ "Expiry Date": "Expiry Date","Member Limit": "Member Limit",- "Creates Join Request": "Creates Join Request",- "Callback Query Id": "Callback Query Id",+ "Require Admin Approval": "Require Admin Approval",+ "Callback Query ID": "Callback Query ID","Text": "Text","Show Alert": "Show Alert","URL": "URL",+ "Cache Time": "Cache Time",+ "Callback Query Id": "Callback Query Id","Cache Time (seconds)": "Cache Time (seconds)",- "Caption Format": "Caption Format",- "Explanation Format": "Explanation Format",+ "Chat Id": "Chat Id",+ "Name": "Name",+ "Expire Date": "Expire Date",+ "Creates Join Request": "Creates Join Request",+ "Message Id": "Message Id",+ "Inline Message Id": "Inline Message Id",+ "Disable Web Page Preview": "Disable Web Page Preview",+ "Reply Markup": "Reply Markup",+ "Target Chat Id": "Target Chat Id",+ "From Chat Id": "From Chat Id",+ "Message Thread Id": "Message Thread Id",+ "User Id": "User Id",+ "Audio Id": "Audio Id",+ "Track Title": "Track Title",+ "Reply To Message Id": "Reply To Message Id",+ "Document Id": "Document Id",+ "Media Properties": "Media Properties",+ "Correct Option Id (Quiz)": "Correct Option Id (Quiz)",+ "Explanation (Quiz)": "Explanation (Quiz)",+ "Open Period (seconds)": "Open Period (seconds)","Method": "Method","Headers": "Headers","Query Parameters": "Query Parameters","Body Type": "Body Type","Body": "Body",- "Response is Binary ?": "Response is Binary ?",- "No Error on Failure": "No Error on Failure",- "Timeout (in seconds)": "Timeout (in seconds)",+ "Response is Binary": "Response is Binary",+ "Return Error as Output": "Return Error as Output",+ "Timeout": "Timeout","Follow redirects": "Follow redirects",- "\n**How to obtain Chat ID:**\n1. Search for the bot \"@getmyid_bot\" in Telegram.\n2. Start a conversation with the bot.\n3. Send the command \"/my_id\" to the bot.\n4. The bot will reply with your chat ID.\n\n**Note: Remember to initiate the chat with the bot, or you'll get an error for \"chat not found.\"**\n": "\n**How to obtain Chat ID:**\n1. Search for the bot \"@getmyid_bot\" in Telegram.\n2. Start a conversation with the bot.\n3. Send the command \"/my_id\" to the bot.\n4. The bot will reply with your chat ID.\n\n**Note: Remember to initiate the chat with the bot, or you'll get an error for \"chat not found.\"**\n",+ "Your own chat ID: message @getmyid_bot and send /my_id. A group's ID: add your bot, send /start there, test the New Update trigger before publishing and copy chat.id from that message, not the 123456789 sample. A public channel can use its @username.\n\nThe bot must be in the group or channel, or the person must have messaged it first, or Telegram answers \"chat not found\".": "Your own chat ID: message @getmyid_bot and send /my_id. A group's ID: add your bot, send /start there, test the New Update trigger before publishing and copy chat.id from that message, not the 123456789 sample. A public channel can use its @username.\n\nThe bot must be in the group or channel, or the person must have messaged it first, or Telegram answers \"chat not found\".",+ "Numeric chat ID, or @username for a public channel.": "Numeric chat ID, or @username for a public channel.",+ "How Telegram styles the text.": "How Telegram styles the text.",+ "Up to 4096 characters.": "Up to 4096 characters.",+ "[Telegram's formatting guide](https://core.telegram.org/bots/api#formatting-options) lists every tag. MarkdownV2 needs a backslash before symbols like . ! - ( ), or Telegram rejects the message.": "[Telegram's formatting guide](https://core.telegram.org/bots/api#formatting-options) lists every tag. MarkdownV2 needs a backslash before symbols like . ! - ( ), or Telegram rejects the message.",+ "Post inside a topic of a forum group. Empty posts to the main chat.": "Post inside a topic of a forum group. Empty posts to the main chat.",+ "Don't show a preview card for links in the message.": "Don't show a preview card for links in the message.",+ "Deliver without a sound. The message still arrives.": "Deliver without a sound. The message still arrives.",+ "Stop recipients from forwarding or saving the message.": "Stop recipients from forwarding or saving the message.",+ "Send as a reply to this message in the same chat.": "Send as a reply to this message in the same chat.",+ "reply_markup JSON: an inline keyboard, reply keyboard or forced reply.": "reply_markup JSON: an inline keyboard, reply keyboard or forced reply.",+ "Up to 1024 characters. Not shown on stickers.": "Up to 1024 characters. Not shown on stickers.",+ "Upload a file or enter a file ID. If both are set, the upload is sent.": "Upload a file or enter a file ID. If both are set, the upload is sent.",+ "Any file type, up to 50 MB.": "Any file type, up to 50 MB.",+ "file_id of a document already on Telegram, to send it again.": "file_id of a document already on Telegram, to send it again.",+ "Up to 1024 characters.": "Up to 1024 characters.",+ "An MP3 or M4A file.": "An MP3 or M4A file.",+ "file_id of audio already on Telegram, to send it again.": "file_id of audio already on Telegram, to send it again.",+ "Track name shown in the player.": "Track name shown in the player.",+ "Artist name shown in the player.": "Artist name shown in the player.",+ "Length in seconds.": "Length in seconds.",+ "Between -90 and 90.": "Between -90 and 90.",+ "Between -180 and 180.": "Between -180 and 180.",+ "Uncertainty radius in meters, 0 to 1500.": "Uncertainty radius in meters, 0 to 1500.",+ "Fill Live Period to share a live location. Heading and Proximity Alert Radius only work with it.": "Fill Live Period to share a live location. Heading and Proximity Alert Radius only work with it.",+ "Seconds, 60 to 86400.": "Seconds, 60 to 86400.",+ "Degrees, 1 to 360.": "Degrees, 1 to 360.",+ "Alert distance in meters, 1 to 100000.": "Alert distance in meters, 1 to 100000.",+ "Photos and videos can mix. Audio and files go in albums of their own.": "Photos and videos can mix. Audio and files go in albums of their own.",+ "How Telegram styles the captions.": "How Telegram styles the captions.",+ "Up to 300 characters.": "Up to 300 characters.",+ "2 to 10 answers, each up to 100 characters.": "2 to 10 answers, each up to 100 characters.",+ "Hide who voted for what.": "Hide who voted for what.",+ "Regular polls only.": "Regular polls only.",+ "Only used when Poll Type is Quiz.": "Only used when Poll Type is Quiz.",+ "Position of the right answer, counting from 0.": "Position of the right answer, counting from 0.",+ "Shown after a wrong answer, up to 200 characters.": "Shown after a wrong answer, up to 200 characters.",+ "How Telegram styles the explanation.": "How Telegram styles the explanation.",+ "Set an open period or a close date, not both.": "Set an open period or a close date, not both.",+ "Seconds the poll stays open, 5 to 600.": "Seconds the poll stays open, 5 to 600.",+ "When the poll closes, 5 to 600 seconds from now.": "When the poll closes, 5 to 600 seconds from now.",+ "Post the poll already closed, to show results.": "Post the poll already closed, to show results.",+ "What the chat shows, e.g. typing or uploading a photo.": "What the chat shows, e.g. typing or uploading a photo.",+ "Fill Chat ID and Message ID together, or Inline Message ID alone.": "Fill Chat ID and Message ID together, or Inline Message ID alone.",+ "From the output of the step that sent it, or the trigger.": "From the output of the step that sent it, or the trigger.",+ "For messages sent in inline mode. Replaces Chat ID and Message ID.": "For messages sent in inline mode. Replaces Chat ID and Message ID.",+ "Up to 4096 characters. Replaces the whole message.": "Up to 4096 characters. Replaces the whole message.",+ "Chat the message is in, by ID or @username.": "Chat the message is in, by ID or @username.",+ "ID of the message in that chat.": "ID of the message in that chat.",+ "Pin without notifying chat members.": "Pin without notifying chat members.",+ "Empty unpins the most recent pinned message.": "Empty unpins the most recent pinned message.",+ "Numeric user ID, found in the trigger as message.from.id.": "Numeric user ID, found in the trigger as message.from.id.",+ "The file_id of a photo, document or audio in a message.": "The file_id of a photo, document or audio in a message.",+ "Also return the content as base64. Telegram caps this at 20 MB.": "Also return the content as base64. Telegram caps this at 20 MB.",+ "Up to 32 characters, shown only to admins.": "Up to 32 characters, shown only to admins.",+ "Empty means the link never expires.": "Empty means the link never expires.",+ "Use a member limit or admin approval, not both.": "Use a member limit or admin approval, not both.",+ "How many people can join with this link, 1 to 99999.": "How many people can join with this link, 1 to 99999.",+ "Admins approve each person who joins with the link.": "Admins approve each person who joins with the link.",+ "callback_query.id from the New Update trigger.": "callback_query.id from the New Update trigger.",+ "Up to 200 characters. Empty just stops the loading spinner.": "Up to 200 characters. Empty just stops the loading spinner.",+ "Show a pop-up the user must close, instead of a banner.": "Show a pop-up the user must close, instead of a banner.",+ "Only a t.me link to your bot, or a game URL.": "Only a t.me link to your bot, or a game URL.",+ "Seconds Telegram may reuse this answer. Default 0.": "Seconds Telegram may reuse this answer. Default 0.",+ "Sent with a Review & Respond button that opens the approval page.": "Sent with a Review & Respond button that opens the approval page.",+ "Unique identifier of the callback query. Available on callback_query.id in the New Callback Query trigger payload.": "Unique identifier of the callback query. Available on callback_query.id in the New Callback Query trigger payload.",+ "Text shown to the user. If not specified, nothing is shown (the spinner is just stopped).": "Text shown to the user. If not specified, nothing is shown (the spinner is just stopped).",+ "If True, an alert dialog is shown instead of a notification at the top of the screen.": "If True, an alert dialog is shown instead of a notification at the top of the screen.",+ "URL that will be opened by the user.": "URL that will be opened by the user.",+ "The maximum amount of time in seconds the result of the callback query may be cached client-side.": "The maximum amount of time in seconds the result of the callback query may be cached client-side.","Unique identifier for the target chat or username of the target channel (e.g. @channelusername).": "Unique identifier for the target chat or username of the target channel (e.g. @channelusername).",- "Unique identifier for the target message thread of the forum; supergroup forums only.": "Unique identifier for the target message thread of the forum; supergroup forums only.",- "How the message text should be parsed by Telegram.": "How the message text should be parsed by Telegram.",- "\n[Formatting options](https://core.telegram.org/bots/api#formatting-options)\n": "\n[Formatting options](https://core.telegram.org/bots/api#formatting-options)\n",+ "Name of the invite link (max 32 chars).": "Name of the invite link (max 32 chars).",+ "Point in time when the link will expire.": "Point in time when the link will expire.",+ "Maximum number of users that can be members of the chat simultaneously after joining via this invite link; 1-99999.": "Maximum number of users that can be members of the chat simultaneously after joining via this invite link; 1-99999.",+ "If True, users joining the chat via the link need to be approved by chat administrators.": "If True, users joining the chat via the link need to be approved by chat administrators.",+ "Identifier of the message to delete.": "Identifier of the message to delete.",+ "Numeric id or @channelusername of the chat holding the message. Required together with Message Id; leave empty when editing an inline message (use Inline Message Id instead).": "Numeric id or @channelusername of the chat holding the message. Required together with Message Id; leave empty when editing an inline message (use Inline Message Id instead).",+ "Identifier of the message to edit (used together with Chat Id).": "Identifier of the message to edit (used together with Chat Id).",+ "Identifier of the inline message (mutually exclusive with Chat Id + Message Id).": "Identifier of the inline message (mutually exclusive with Chat Id + Message Id).",+ "New text of the message (1–4096 chars).": "New text of the message (1–4096 chars).",+ "How the message text should be parsed by Telegram. Defaults to plain text; only set MarkdownV2 or HTML when the text is correctly escaped/tagged.": "How the message text should be parsed by Telegram. Defaults to plain text; only set MarkdownV2 or HTML when the text is correctly escaped/tagged.","Disable link previews for links in this message.": "Disable link previews for links in this message.",+ "Advanced/optional. A raw JSON-serialized inline keyboard, e.g. {\"inline_keyboard\":[[{\"text\":\"Open\",\"url\":\"https://example.com\"}]]}. Malformed markup is rejected by Telegram.": "Advanced/optional. A raw JSON-serialized inline keyboard, e.g. {\"inline_keyboard\":[[{\"text\":\"Open\",\"url\":\"https://example.com\"}]]}. Malformed markup is rejected by Telegram.",+ "Chat the message will be forwarded to (a numeric id or @channelusername the bot can reach).": "Chat the message will be forwarded to (a numeric id or @channelusername the bot can reach).",+ "Chat the original message came from.": "Chat the original message came from.",+ "Identifier of the message to forward.": "Identifier of the message to forward.",+ "Unique identifier for the target message thread of the forum; supergroup forums only.": "Unique identifier for the target message thread of the forum; supergroup forums only.","Send the message silently. Users will receive a notification with no sound.": "Send the message silently. Users will receive a notification with no sound.","Protects the contents of the sent message from forwarding and saving.": "Protects the contents of the sent message from forwarding and saving.",- "If the message is a reply, ID of the original message.": "If the message is a reply, ID of the original message.",- "The message to be sent": "The message to be sent",- "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.": "Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.",- "The caption to send with the media": "The caption to send with the media",- "The document file to send. Telegram supports any file up to 50 MB.": "The document file to send. Telegram supports any file up to 50 MB.",- "Reuse a document previously uploaded to Telegram by passing its file_id. Either provide a document or a document id.": "Reuse a document previously uploaded to Telegram by passing its file_id. Either provide a document or a document id.",- "Optional caption to display below the document (0–1024 chars).": "Optional caption to display below the document (0–1024 chars).",- "The audio file to send (.MP3 or .M4A).": "The audio file to send (.MP3 or .M4A).",- "Reuse an audio file previously uploaded to Telegram by passing its file_id.": "Reuse an audio file previously uploaded to Telegram by passing its file_id.",+ "Unique identifier for the user (e.g. from the New Message trigger payload).": "Unique identifier for the user (e.g. from the New Message trigger payload).",+ "File identifier to get information about (from a received message).": "File identifier to get information about (from a received message).",+ "If enabled, the file is downloaded and returned as base64.": "If enabled, the file is downloaded and returned as base64.",+ "Identifier of the message to pin.": "Identifier of the message to pin.",+ "Pass True if it is not necessary to send a notification to all chat members.": "Pass True if it is not necessary to send a notification to all chat members.",+ "The audio file to send (.MP3 or .M4A). Provide this or an audio_id.": "The audio file to send (.MP3 or .M4A). Provide this or an audio_id.",+ "Reuse an audio file previously uploaded to Telegram by passing its file_id. Provide this or an audio file.": "Reuse an audio file previously uploaded to Telegram by passing its file_id. Provide this or an audio file.","Optional caption (0–1024 chars).": "Optional caption (0–1024 chars).",+ "How the caption should be parsed by Telegram. Defaults to plain text; only set MarkdownV2 or HTML when the caption is correctly escaped/tagged.": "How the caption should be parsed by Telegram. Defaults to plain text; only set MarkdownV2 or HTML when the caption is correctly escaped/tagged.","Duration of the audio in seconds.": "Duration of the audio in seconds.","Performer / artist name.": "Performer / artist name.","Track title.": "Track title.",+ "If the message is a reply, ID of the original message.": "If the message is a reply, ID of the original message.",+ "Type of action to broadcast.": "Type of action to broadcast.",+ "The document file to send. Telegram supports any file up to 50 MB. Provide this or a document_id.": "The document file to send. Telegram supports any file up to 50 MB. Provide this or a document_id.",+ "Reuse a document previously uploaded to Telegram by passing its file_id. Provide this or a document file.": "Reuse a document previously uploaded to Telegram by passing its file_id. Provide this or a document file.",+ "Optional caption to display below the document (0–1024 chars).": "Optional caption to display below the document (0–1024 chars).","Latitude of the location.": "Latitude of the location.","Longitude of the location.": "Longitude of the location.","Radius of uncertainty for the location, in meters (0–1500).": "Radius of uncertainty for the location, in meters (0–1500).",@@ -161,6 +267,10 @@"For live locations, direction the user is moving in degrees (1–360).": "For live locations, direction the user is moving in degrees (1–360).","For live locations, the max distance (1–100000 m) for proximity alerts about approaching another chat member.": "For live locations, the max distance (1–100000 m) for proximity alerts about approaching another chat member.","Media items to send. Each must be a URL or a Telegram file_id. Mixing photo/video is allowed; audio and document groups cannot be mixed with other types.": "Media items to send. Each must be a URL or a Telegram file_id. Mixing photo/video is allowed; audio and document groups cannot be mixed with other types.",+ "How item captions should be parsed by Telegram. Defaults to plain text; only set MarkdownV2 or HTML when captions are correctly escaped/tagged.": "How item captions should be parsed by Telegram. Defaults to plain text; only set MarkdownV2 or HTML when captions are correctly escaped/tagged.",+ "The text message to send.": "The text message to send.",+ "Advanced/optional. A raw JSON-serialized inline keyboard or reply keyboard, e.g. {\"inline_keyboard\":[[{\"text\":\"Open\",\"url\":\"https://example.com\"}]]}. Malformed markup is rejected by Telegram.": "Advanced/optional. A raw JSON-serialized inline keyboard or reply keyboard, e.g. {\"inline_keyboard\":[[{\"text\":\"Open\",\"url\":\"https://example.com\"}]]}. Malformed markup is rejected by Telegram.",+ "The caption to send with the media": "The caption to send with the media","Poll question, 1–300 characters.": "Poll question, 1–300 characters.","List of answer options (2–10 options, each 1–100 characters).": "List of answer options (2–10 options, each 1–100 characters).","True, if the poll needs to be anonymous. Default true.": "True, if the poll needs to be anonymous. Default true.",@@ -168,56 +278,18 @@"True if the poll allows multiple answers (regular polls only).": "True if the poll allows multiple answers (regular polls only).","0-based index of the correct answer option (required for quizzes).": "0-based index of the correct answer option (required for quizzes).","Explanation shown when a user picks an incorrect answer (0–200 chars).": "Explanation shown when a user picks an incorrect answer (0–200 chars).",+ "How the quiz explanation should be parsed by Telegram. Defaults to plain text; only set MarkdownV2 or HTML when the explanation is correctly escaped/tagged.": "How the quiz explanation should be parsed by Telegram. Defaults to plain text; only set MarkdownV2 or HTML when the explanation is correctly escaped/tagged.","Amount of time in seconds the poll will be active (5–600).": "Amount of time in seconds the poll will be active (5–600).","Point in time when the poll will be automatically closed.": "Point in time when the poll will be automatically closed.","Pass True if the poll should be immediately closed. Useful for previews.": "Pass True if the poll should be immediately closed. Useful for previews.",- "Type of action to broadcast.": "Type of action to broadcast.",- "Required when editing a message sent by the bot. Leave empty to edit an inline message (use Inline Message Id instead).": "Required when editing a message sent by the bot. Leave empty to edit an inline message (use Inline Message Id instead).",- "Identifier of the message to edit (used together with Chat Id).": "Identifier of the message to edit (used together with Chat Id).",- "Identifier of the inline message (mutually exclusive with Chat Id + Message Id).": "Identifier of the inline message (mutually exclusive with Chat Id + Message Id).",- "New text of the message (1–4096 chars).": "New text of the message (1–4096 chars).",- "Identifier of the message to delete.": "Identifier of the message to delete.",- "Chat the message will be forwarded to.": "Chat the message will be forwarded to.",- "Chat the original message came from.": "Chat the original message came from.",- "Identifier of the message to forward.": "Identifier of the message to forward.",- "Identifier of the message to pin.": "Identifier of the message to pin.",- "Pass True if it is not necessary to send a notification to all chat members.": "Pass True if it is not necessary to send a notification to all chat members.","Identifier of the pinned message to unpin. Leave empty to unpin the most recent pinned message.": "Identifier of the pinned message to unpin. Leave empty to unpin the most recent pinned message.",- "Unique identifier for the user": "Unique identifier for the user",- "File identifier to get information about": "File identifier to get information about",- "If enabled, the file is downloaded and returned as base64.": "If enabled, the file is downloaded and returned as base64.",- "Name of the invite link (max 32 chars)": "Name of the invite link (max 32 chars)",- "Point in time when the link will expire": "Point in time when the link will expire",- "Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999": "Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999",- "If True, users joining the chat via the link need to be approved by chat administrators.": "If True, users joining the chat via the link need to be approved by chat administrators.",- "Unique identifier of the callback query. Available on `callback_query.id` in the New Callback Query trigger payload.": "Unique identifier of the callback query. Available on `callback_query.id` in the New Callback Query trigger payload.",- "Text shown to the user. If not specified, nothing is shown (the spinner is just stopped).": "Text shown to the user. If not specified, nothing is shown (the spinner is just stopped).",- "If True, an alert dialog is shown instead of a notification at the top of the screen.": "If True, an alert dialog is shown instead of a notification at the top of the screen.",- "URL that will be opened by the user.": "URL that will be opened by the user.",- "The maximum amount of time in seconds the result of the callback query may be cached client-side.": "The maximum amount of time in seconds the result of the callback query may be cached client-side.",- "The approval message to be sent": "The approval message to be sent",- "Unique identifier of the callback query. Available on callback_query.id in the New Callback Query trigger payload.": "Unique identifier of the callback query. Available on callback_query.id in the New Callback Query trigger payload.",- "Name of the invite link (max 32 chars).": "Name of the invite link (max 32 chars).",- "Point in time when the link will expire.": "Point in time when the link will expire.",- "Maximum number of users that can be members of the chat simultaneously after joining via this invite link; 1-99999.": "Maximum number of users that can be members of the chat simultaneously after joining via this invite link; 1-99999.",- "Numeric id or @channelusername of the chat holding the message. Required together with Message Id; leave empty when editing an inline message (use Inline Message Id instead).": "Numeric id or @channelusername of the chat holding the message. Required together with Message Id; leave empty when editing an inline message (use Inline Message Id instead).",- "How the message text should be parsed by Telegram. Defaults to plain text; only set MarkdownV2 or HTML when the text is correctly escaped/tagged.": "How the message text should be parsed by Telegram. Defaults to plain text; only set MarkdownV2 or HTML when the text is correctly escaped/tagged.",- "Advanced/optional. A raw JSON-serialized inline keyboard, e.g. {\"inline_keyboard\":[[{\"text\":\"Open\",\"url\":\"https://example.com\"}]]}. Malformed markup is rejected by Telegram.": "Advanced/optional. A raw JSON-serialized inline keyboard, e.g. {\"inline_keyboard\":[[{\"text\":\"Open\",\"url\":\"https://example.com\"}]]}. Malformed markup is rejected by Telegram.",- "Chat the message will be forwarded to (a numeric id or @channelusername the bot can reach).": "Chat the message will be forwarded to (a numeric id or @channelusername the bot can reach).",- "Unique identifier for the user (e.g. from the New Message trigger payload).": "Unique identifier for the user (e.g. from the New Message trigger payload).",- "File identifier to get information about (from a received message).": "File identifier to get information about (from a received message).",- "The audio file to send (.MP3 or .M4A). Provide this or an audio_id.": "The audio file to send (.MP3 or .M4A). Provide this or an audio_id.",- "Reuse an audio file previously uploaded to Telegram by passing its file_id. Provide this or an audio file.": "Reuse an audio file previously uploaded to Telegram by passing its file_id. Provide this or an audio file.",- "How the caption should be parsed by Telegram. Defaults to plain text; only set MarkdownV2 or HTML when the caption is correctly escaped/tagged.": "How the caption should be parsed by Telegram. Defaults to plain text; only set MarkdownV2 or HTML when the caption is correctly escaped/tagged.",- "The document file to send. Telegram supports any file up to 50 MB. Provide this or a document_id.": "The document file to send. Telegram supports any file up to 50 MB. Provide this or a document_id.",- "Reuse a document previously uploaded to Telegram by passing its file_id. Provide this or a document file.": "Reuse a document previously uploaded to Telegram by passing its file_id. Provide this or a document file.",- "How item captions should be parsed by Telegram. Defaults to plain text; only set MarkdownV2 or HTML when captions are correctly escaped/tagged.": "How item captions should be parsed by Telegram. Defaults to plain text; only set MarkdownV2 or HTML when captions are correctly escaped/tagged.",- "The text message to send.": "The text message to send.",- "Advanced/optional. A raw JSON-serialized inline keyboard or reply keyboard, e.g. {\"inline_keyboard\":[[{\"text\":\"Open\",\"url\":\"https://example.com\"}]]}. Malformed markup is rejected by Telegram.": "Advanced/optional. A raw JSON-serialized inline keyboard or reply keyboard, e.g. {\"inline_keyboard\":[[{\"text\":\"Open\",\"url\":\"https://example.com\"}]]}. Malformed markup is rejected by Telegram.",- "How the quiz explanation should be parsed by Telegram. Defaults to plain text; only set MarkdownV2 or HTML when the explanation is correctly escaped/tagged.": "How the quiz explanation should be parsed by Telegram. Defaults to plain text; only set MarkdownV2 or HTML when the explanation is correctly escaped/tagged.","Authorization headers are injected automatically from your connection.": "Authorization headers are injected automatically from your connection.",+ "Appended to the URL as ?key=value.": "Appended to the URL as ?key=value.","Enable for files like PDFs, images, etc.": "Enable for files like PDFs, images, etc.",- "Markdown (V2)": "Markdown (V2)",+ "On a failed request, output the error instead of failing the step.": "On a failed request, output the error instead of failing the step.",+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "Seconds to wait for a response. Empty: up to the flow limit (10 min).",+ "Follow 3xx redirects instead of returning them as the response.": "Follow 3xx redirects instead of returning them as the response.",+ "MarkdownV2": "MarkdownV2","HTML": "HTML","Plain Text": "Plain Text","Image": "Image",@@ -237,25 +309,22 @@"Find Location": "Find Location","Record Video Note": "Record Video Note","Upload Video Note": "Upload Video Note",+ "Markdown (V2)": "Markdown (V2)","GET": "GET","POST": "POST","PATCH": "PATCH","PUT": "PUT","DELETE": "DELETE","HEAD": "HEAD",- "None": "None",- "JSON": "JSON",- "Form Data": "Form Data",- "Raw": "Raw","New Update": "New Update","Triggers when the bot receives a Telegram update (message, callback query, poll answer, etc.).": "Triggers when the bot receives a Telegram update (message, callback query, poll answer, etc.).","Update Types": "Update Types",- "\nTelegram allows only **one webhook per bot token**, so this one trigger covers every update type picked below. Use a Branch step downstream to fork on update kind (e.g. `message` vs `callback_query`).\n\nSame reason **Retest** shows example data instead of a live update once this flow is published, refetching would mean hijacking the bot's active webhook. Test before publishing to capture a real message.\n": "\nTelegram allows only **one webhook per bot token**, so this one trigger covers every update type picked below. Use a Branch step downstream to fork on update kind (e.g. `message` vs `callback_query`).\n\nSame reason **Retest** shows example data instead of a live update once this flow is published, refetching would mean hijacking the bot's active webhook. Test before publishing to capture a real message.\n",- "Which update types this flow should listen for. Leave empty for Telegram's default set (does not include callback queries).": "Which update types this flow should listen for. Leave empty for Telegram's default set (does not include callback queries).",+ "**One webhook per bot.** Publishing another flow with this bot token stops this one. Use one flow per bot and branch on the update type.\n\nAfter publishing, Retest shows sample data. Test before publishing to load a real update.": "**One webhook per bot.** Publishing another flow with this bot token stops this one. Use one flow per bot and branch on the update type.\n\nAfter publishing, Retest shows sample data. Test before publishing to load a real update.",+ "Empty receives every update except Chat Member and reactions.": "Empty receives every update except Chat Member and reactions.","Edited Message": "Edited Message","Channel Post": "Channel Post","Edited Channel Post": "Edited Channel Post",- "Callback Query (inline button tap)": "Callback Query (inline button tap)",+ "Inline Button Tap": "Inline Button Tap","Inline Query": "Inline Query","Chosen Inline Result": "Chosen Inline Result","Poll": "Poll",diff --git a/packages/pieces/community/telegram-bot/src/i18n/zh.json b/packages/pieces/community/telegram-bot/src/i18n/zh.jsonindex c8ce541b9bc..97a82a84488 100644--- a/packages/pieces/community/telegram-bot/src/i18n/zh.json+++ b/packages/pieces/community/telegram-bot/src/i18n/zh.json@@ -218,5 +218,124 @@"Poll Answer": "Poll Answer","My Chat Member": "My Chat Member","Chat Member": "Chat Member",- "Chat Join Request": "Chat Join Request"+ "Chat Join Request": "Chat Join Request",+ "\n**Authentication**:\n\n1. Begin a conversation with the [Botfather](https://telegram.me/BotFather).\n2. Type in \"/newbot\"\n3. Choose a name for your bot\n4. Choose a username for your bot.\n5. Copy the token BotFather sends and paste it here.\n": "\n**身份验证**:\n\n1. 与 [Botfather](https://telegram.me/BotFather) 开始对话。\n2. 输入 \"/newbot\"\n3. 为你的机器人选择一个名称\n4. 为你的机器人选择一个用户名。\n5. 复制 BotFather 发来的令牌,并粘贴到此处。\n",+ "Send a text message to a chat, group or channel.": "向聊天、群组或频道发送文本消息。",+ "Send a photo, video, sticker or GIF to a chat.": "向聊天发送照片、视频、贴纸或 GIF。",+ "Send any file to a chat as a document.": "将任意文件作为文档发送到聊天。",+ "Send an MP3 or M4A file that plays in Telegram's music player.": "发送在 Telegram 音乐播放器中播放的 MP3 或 M4A 文件。",+ "Send a map pin, or a live location that updates, to a chat.": "向聊天发送地图图钉或实时更新的位置。",+ "Send 2 to 10 photos, videos, files or audio tracks as one album.": "将 2 到 10 个照片、视频、文件或音轨作为一个相册发送。",+ "Send a poll or a quiz to a chat.": "向聊天发送投票或测验。",+ "Show a status like \"typing…\" in a chat for up to 5 seconds.": "在聊天中显示“正在输入…”等状态,最长 5 秒。",+ "Replace the text of a message the bot sent.": "替换机器人所发消息的文本。",+ "Delete a message. The bot needs admin rights to delete other people's messages.": "删除消息。删除他人的消息需要机器人拥有管理员权限。",+ "Pin a message. The bot must be an admin in the chat.": "置顶消息。机器人必须是该聊天的管理员。",+ "Unpin one message, or the most recent pinned message.": "取消置顶一条消息或最近置顶的消息。",+ "Get a chat's title, type, description and settings.": "获取聊天的标题、类型、描述和设置。",+ "Get a person's status and permissions in a chat.": "获取某人在聊天中的状态和权限。",+ "Get file details and, optionally, its content.": "获取文件详情,并可选择获取其内容。",+ "Create an invite link for a group or channel.": "为群组或频道创建邀请链接。",+ "Answer a tap on an inline button with a short banner or alert.": "用简短横幅或提醒回应内联按钮的点击。",+ "Chat ID": "聊天 ID",+ "Topic ID": "话题 ID",+ "Disable Link Preview": "禁用链接预览",+ "Reply To Message ID": "回复的消息 ID",+ "Buttons": "按钮",+ "File": "文件",+ "Document ID": "文档 ID",+ "Audio ID": "音频 ID",+ "Title": "标题",+ "Correct Option": "正确选项",+ "Explanation": "解析",+ "Open Period": "开放时长",+ "Message ID": "消息 ID",+ "Inline Message ID": "内联消息 ID",+ "From Chat ID": "来源聊天 ID",+ "User ID": "用户 ID",+ "Link Name": "链接名称",+ "Expiry Date": "过期日期",+ "Require Admin Approval": "需要管理员批准",+ "Callback Query ID": "回调查询 ID",+ "Cache Time": "缓存时间",+ "Response is Binary": "响应为二进制",+ "Return Error as Output": "将错误作为输出返回",+ "Timeout": "超时",+ "Your own chat ID: message @getmyid_bot and send /my_id. A group's ID: add your bot, send /start there, and read chat.id in the New Update trigger's test data before publishing. A public channel can use its @username.\n\nThe bot must be in the group or channel, or the person must have messaged it first, or Telegram answers \"chat not found\".": "你自己的聊天 ID:给 @getmyid_bot 发消息并发送 /my_id。群组 ID:添加你的机器人,在群里发送 /start,并在发布前从 New Update 触发器的测试数据中读取 chat.id。公开频道可以使用其 @username。\n\n机器人必须在群组或频道中,或者对方必须先给它发过消息,否则 Telegram 会返回 \"chat not found\"。",+ "Numeric chat ID, or @username for a public channel.": "数字聊天 ID,或公开频道的 @username。",+ "How Telegram styles the text.": "Telegram 如何设置文本格式。",+ "Up to 4096 characters.": "最多 4096 个字符。",+ "[Telegram's formatting guide](https://core.telegram.org/bots/api#formatting-options) lists every tag. MarkdownV2 needs a backslash before symbols like . ! - ( ), or Telegram rejects the message.": "[Telegram 格式指南](https://core.telegram.org/bots/api#formatting-options)列出了所有标签。MarkdownV2 需要在 . ! - ( ) 等符号前加反斜杠,否则 Telegram 会拒绝该消息。",+ "Post inside a topic of a forum group. Empty posts to the main chat.": "在论坛群组的某个话题中发布。留空则发布到主聊天。",+ "Don't show a preview card for links in the message.": "不为消息中的链接显示预览卡片。",+ "Deliver without a sound. The message still arrives.": "静音发送。消息仍会送达。",+ "Stop recipients from forwarding or saving the message.": "禁止接收者转发或保存该消息。",+ "Send as a reply to this message in the same chat.": "作为对同一聊天中此消息的回复发送。",+ "reply_markup JSON: an inline keyboard, reply keyboard or forced reply.": "reply_markup JSON:内联键盘、回复键盘或强制回复。",+ "Up to 1024 characters. Not shown on stickers.": "最多 1024 个字符。贴纸不显示。",+ "Upload a file or enter a file ID. If both are set, the upload is sent.": "上传文件或输入文件 ID。如果两者都填写,则发送上传的文件。",+ "Any file type, up to 50 MB.": "任意文件类型,最大 50 MB。",+ "file_id of a document already on Telegram, to send it again.": "已在 Telegram 上的文档的 file_id,用于再次发送。",+ "Up to 1024 characters.": "最多 1024 个字符。",+ "An MP3 or M4A file.": "MP3 或 M4A 文件。",+ "file_id of audio already on Telegram, to send it again.": "已在 Telegram 上的音频的 file_id,用于再次发送。",+ "Track name shown in the player.": "播放器中显示的曲目名称。",+ "Artist name shown in the player.": "播放器中显示的艺术家名称。",+ "Length in seconds.": "时长(秒)。",+ "Between -90 and 90.": "介于 -90 和 90 之间。",+ "Between -180 and 180.": "介于 -180 和 180 之间。",+ "Uncertainty radius in meters, 0 to 1500.": "误差半径(米),0 到 1500。",+ "Fill Live Period to share a live location. Heading and Proximity Alert Radius only work with it.": "填写 Live Period 以共享实时位置。Heading 和 Proximity Alert Radius 仅在与其配合时有效。",+ "Seconds, 60 to 86400.": "秒,60 到 86400。",+ "Degrees, 1 to 360.": "度,1 到 360。",+ "Alert distance in meters, 1 to 100000.": "提醒距离(米),1 到 100000。",+ "Photos and videos can mix. Audio and files go in albums of their own.": "照片和视频可以混合。音频和文件需各自单独成相册。",+ "How Telegram styles the captions.": "Telegram 如何设置说明文字格式。",+ "Up to 300 characters.": "最多 300 个字符。",+ "2 to 10 answers, each up to 100 characters.": "2 到 10 个答案,每个最多 100 个字符。",+ "Hide who voted for what.": "隐藏谁投了什么票。",+ "Regular polls only.": "仅限普通投票。",+ "Only used when Poll Type is Quiz.": "仅当 Poll Type 为 Quiz 时使用。",+ "Position of the right answer, counting from 0.": "正确答案的位置,从 0 开始计数。",+ "Shown after a wrong answer, up to 200 characters.": "答错后显示,最多 200 个字符。",+ "How Telegram styles the explanation.": "Telegram 如何设置解析的格式。",+ "Set an open period or a close date, not both.": "设置开放时长或关闭日期,不要同时设置。",+ "Seconds the poll stays open, 5 to 600.": "投票保持开放的秒数,5 到 600。",+ "When the poll closes, 5 to 600 seconds from now.": "投票关闭的时间,从现在起 5 到 600 秒。",+ "Post the poll already closed, to show results.": "发布已关闭的投票,以显示结果。",+ "What the chat shows, e.g. typing or uploading a photo.": "聊天中显示的内容,例如正在输入或正在上传照片。",+ "Fill Chat ID and Message ID together, or Inline Message ID alone.": "同时填写聊天 ID 和消息 ID,或仅填写内联消息 ID。",+ "From the output of the step that sent it, or the trigger.": "来自发送该消息的步骤或触发器的输出。",+ "For messages sent in inline mode. Replaces Chat ID and Message ID.": "用于以内联模式发送的消息。替代聊天 ID 和消息 ID。",+ "Up to 4096 characters. Replaces the whole message.": "最多 4096 个字符。替换整条消息。",+ "Chat the message is in, by ID or @username.": "消息所在的聊天,填写 ID 或 @username。",+ "ID of the message in that chat.": "该聊天中消息的 ID。",+ "Pin without notifying chat members.": "置顶时不通知聊天成员。",+ "Empty unpins the most recent pinned message.": "留空则取消置顶最近置顶的消息。",+ "Numeric user ID, found in the trigger as message.from.id.": "数字用户 ID,可在触发器的 message.from.id 中找到。",+ "The file_id of a photo, document or audio in a message.": "消息中照片、文档或音频的 file_id。",+ "Also return the content as base64. Telegram caps this at 20 MB.": "同时以 base64 返回内容。Telegram 限制为 20 MB。",+ "Up to 32 characters, shown only to admins.": "最多 32 个字符,仅管理员可见。",+ "Empty means the link never expires.": "留空表示链接永不过期。",+ "Use a member limit or admin approval, not both.": "使用成员上限或管理员批准,不要同时使用。",+ "How many people can join with this link, 1 to 99999.": "可通过此链接加入的人数,1 到 99999。",+ "Admins approve each person who joins with the link.": "管理员逐一批准通过链接加入的人。",+ "callback_query.id from the New Update trigger.": "来自 New Update 触发器的 callback_query.id。",+ "Up to 200 characters. Empty just stops the loading spinner.": "最多 200 个字符。留空则仅停止加载动画。",+ "Show a pop-up the user must close, instead of a banner.": "显示用户必须关闭的弹窗,而不是横幅。",+ "Only a t.me link to your bot, or a game URL.": "仅限指向你的机器人的 t.me 链接或游戏 URL。",+ "Seconds Telegram may reuse this answer. Default 0.": "Telegram 可重复使用此回答的秒数。默认 0。",+ "Sent with a Review & Respond button that opens the approval page.": "随附一个打开审批页面的 Review & Respond 按钮发送。",+ "Appended to the URL as ?key=value.": "以 ?key=value 形式附加到 URL。",+ "On a failed request, output the error instead of failing the step.": "请求失败时输出错误,而不是让步骤失败。",+ "Seconds to wait for a response. Empty: up to the flow limit (10 min).": "等待响应的秒数。留空:最长到流程上限(10 分钟)。",+ "Follow 3xx redirects instead of returning them as the response.": "跟随 3xx 重定向,而不是将其作为响应返回。",+ "MarkdownV2": "MarkdownV2",+ "**One webhook per bot.** Publishing another flow with this bot token stops this one. Use one flow per bot and branch on the update type.\n\nAfter publishing, Retest shows sample data. Test before publishing to load a real update.": "**每个机器人只能有一个 Webhook。** 使用此机器人令牌发布另一个流程会停止当前流程。每个机器人使用一个流程,并按更新类型分支。\n\n发布后,Retest 会显示示例数据。发布前进行测试可加载真实更新。",+ "Empty receives every update except member changes and reactions.": "留空则接收除成员变更和表情回应外的所有更新。",+ "Inline Button Tap": "内联按钮点击",+ "Your own chat ID: message @getmyid_bot and send /my_id. A group's ID: add your bot, send /start there, test the New Update trigger before publishing and copy chat.id from that message, not the 123456789 sample. A public channel can use its @username.\n\nThe bot must be in the group or channel, or the person must have messaged it first, or Telegram answers \"chat not found\".": "你自己的聊天 ID:给 @getmyid_bot 发消息并发送 /my_id。群组 ID:添加你的机器人,在群里发送 /start,发布前测试 New Update 触发器,并复制那条消息的 chat.id,而不是示例中的 123456789。公开频道可以使用其 @username。\n\n机器人必须在群组或频道中,或者对方必须先给它发过消息,否则 Telegram 会返回 \"chat not found\"。",+ "Empty receives every update except Chat Member and reactions.": "留空则接收除 Chat Member 和表情回应外的所有更新。",+ "Caption Format": "说明文字格式",+ "Explanation Format": "解析格式"}\ No newline at end of filediff --git a/packages/pieces/community/telegram-bot/src/index.ts b/packages/pieces/community/telegram-bot/src/index.tsindex 148cfd84d4c..9995170ba85 100644--- a/packages/pieces/community/telegram-bot/src/index.ts+++ b/packages/pieces/community/telegram-bot/src/index.ts@@ -51,8 +51,7 @@ const markdownDescription = `2. Type in "/newbot"3. Choose a name for your bot4. Choose a username for your bot.-5. Copy the token value from the Botfather and use it activepieces connection.-6. Congratulations! You can now use your new Telegram connection in your flows.+5. Copy the token BotFather sends and paste it here.`;export const telegramBotAuth = PieceAuth.SecretText({@@ -64,7 +63,7 @@ export const telegramBotAuth = PieceAuth.SecretText({export const telegramBot = createPiece({displayName: 'Telegram Bot',description: 'Build chatbots for Telegram',- minimumSupportedRelease: '0.87.0',+ minimumSupportedRelease: '0.88.2',logoUrl: 'https://cdn.activepieces.com/pieces/telegram_bot.png',categories: [PieceCategory.COMMUNICATION],auth: telegramBotAuth,diff --git a/packages/pieces/community/telegram-bot/src/lib/action/answer-callback-query.action.ts b/packages/pieces/community/telegram-bot/src/lib/action/answer-callback-query.action.tsindex 3d04f04c2d7..e9ac2fd04f9 100644--- a/packages/pieces/community/telegram-bot/src/lib/action/answer-callback-query.action.ts+++ b/packages/pieces/community/telegram-bot/src/lib/action/answer-callback-query.action.ts@@ -8,39 +8,41 @@ export const telegramAnswerCallbackQueryAction = createAction({name: 'answer_callback_query',classification: 'WRITE',displayName: 'Answer Callback Query',- description:- 'Respond to a callback query sent by an inline keyboard button. Shows a notification or alert to the user.',+ description: 'Answer a tap on an inline button with a short banner or alert.',audience: 'human',aiMetadata: { description: 'Acknowledges a callback query raised when a user taps an inline keyboard button, identified by callback_query_id (from the trigger payload), optionally showing a toast or alert. Use to stop the button spinner and give feedback; a given query can only be answered once. Not idempotent: each call is a one-time response to that query.', idempotent: false },+ propertyGroups: [+ { key: 'callback', display: 'section', label: 'Button Tap', icon: 'reply', props: ['callback_query_id'] },+ { key: 'response', display: 'section', label: 'Response', icon: 'text', props: ['text', 'show_alert'] },+ ],props: {callback_query_id: Property.ShortText({- displayName: 'Callback Query Id',- description:- 'Unique identifier of the callback query. Available on `callback_query.id` in the New Callback Query trigger payload.',+ displayName: 'Callback Query ID',+ description: 'callback_query.id from the New Update trigger.',required: true,}),text: Property.LongText({displayName: 'Text',- description:- 'Text shown to the user. If not specified, nothing is shown (the spinner is just stopped).',+ description: 'Up to 200 characters. Empty just stops the loading spinner.',required: false,}),show_alert: Property.Checkbox({displayName: 'Show Alert',- description: 'If True, an alert dialog is shown instead of a notification at the top of the screen.',+ description: 'Show a pop-up the user must close, instead of a banner.',required: false,defaultValue: false,}),url: Property.ShortText({displayName: 'URL',- description: 'URL that will be opened by the user.',+ description: 'Only a t.me link to your bot, or a game URL.',required: false,+ advanced: true,}),cache_time: Property.Number({- displayName: 'Cache Time (seconds)',- description:- 'The maximum amount of time in seconds the result of the callback query may be cached client-side.',+ displayName: 'Cache Time',+ description: 'Seconds Telegram may reuse this answer. Default 0.',required: false,+ advanced: true,}),},async run(ctx) {diff --git a/packages/pieces/community/telegram-bot/src/lib/action/create-invite-link.ts b/packages/pieces/community/telegram-bot/src/lib/action/create-invite-link.tsindex 14b1b033d05..779fb193761 100644--- a/packages/pieces/community/telegram-bot/src/lib/action/create-invite-link.ts+++ b/packages/pieces/community/telegram-bot/src/lib/action/create-invite-link.ts@@ -1,5 +1,5 @@import { httpClient, HttpMethod } from '@activepieces/pieces-common';-import { createAction, Property } from '@activepieces/pieces-framework';+import { createAction, MarkdownVariant, Property } from '@activepieces/pieces-framework';import { telegramBotAuth } from '../..';import { telegramCommons } from '../common';import { createInviteLinkActionOutputSchema } from '../output-schemas';@@ -8,33 +8,48 @@ export const telegramCreateInviteLinkAction = createAction({auth: telegramBotAuth,name: 'create_invite_link',classification: 'WRITE',- description: 'Create an invite link for a chat',+ description: 'Create an invite link for a group or channel.',audience: 'human',aiMetadata: { description: 'Creates a new invite link for a chat by chat_id, optionally with a name, expiry, member limit, or join-request approval. Use to generate a shareable join link; the bot must be an administrator with invite rights. Not idempotent: each call mints a distinct new invite link.', idempotent: false },displayName: 'Create Invite Link',+ propertyGroups: [+ { key: 'chat', display: 'section', label: 'Chat', icon: 'users', props: ['instructions', 'chat_id'] },+ { key: 'link', display: 'section', label: 'Link Settings', icon: 'sliders', props: ['name', 'expire_date'] },+ {+ key: 'access',+ display: 'section',+ label: 'Who Can Join',+ icon: 'user',+ props: ['access_info', 'member_limit', 'creates_join_request'],+ },+ ],props: {- instructions: telegramCommons.chatIdInstructions(),- chat_id: telegramCommons.chatIdProp(),+ instructions: telegramCommons.form.chatIdInstructions(),+ chat_id: telegramCommons.form.chatIdProp(),name: Property.ShortText({- displayName: 'Name',- description: 'Name of the invite link (max 32 chars)',+ displayName: 'Link Name',+ description: 'Up to 32 characters, shown only to admins.',required: false,+ width: 'half',}),expire_date: Property.DateTime({- displayName: 'Expire Date',- description: 'Point in time when the link will expire',+ displayName: 'Expiry Date',+ description: 'Empty means the link never expires.',required: false,+ width: 'half',+ }),+ access_info: Property.MarkDown({+ value: 'Use a member limit or admin approval, not both.',+ variant: MarkdownVariant.INFO,}),member_limit: Property.Number({displayName: 'Member Limit',- description:- 'Maximum number of users that can be members of the chat simultaneously after joining the chat via this invite link; 1-99999',+ description: 'How many people can join with this link, 1 to 99999.',required: false,}),creates_join_request: Property.Checkbox({- displayName: 'Creates Join Request',- description:- 'If True, users joining the chat via the link need to be approved by chat administrators.',+ displayName: 'Require Admin Approval',+ description: 'Admins approve each person who joins with the link.',required: false,defaultValue: false,}),diff --git a/packages/pieces/community/telegram-bot/src/lib/action/delete-message.action.ts b/packages/pieces/community/telegram-bot/src/lib/action/delete-message.action.tsindex bc2e3fd9ad6..6c59a5dc079 100644--- a/packages/pieces/community/telegram-bot/src/lib/action/delete-message.action.ts+++ b/packages/pieces/community/telegram-bot/src/lib/action/delete-message.action.ts@@ -9,15 +9,16 @@ export const telegramDeleteMessageAction = createAction({name: 'delete_message',classification: 'DESTRUCTIVE',displayName: 'Delete Message',- description: 'Delete a message sent in a chat. Bots can delete their own messages and messages in groups where they are admins.',+ description:+ "Delete a message. The bot needs admin rights to delete other people's messages.",audience: 'human',aiMetadata: { description: 'Permanently removes a message from a chat, identified by chat_id and message_id. Use to clean up or retract content; the bot can only delete its own messages or any message in groups where it is an administrator. Idempotent in effect: the message ends up deleted regardless of how many times this runs with the same input.', idempotent: true },props: {- instructions: telegramCommons.chatIdInstructions(),- chat_id: telegramCommons.chatIdProp(),+ instructions: telegramCommons.form.chatIdInstructions(),+ chat_id: telegramCommons.form.chatIdProp(),message_id: Property.Number({- displayName: 'Message Id',- description: 'Identifier of the message to delete.',+ displayName: 'Message ID',+ description: telegramCommons.form.messageIdDescription,required: true,}),},diff --git a/packages/pieces/community/telegram-bot/src/lib/action/edit-message-text.action.ts b/packages/pieces/community/telegram-bot/src/lib/action/edit-message-text.action.tsindex c82880bf861..e50b267a4f5 100644--- a/packages/pieces/community/telegram-bot/src/lib/action/edit-message-text.action.ts+++ b/packages/pieces/community/telegram-bot/src/lib/action/edit-message-text.action.ts@@ -1,4 +1,8 @@-import { createAction, Property } from '@activepieces/pieces-framework';+import {+ createAction,+ MarkdownVariant,+ Property,+} from '@activepieces/pieces-framework';import { HttpMethod, httpClient } from '@activepieces/pieces-common';import { telegramCommons } from '../common';import { telegramBotAuth } from '../..';@@ -9,41 +13,63 @@ export const telegramEditMessageTextAction = createAction({name: 'edit_message_text',classification: 'WRITE',displayName: 'Edit Message Text',- description: 'Edit the text of a previously sent message or an inline message',+ description: 'Replace the text of a message the bot sent.',audience: 'human',aiMetadata: { description: 'Replaces the text of a message the bot already sent, identified either by chat_id + message_id or by inline_message_id (the two targeting modes are mutually exclusive). Use to update a status or correct a message in place rather than sending a new one. Not idempotent: Telegram rejects an edit whose text matches the current content.', idempotent: false },+ propertyGroups: [+ {+ key: 'target',+ display: 'section',+ label: 'Message to Edit',+ icon: 'inbox',+ props: [+ 'target_info',+ 'instructions',+ 'chat_id',+ 'message_id',+ 'inline_message_id',+ ],+ },+ {+ key: 'changes',+ display: 'section',+ label: 'Changes',+ icon: 'sliders',+ props: ['format', 'text', 'instructions_format'],+ },+ ],props: {- instructions: telegramCommons.chatIdInstructions(),+ target_info: Property.MarkDown({+ value: 'Fill Chat ID and Message ID together, or Inline Message ID alone.',+ variant: MarkdownVariant.INFO,+ }),+ instructions: telegramCommons.form.chatIdInstructions(),chat_id: Property.ShortText({- displayName: 'Chat Id',- description:- 'Required when editing a message sent by the bot. Leave empty to edit an inline message (use Inline Message Id instead).',+ displayName: 'Chat ID',+ description: 'Numeric chat ID, or @username for a public channel.',+ placeholder: '123456789 or @channelname',required: false,}),message_id: Property.Number({- displayName: 'Message Id',- description: 'Identifier of the message to edit (used together with Chat Id).',+ displayName: 'Message ID',+ description: telegramCommons.form.messageIdDescription,required: false,}),inline_message_id: Property.ShortText({- displayName: 'Inline Message Id',- description: 'Identifier of the inline message (mutually exclusive with Chat Id + Message Id).',+ displayName: 'Inline Message ID',+ description:+ 'For messages sent in inline mode. Replaces Chat ID and Message ID.',required: false,}),+ format: telegramCommons.form.parseModeProp(),text: Property.LongText({displayName: 'New Text',- description: 'New text of the message (1–4096 chars).',+ description: 'Up to 4096 characters. Replaces the whole message.',required: true,}),- format: telegramCommons.parseModeProp(),- instructions_format: telegramCommons.formatLinkInstructions(),- disable_web_page_preview: Property.Checkbox({- displayName: 'Disable Web Page Preview',- description: 'Disable link previews for links in this message.',- required: false,- defaultValue: false,- }),- reply_markup: telegramCommons.replyMarkupProp(),+ instructions_format: telegramCommons.form.formatLinkInstructions(),+ disable_web_page_preview: telegramCommons.form.linkPreviewProp(),+ reply_markup: telegramCommons.form.replyMarkupProp(),},outputSchema: editMessageTextActionOutputSchema,async run(ctx) {@@ -51,7 +77,7 @@ export const telegramEditMessageTextAction = createAction({const hasInlineTarget = Boolean(ctx.propsValue.inline_message_id);if (!hasChatTarget && !hasInlineTarget) {throw new Error(- 'Either Chat Id + Message Id, or Inline Message Id, must be provided.'+ 'Either Chat ID + Message ID, or Inline Message ID, must be provided.');}diff --git a/packages/pieces/community/telegram-bot/src/lib/action/forward-message.action.ts b/packages/pieces/community/telegram-bot/src/lib/action/forward-message.action.tsindex a7671d1b1ba..4b2dc74952e 100644--- a/packages/pieces/community/telegram-bot/src/lib/action/forward-message.action.ts+++ b/packages/pieces/community/telegram-bot/src/lib/action/forward-message.action.ts@@ -9,29 +9,47 @@ export const telegramForwardMessageAction = createAction({name: 'forward_message',classification: 'WRITE',displayName: 'Forward Message',- description: 'Forward a message from one chat to another',+ description: 'Forward a message from one chat to another.',audience: 'human',aiMetadata: { description: 'Forwards an existing message from a source chat (from_chat_id) to a target chat (chat_id), preserving its original sender attribution. Use to relay content the bot can access between chats. Not idempotent: each call creates a new forwarded message in the target chat.', idempotent: false },+ propertyGroups: [+ {+ key: 'source',+ display: 'section',+ label: 'Message to Forward',+ icon: 'inbox',+ props: ['from_chat_id', 'message_id'],+ },+ {+ key: 'send_to',+ display: 'section',+ label: 'Send to',+ icon: 'send',+ props: ['instructions', 'chat_id'],+ },+ ],props: {- instructions: telegramCommons.chatIdInstructions(),- chat_id: Property.ShortText({- displayName: 'Target Chat Id',- description: 'Chat the message will be forwarded to.',- required: true,- }),from_chat_id: Property.ShortText({- displayName: 'From Chat Id',- description: 'Chat the original message came from.',+ displayName: 'From Chat ID',+ description: 'Chat the message is in, by ID or @username.',+ placeholder: '123456789 or @channelname',required: true,}),message_id: Property.Number({- displayName: 'Message Id',- description: 'Identifier of the message to forward.',+ displayName: 'Message ID',+ description: 'ID of the message in that chat.',+ required: true,+ }),+ instructions: telegramCommons.form.chatIdInstructions(),+ chat_id: Property.ShortText({+ displayName: 'Chat ID',+ description: 'Numeric chat ID, or @username for a public channel.',+ placeholder: '123456789 or @channelname',required: true,}),- message_thread_id: telegramCommons.messageThreadIdProp(),- disable_notification: telegramCommons.disableNotificationProp(),- protect_content: telegramCommons.protectContentProp(),+ message_thread_id: telegramCommons.form.messageThreadIdProp(),+ disable_notification: telegramCommons.form.disableNotificationProp(),+ protect_content: telegramCommons.form.protectContentProp(),},outputSchema: forwardMessageActionOutputSchema,async run(ctx) {diff --git a/packages/pieces/community/telegram-bot/src/lib/action/get-chat-member.ts b/packages/pieces/community/telegram-bot/src/lib/action/get-chat-member.tsindex acef8d4f9e9..dfc70f66e9b 100644--- a/packages/pieces/community/telegram-bot/src/lib/action/get-chat-member.ts+++ b/packages/pieces/community/telegram-bot/src/lib/action/get-chat-member.ts@@ -1,4 +1,4 @@-import { httpClient, HttpError, HttpMethod } from '@activepieces/pieces-common';+import { httpClient, HttpMethod } from '@activepieces/pieces-common';import { createAction, Property } from '@activepieces/pieces-framework';import { telegramBotAuth } from '../..';import { telegramCommons } from '../common';@@ -8,34 +8,30 @@ export const telegramGetChatMemberAction = createAction({auth: telegramBotAuth,name: 'get_chat_member',classification: 'READ',- description: 'Get member info (or null) for the provided chat id and user id',+ description: "Get a person's status and permissions in a chat.",audience: 'human',aiMetadata: { description: 'Looks up a specific user\'s membership in a chat by chat_id and user_id, returning their role and status (member, administrator, left, kicked, etc.). Use to check whether a user belongs to a chat or what permissions they hold before acting. Idempotent: read-only lookup with no side effects.', idempotent: true },displayName: 'Get Chat Member',props: {- instructions: telegramCommons.chatIdInstructions(),- chat_id: telegramCommons.chatIdProp(),+ instructions: telegramCommons.form.chatIdInstructions(),+ chat_id: telegramCommons.form.chatIdProp(),user_id: Property.ShortText({- displayName: 'User Id',- description: 'Unique identifier for the user',+ displayName: 'User ID',+ description: 'Numeric user ID, found in the trigger as message.from.id.',+ placeholder: '123456789',required: true,}),},outputSchema: getChatMemberActionOutputSchema,async run(ctx) {- try {- const response = await httpClient.sendRequest<never>({- method: HttpMethod.POST,- url: telegramCommons.getApiUrl(ctx.auth, 'getChatMember'),- headers: {},- body: {- chat_id: ctx.propsValue.chat_id,- user_id: ctx.propsValue.user_id,- },- });- return response.body;- } catch (error) {- return (error as HttpError).errorMessage().response.body;- }+ const response = await httpClient.sendRequest<never>({+ method: HttpMethod.POST,+ url: telegramCommons.getApiUrl(ctx.auth, 'getChatMember'),+ body: {+ chat_id: ctx.propsValue.chat_id,+ user_id: ctx.propsValue.user_id,+ },+ });+ return response.body;},});diff --git a/packages/pieces/community/telegram-bot/src/lib/action/get-chat.action.test.ts b/packages/pieces/community/telegram-bot/src/lib/action/get-chat.action.test.tsnew file mode 100644index 00000000000..c8bc280125c--- /dev/null+++ b/packages/pieces/community/telegram-bot/src/lib/action/get-chat.action.test.ts@@ -0,0 +1,43 @@+/// <reference types="vitest/globals" />++import { vi } from 'vitest';+import { createMockActionContext } from '@activepieces/pieces-framework';+import { HttpError } from '@activepieces/pieces-common';++const { sendRequest } = vi.hoisted(() => ({ sendRequest: vi.fn() }));++vi.mock('@activepieces/pieces-common', async (importOriginal) => {+ const actual = await importOriginal<typeof import('@activepieces/pieces-common')>();+ return { ...actual, httpClient: { sendRequest } };+});++import '../../index';+import { telegramGetChatAction } from './get-chat.action';+import { telegramGetChatMemberAction } from './get-chat-member';++const auth = { type: 'SECRET_TEXT', secret_text: 'bot-token' };+const notFound = { ok: false, error_code: 400, description: 'Bad Request: chat not found' };++describe('telegram chat lookups', () => {+ beforeEach(() => {+ sendRequest.mockReset();+ });++ test('Get Chat returns the chat on success', async () => {+ sendRequest.mockResolvedValue({ status: 200, body: { ok: true, result: { id: 1 } } });+ const output = await telegramGetChatAction.run({ ...createMockActionContext({ propsValue: { chat_id: '1' } }), auth });+ expect(output).toEqual({ ok: true, result: { id: 1 } });+ });++ test('Get Chat fails the step when Telegram returns an error', async () => {+ sendRequest.mockRejectedValue(new HttpError({ chat_id: 'x' }, { status: 400, responseBody: notFound }));+ await expect(telegramGetChatAction.run({ ...createMockActionContext({ propsValue: { chat_id: 'x' } }), auth })).rejects.toThrow('chat not found');+ });++ test('Get Chat Member fails the step when Telegram returns an error', async () => {+ sendRequest.mockRejectedValue(new HttpError({ chat_id: 'x', user_id: '2' }, { status: 400, responseBody: notFound }));+ await expect(+ telegramGetChatMemberAction.run({ ...createMockActionContext({ propsValue: { chat_id: 'x', user_id: '2' } }), auth }),+ ).rejects.toThrow('chat not found');+ });+});diff --git a/packages/pieces/community/telegram-bot/src/lib/action/get-chat.action.ts b/packages/pieces/community/telegram-bot/src/lib/action/get-chat.action.tsindex 20daea40a01..8f8e9b3fbc4 100644--- a/packages/pieces/community/telegram-bot/src/lib/action/get-chat.action.ts+++ b/packages/pieces/community/telegram-bot/src/lib/action/get-chat.action.ts@@ -1,4 +1,4 @@-import { HttpError, HttpMethod, httpClient } from '@activepieces/pieces-common';+import { HttpMethod, httpClient } from '@activepieces/pieces-common';import { createAction } from '@activepieces/pieces-framework';import { telegramCommons } from '../common';import { telegramBotAuth } from '../..';@@ -9,26 +9,22 @@ export const telegramGetChatAction = createAction({name: 'get_chat',classification: 'READ',displayName: 'Get Chat',- description: 'Get up-to-date information about a chat (name, description, photo, member count, etc.)',+ description: "Get a chat's title, type, description and settings.",audience: 'human',aiMetadata: { description: 'Looks up current details about a chat (title, description, type, photo, member count, etc.) by chat_id. Use to resolve or inspect a chat before acting on it; the bot must be a member of or have access to the chat. Idempotent: read-only lookup with no side effects.', idempotent: true },props: {- instructions: telegramCommons.chatIdInstructions(),- chat_id: telegramCommons.chatIdProp(),+ instructions: telegramCommons.form.chatIdInstructions(),+ chat_id: telegramCommons.form.chatIdProp(),},outputSchema: getChatActionOutputSchema,async run(ctx) {- try {- const response = await httpClient.sendRequest<never>({- method: HttpMethod.POST,- url: telegramCommons.getApiUrl(ctx.auth, 'getChat'),- body: {- chat_id: ctx.propsValue.chat_id,- },- });- return response.body;- } catch (error) {- return (error as HttpError).errorMessage().response.body;- }+ const response = await httpClient.sendRequest<never>({+ method: HttpMethod.POST,+ url: telegramCommons.getApiUrl(ctx.auth, 'getChat'),+ body: {+ chat_id: ctx.propsValue.chat_id,+ },+ });+ return response.body;},});diff --git a/packages/pieces/community/telegram-bot/src/lib/action/get-file.action.test.ts b/packages/pieces/community/telegram-bot/src/lib/action/get-file.action.test.tsnew file mode 100644index 00000000000..a06922f14ee--- /dev/null+++ b/packages/pieces/community/telegram-bot/src/lib/action/get-file.action.test.ts@@ -0,0 +1,57 @@+/// <reference types="vitest/globals" />++import { vi } from 'vitest';+import { createMockActionContext } from '@activepieces/pieces-framework';++const { sendRequest } = vi.hoisted(() => ({ sendRequest: vi.fn() }));++vi.mock('@activepieces/pieces-common', async (importOriginal) => {+ const actual = await importOriginal<typeof import('@activepieces/pieces-common')>();+ return { ...actual, httpClient: { sendRequest } };+});++import '../../index';+import { telegramGetFileAction } from './get-file.action';+import { telegramGetFile } from './telegram-get-file';++const BOT_TOKEN = '123456:secret-bot-token';+const auth = { type: 'SECRET_TEXT', secret_text: BOT_TOKEN };+const fileInfo = { file_id: 'f1', file_unique_id: 'u1', file_size: 4, file_path: 'documents/file_7.pdf' };++function mockTelegram() {+ sendRequest.mockImplementation(async ({ url }: { url: string }) => {+ if (url.endsWith('/getFile')) {+ return { status: 200, body: { ok: true, result: fileInfo } };+ }+ return { status: 200, body: Buffer.from('data') };+ });+}++describe('telegram get_file output', () => {+ beforeEach(() => {+ sendRequest.mockReset();+ mockTelegram();+ });++ test('returns file details without the bot token', async () => {+ const output = await telegramGetFileAction.run({ ...createMockActionContext({ propsValue: { file_id: 'f1', download: false } }), auth });+ expect(output).toEqual({ file_info: fileInfo });+ expect(JSON.stringify(output)).not.toContain(BOT_TOKEN);+ });++ test('returns the downloaded content without the token and without writing a file', async () => {+ const write = vi.fn(async () => 'stored-file-url');+ const context = createMockActionContext({ propsValue: { file_id: 'f1', download: true } });+ const output = await telegramGetFileAction.run({ ...context, auth, files: { ...context.files, write } });+ expect(write).not.toHaveBeenCalled();+ expect(output).toEqual({ file_info: fileInfo, file_content_base64: Buffer.from('data').toString('base64') });+ expect(JSON.stringify(output)).not.toContain(BOT_TOKEN);+ expect(sendRequest.mock.calls[1][0].url).toContain(BOT_TOKEN);+ });++ test('the AI variant does not return the token either', async () => {+ const output = await telegramGetFile.run({ ...createMockActionContext({ propsValue: { file_id: 'f1', download: true } }), auth });+ expect(JSON.stringify(output)).not.toContain(BOT_TOKEN);+ expect(output).toMatchObject({ file_content_base64: Buffer.from('data').toString('base64') });+ });+});diff --git a/packages/pieces/community/telegram-bot/src/lib/action/get-file.action.ts b/packages/pieces/community/telegram-bot/src/lib/action/get-file.action.tsindex 7e532d3a5c0..8937613e742 100644--- a/packages/pieces/community/telegram-bot/src/lib/action/get-file.action.ts+++ b/packages/pieces/community/telegram-bot/src/lib/action/get-file.action.ts@@ -20,19 +20,21 @@ export const telegramGetFileAction = createAction({auth: telegramBotAuth,name: 'get_file',classification: 'READ',- description: 'Get file information and optionally download a file from Telegram',+ description: 'Get file details and, optionally, its content.',audience: 'human',- aiMetadata: { description: 'Resolves a Telegram file_id to its file metadata and download URL, and optionally downloads the file content as base64 when download is enabled. Use to retrieve files attached to messages the bot received. Idempotent: read/download with no side effects, though Telegram download URLs are time-limited.', idempotent: true },+ aiMetadata: { description: 'Resolves a Telegram file_id to its file metadata, and optionally downloads the file content as base64 when download is enabled. Use to retrieve files attached to messages the bot received. Idempotent: read/download with no side effects.', idempotent: true },displayName: 'Get File',props: {file_id: Property.ShortText({displayName: 'File ID',- description: 'File identifier to get information about',+ description: 'The file_id of a photo, document or audio in a message.',+ placeholder: 'message.document.file_id from the trigger',required: true,}),download: Property.Checkbox({displayName: 'Download File',- description: 'If enabled, the file is downloaded and returned as base64.',+ description:+ 'Also return the content as base64. Telegram caps this at 20 MB.',required: false,defaultValue: false,}),@@ -52,29 +54,36 @@ export const telegramGetFileAction = createAction({}const fileInfo = fileInfoResponse.body.result;- const fileUrl = fileInfo.file_path- ? `https://api.telegram.org/file/bot${ctx.auth.secret_text}/${fileInfo.file_path}`- : undefined;- if (ctx.propsValue.download && fileUrl) {- const fileResponse = await httpClient.sendRequest<Buffer>({- method: HttpMethod.GET,- url: fileUrl,- responseType: 'arraybuffer',+ if (ctx.propsValue.download && fileInfo.file_path) {+ const content = await downloadTelegramFile({+ botToken: ctx.auth.secret_text,+ filePath: fileInfo.file_path,});- const base64Content = Buffer.from(fileResponse.body).toString('base64');-return {file_info: fileInfo,- file_url: fileUrl,- file_content_base64: base64Content,+ file_content_base64: content.toString('base64'),};}return {file_info: fileInfo,- file_url: fileUrl,};},});++async function downloadTelegramFile({+ botToken,+ filePath,+}: {+ botToken: string;+ filePath: string;+}): Promise<Buffer> {+ const response = await httpClient.sendRequest<ArrayBuffer>({+ method: HttpMethod.GET,+ url: `https://api.telegram.org/file/bot${botToken}/${filePath}`,+ responseType: 'arraybuffer',+ });+ return Buffer.from(response.body);+}diff --git a/packages/pieces/community/telegram-bot/src/lib/action/pin-message.action.ts b/packages/pieces/community/telegram-bot/src/lib/action/pin-message.action.tsindex 7f91d9761c9..74c611a04fb 100644--- a/packages/pieces/community/telegram-bot/src/lib/action/pin-message.action.ts+++ b/packages/pieces/community/telegram-bot/src/lib/action/pin-message.action.ts@@ -9,22 +9,19 @@ export const telegramPinMessageAction = createAction({name: 'pin_message',classification: 'WRITE',displayName: 'Pin Message',- description: 'Pin a message in a chat. The bot must be an administrator in the chat for this to work.',+ description: 'Pin a message. The bot must be an admin in the chat.',audience: 'human',aiMetadata: { description: 'Pins an existing message in a chat, identified by chat_id and message_id; the bot must be an administrator with pin rights. Use to highlight an announcement or important message. Idempotent: pinning an already-pinned message leaves it pinned with the same result.', idempotent: true },props: {- instructions: telegramCommons.chatIdInstructions(),- chat_id: telegramCommons.chatIdProp(),+ instructions: telegramCommons.form.chatIdInstructions(),+ chat_id: telegramCommons.form.chatIdProp(),message_id: Property.Number({- displayName: 'Message Id',- description: 'Identifier of the message to pin.',+ displayName: 'Message ID',+ description: telegramCommons.form.messageIdDescription,required: true,}),- disable_notification: Property.Checkbox({- displayName: 'Disable Notification',- description: 'Pass True if it is not necessary to send a notification to all chat members.',- required: false,- defaultValue: false,+ disable_notification: telegramCommons.form.disableNotificationProp({+ description: 'Pin without notifying chat members.',}),},outputSchema: pinMessageActionOutputSchema,diff --git a/packages/pieces/community/telegram-bot/src/lib/action/request-approval-message.ts b/packages/pieces/community/telegram-bot/src/lib/action/request-approval-message.tsindex 388aff5b8c5..93f7312e67b 100644--- a/packages/pieces/community/telegram-bot/src/lib/action/request-approval-message.ts+++ b/packages/pieces/community/telegram-bot/src/lib/action/request-approval-message.ts@@ -16,14 +16,15 @@ export const telegramRequestApprovalMessageAction = createAction({audience: 'both',aiMetadata: { description: 'Sends a message with a single button linking to a confirmation page where the recipient chooses Approve or Disapprove, then pauses the flow until they respond and resumes with the decision. Use as a human approval gate before a sensitive downstream step. Not idempotent: each call sends a new message and opens a new pause/wait.', idempotent: false },props: {- instructions: telegramCommons.chatIdInstructions(),- chat_id: telegramCommons.chatIdProp(),+ instructions: telegramCommons.form.chatIdInstructions(),+ chat_id: telegramCommons.form.chatIdProp(),message: Property.LongText({displayName: 'Message',- description: 'The approval message to be sent',+ description: 'Sent with a Review & Respond button that opens the approval page.',required: true,}),- parse_mode: telegramCommons.parseModeProp(),+ parse_mode: telegramCommons.form.parseModeProp(),+ instructions_format: telegramCommons.form.formatLinkInstructions(),},outputSchema: requestApprovalMessageActionOutputSchema,async run(context) {diff --git a/packages/pieces/community/telegram-bot/src/lib/action/send-audio.action.ts b/packages/pieces/community/telegram-bot/src/lib/action/send-audio.action.tsindex 8ecc2e5defc..0bd6534f23a 100644--- a/packages/pieces/community/telegram-bot/src/lib/action/send-audio.action.ts+++ b/packages/pieces/community/telegram-bot/src/lib/action/send-audio.action.ts@@ -1,6 +1,7 @@import {ApFile,createAction,+ MarkdownVariant,Property,} from '@activepieces/pieces-framework';import {@@ -18,49 +19,61 @@ export const telegramSendAudioAction = createAction({name: 'send_audio',classification: 'WRITE',displayName: 'Send Audio',- description: 'Send an audio file to a Telegram chat (.MP3/.M4A — shown in the music player)',+ description: "Send an MP3 or M4A file that plays in Telegram's music player.",audience: 'human',aiMetadata: { description: 'Sends an audio file (.MP3/.M4A) to a Telegram chat where it appears in the music player, supplied as a file or a previously uploaded file_id, with optional performer and track title. Use for music or audio tracks; for raw file attachments use Send Document. Not idempotent: each call sends a new message.', idempotent: false },+ propertyGroups: [+ { key: 'send_to', display: 'section', label: 'Send to', icon: 'send', props: ['instructions', 'chat_id'] },+ { key: 'file', display: 'section', label: 'Audio', icon: 'paperclip', props: ['file_info', 'audio', 'audio_id'] },+ { key: 'caption', display: 'section', label: 'Caption', icon: 'text', props: ['format', 'caption', 'instructions_format'] },+ { key: 'track', display: 'section', label: 'Track Details', icon: 'tag', props: ['title', 'performer', 'duration'] },+ ],props: {- instructions: telegramCommons.chatIdInstructions(),- chat_id: telegramCommons.chatIdProp(),- message_thread_id: telegramCommons.messageThreadIdProp(),+ instructions: telegramCommons.form.chatIdInstructions(),+ chat_id: telegramCommons.form.chatIdProp(),+ file_info: Property.MarkDown({+ value: 'Upload a file or enter a file ID. If both are set, the upload is sent.',+ variant: MarkdownVariant.INFO,+ }),audio: Property.File({displayName: 'Audio',- description: 'The audio file to send (.MP3 or .M4A).',+ description: 'An MP3 or M4A file.',required: false,}),audio_id: Property.ShortText({- displayName: 'Audio Id',- description: 'Reuse an audio file previously uploaded to Telegram by passing its file_id.',+ displayName: 'Audio ID',+ description: 'file_id of audio already on Telegram, to send it again.',required: false,}),+ format: telegramCommons.form.parseModeProp(),caption: Property.LongText({displayName: 'Caption',- description: 'Optional caption (0–1024 chars).',+ description: 'Up to 1024 characters.',required: false,}),- format: telegramCommons.parseModeProp(),- instructions_format: telegramCommons.formatLinkInstructions(),- duration: Property.Number({- displayName: 'Duration',- description: 'Duration of the audio in seconds.',+ instructions_format: telegramCommons.form.formatLinkInstructions(),+ title: Property.ShortText({+ displayName: 'Title',+ description: 'Track name shown in the player.',required: false,}),performer: Property.ShortText({displayName: 'Performer',- description: 'Performer / artist name.',+ description: 'Artist name shown in the player.',required: false,+ width: 'half',}),- title: Property.ShortText({- displayName: 'Track Title',- description: 'Track title.',+ duration: Property.Number({+ displayName: 'Duration',+ description: 'Length in seconds.',required: false,+ width: 'half',}),- disable_notification: telegramCommons.disableNotificationProp(),- protect_content: telegramCommons.protectContentProp(),- reply_to_message_id: telegramCommons.replyToMessageIdProp(),- reply_markup: telegramCommons.replyMarkupProp(),+ message_thread_id: telegramCommons.form.messageThreadIdProp(),+ disable_notification: telegramCommons.form.disableNotificationProp(),+ protect_content: telegramCommons.form.protectContentProp(),+ reply_to_message_id: telegramCommons.form.replyToMessageIdProp(),+ reply_markup: telegramCommons.form.replyMarkupProp(),},outputSchema: sendAudioActionOutputSchema,async run(ctx) {diff --git a/packages/pieces/community/telegram-bot/src/lib/action/send-chat-action.action.ts b/packages/pieces/community/telegram-bot/src/lib/action/send-chat-action.action.tsindex 162aafd2f45..0172eff9ce2 100644--- a/packages/pieces/community/telegram-bot/src/lib/action/send-chat-action.action.ts+++ b/packages/pieces/community/telegram-bot/src/lib/action/send-chat-action.action.ts@@ -9,17 +9,15 @@ export const telegramSendChatActionAction = createAction({name: 'send_chat_action',classification: 'WRITE',displayName: 'Send Chat Action',- description:- 'Show a status (typing, uploading photo, recording voice, etc.) on behalf of the bot in a chat. The status is shown for up to 5 seconds.',+ description: 'Show a status like "typing…" in a chat for up to 5 seconds.',audience: 'human',aiMetadata: { description: 'Broadcasts a transient activity status (such as typing or uploading photo) in a chat, shown for up to 5 seconds. Use just before a slower action to signal the bot is working; it sends no message and produces no persistent content. Not idempotent: each call re-broadcasts the status.', idempotent: false },props: {- instructions: telegramCommons.chatIdInstructions(),- chat_id: telegramCommons.chatIdProp(),- message_thread_id: telegramCommons.messageThreadIdProp(),+ instructions: telegramCommons.form.chatIdInstructions(),+ chat_id: telegramCommons.form.chatIdProp(),action: Property.StaticDropdown({displayName: 'Action',- description: 'Type of action to broadcast.',+ description: 'What the chat shows, e.g. typing or uploading a photo.',required: true,options: {options: [@@ -38,6 +36,7 @@ export const telegramSendChatActionAction = createAction({},defaultValue: 'typing',}),+ message_thread_id: telegramCommons.form.messageThreadIdProp(),},outputSchema: sendChatActionActionOutputSchema,async run(ctx) {diff --git a/packages/pieces/community/telegram-bot/src/lib/action/send-document.action.ts b/packages/pieces/community/telegram-bot/src/lib/action/send-document.action.tsindex 3999b5d6636..2b03ff237af 100644--- a/packages/pieces/community/telegram-bot/src/lib/action/send-document.action.ts+++ b/packages/pieces/community/telegram-bot/src/lib/action/send-document.action.ts@@ -1,6 +1,7 @@import {ApFile,createAction,+ MarkdownVariant,Property,} from '@activepieces/pieces-framework';import {@@ -18,35 +19,43 @@ export const telegramSendDocumentAction = createAction({name: 'send_document',classification: 'WRITE',displayName: 'Send Document',- description: 'Send a generic file (document) to a Telegram chat',+ description: 'Send any file to a chat as a document.',audience: 'human',aiMetadata: { description: 'Uploads and sends a generic file (up to 50 MB) as a document to a Telegram chat, supplied as a file or a previously uploaded Telegram file_id. Use for arbitrary attachments (PDFs, archives, spreadsheets) rather than media shown inline. Not idempotent: each call sends a new document.', idempotent: false },+ propertyGroups: [+ { key: 'send_to', display: 'section', label: 'Send to', icon: 'send', props: ['instructions', 'chat_id'] },+ { key: 'file', display: 'section', label: 'File', icon: 'paperclip', props: ['file_info', 'document', 'document_id'] },+ { key: 'caption', display: 'section', label: 'Caption', icon: 'text', props: ['format', 'caption', 'instructions_format'] },+ ],props: {- instructions: telegramCommons.chatIdInstructions(),- chat_id: telegramCommons.chatIdProp(),- message_thread_id: telegramCommons.messageThreadIdProp(),+ instructions: telegramCommons.form.chatIdInstructions(),+ chat_id: telegramCommons.form.chatIdProp(),+ file_info: Property.MarkDown({+ value: 'Upload a file or enter a file ID. If both are set, the upload is sent.',+ variant: MarkdownVariant.INFO,+ }),document: Property.File({displayName: 'Document',- description: 'The document file to send. Telegram supports any file up to 50 MB.',+ description: 'Any file type, up to 50 MB.',required: false,}),document_id: Property.ShortText({- displayName: 'Document Id',- description:- 'Reuse a document previously uploaded to Telegram by passing its file_id. Either provide a document or a document id.',+ displayName: 'Document ID',+ description: 'file_id of a document already on Telegram, to send it again.',required: false,}),+ format: telegramCommons.form.parseModeProp(),caption: Property.LongText({displayName: 'Caption',- description: 'Optional caption to display below the document (0–1024 chars).',+ description: 'Up to 1024 characters.',required: false,}),- format: telegramCommons.parseModeProp(),- instructions_format: telegramCommons.formatLinkInstructions(),- disable_notification: telegramCommons.disableNotificationProp(),- protect_content: telegramCommons.protectContentProp(),- reply_to_message_id: telegramCommons.replyToMessageIdProp(),- reply_markup: telegramCommons.replyMarkupProp(),+ instructions_format: telegramCommons.form.formatLinkInstructions(),+ message_thread_id: telegramCommons.form.messageThreadIdProp(),+ disable_notification: telegramCommons.form.disableNotificationProp(),+ protect_content: telegramCommons.form.protectContentProp(),+ reply_to_message_id: telegramCommons.form.replyToMessageIdProp(),+ reply_markup: telegramCommons.form.replyMarkupProp(),},outputSchema: sendDocumentActionOutputSchema,async run(ctx) {diff --git a/packages/pieces/community/telegram-bot/src/lib/action/send-location.action.ts b/packages/pieces/community/telegram-bot/src/lib/action/send-location.action.tsindex d48d180e8f9..66012034596 100644--- a/packages/pieces/community/telegram-bot/src/lib/action/send-location.action.ts+++ b/packages/pieces/community/telegram-bot/src/lib/action/send-location.action.ts@@ -1,4 +1,4 @@-import { createAction, Property } from '@activepieces/pieces-framework';+import { createAction, MarkdownVariant, Property } from '@activepieces/pieces-framework';import { HttpMethod, httpClient } from '@activepieces/pieces-common';import { telegramCommons } from '../common';import { telegramBotAuth } from '../..';@@ -9,49 +9,72 @@ export const telegramSendLocationAction = createAction({name: 'send_location',classification: 'WRITE',displayName: 'Send Location',- description: 'Send a geographic location (latitude/longitude) to a Telegram chat',+ description: 'Send a map pin, or a live location that updates, to a chat.',audience: 'human',aiMetadata: { description: 'Sends a point location given as latitude and longitude to a Telegram chat, optionally as a live location that updates for a set period. Use to share a place or track a moving position; both coordinates are required. Not idempotent: each call posts a new location message.', idempotent: false },+ propertyGroups: [+ { key: 'send_to', display: 'section', label: 'Send to', icon: 'send', props: ['instructions', 'chat_id'] },+ {+ key: 'location',+ display: 'section',+ label: 'Location',+ icon: 'location',+ props: ['latitude', 'longitude', 'horizontal_accuracy'],+ },+ {+ key: 'live',+ display: 'section',+ label: 'Live Location',+ icon: 'sliders',+ props: ['live_info', 'live_period', 'heading', 'proximity_alert_radius'],+ },+ ],props: {- instructions: telegramCommons.chatIdInstructions(),- chat_id: telegramCommons.chatIdProp(),- message_thread_id: telegramCommons.messageThreadIdProp(),+ instructions: telegramCommons.form.chatIdInstructions(),+ chat_id: telegramCommons.form.chatIdProp(),latitude: Property.Number({displayName: 'Latitude',- description: 'Latitude of the location.',+ description: 'Between -90 and 90.',required: true,+ width: 'half',}),longitude: Property.Number({displayName: 'Longitude',- description: 'Longitude of the location.',+ description: 'Between -180 and 180.',required: true,+ width: 'half',}),horizontal_accuracy: Property.Number({displayName: 'Horizontal Accuracy',- description: 'Radius of uncertainty for the location, in meters (0–1500).',+ description: 'Uncertainty radius in meters, 0 to 1500.',required: false,}),+ live_info: Property.MarkDown({+ value: 'Fill Live Period to share a live location. Heading and Proximity Alert Radius only work with it.',+ variant: MarkdownVariant.INFO,+ }),live_period: Property.Number({displayName: 'Live Period',- description:- 'Number of seconds the location will be updated (60–86400). Use for live locations.',+ description: 'Seconds, 60 to 86400.',required: false,+ width: 'half',}),heading: Property.Number({displayName: 'Heading',- description: 'For live locations, direction the user is moving in degrees (1–360).',+ description: 'Degrees, 1 to 360.',required: false,+ width: 'half',}),proximity_alert_radius: Property.Number({displayName: 'Proximity Alert Radius',- description:- 'For live locations, the max distance (1–100000 m) for proximity alerts about approaching another chat member.',+ description: 'Alert distance in meters, 1 to 100000.',required: false,}),- disable_notification: telegramCommons.disableNotificationProp(),- protect_content: telegramCommons.protectContentProp(),- reply_to_message_id: telegramCommons.replyToMessageIdProp(),- reply_markup: telegramCommons.replyMarkupProp(),+ message_thread_id: telegramCommons.form.messageThreadIdProp(),+ disable_notification: telegramCommons.form.disableNotificationProp(),+ protect_content: telegramCommons.form.protectContentProp(),+ reply_to_message_id: telegramCommons.form.replyToMessageIdProp(),+ reply_markup: telegramCommons.form.replyMarkupProp(),},outputSchema: sendLocationActionOutputSchema,async run(ctx) {diff --git a/packages/pieces/community/telegram-bot/src/lib/action/send-media-group.action.ts b/packages/pieces/community/telegram-bot/src/lib/action/send-media-group.action.tsindex f2f49286429..8ca2f2a1252 100644--- a/packages/pieces/community/telegram-bot/src/lib/action/send-media-group.action.ts+++ b/packages/pieces/community/telegram-bot/src/lib/action/send-media-group.action.ts@@ -19,17 +19,20 @@ export const telegramSendMediaGroupAction = createAction({classification: 'WRITE',displayName: 'Send Media Group',description:- 'Send a group of 2–10 photos, videos, documents or audios as an album to a chat',+ 'Send 2 to 10 photos, videos, files or audio tracks as one album.',audience: 'human',aiMetadata: { description: 'Sends 2–10 media items (each a public URL or a Telegram file_id) as a single grouped album to a chat. Use to post several photos/videos together; photo and video may be mixed, but audio-only and document-only groups cannot be combined with other types. Not idempotent: each call posts a new album.', idempotent: false },+ propertyGroups: [+ { key: 'send_to', display: 'section', label: 'Send to', icon: 'send', props: ['instructions', 'chat_id'] },+ { key: 'album', display: 'section', label: 'Album', icon: 'file', props: ['media', 'parse_mode', 'instructions_format'] },+ ],props: {- instructions: telegramCommons.chatIdInstructions(),- chat_id: telegramCommons.chatIdProp(),- message_thread_id: telegramCommons.messageThreadIdProp(),+ instructions: telegramCommons.form.chatIdInstructions(),+ chat_id: telegramCommons.form.chatIdProp(),media: Property.Array({displayName: 'Media',description:- 'Media items to send. Each must be a URL or a Telegram file_id. Mixing photo/video is allowed; audio and document groups cannot be mixed with other types.',+ 'Photos and videos can mix. Audio and files go in albums of their own.',required: true,properties: {type: Property.StaticDropdown({@@ -46,21 +49,26 @@ export const telegramSendMediaGroupAction = createAction({defaultValue: 'photo',}),media: Property.ShortText({- displayName: 'Media URL or File Id',- description:- 'Public URL or a Telegram file_id of an already uploaded media item.',+ displayName: 'URL or File ID',+ description: 'Public URL, or file_id of media already on Telegram.',required: true,}),caption: Property.LongText({displayName: 'Caption',+ description: 'Up to 1024 characters.',required: false,}),},}),- parse_mode: telegramCommons.parseModeProp(),- disable_notification: telegramCommons.disableNotificationProp(),- protect_content: telegramCommons.protectContentProp(),- reply_to_message_id: telegramCommons.replyToMessageIdProp(),+ parse_mode: telegramCommons.form.parseModeProp({+ displayName: 'Caption Format',+ description: 'How Telegram styles the captions.',+ }),+ instructions_format: telegramCommons.form.formatLinkInstructions(),+ message_thread_id: telegramCommons.form.messageThreadIdProp(),+ disable_notification: telegramCommons.form.disableNotificationProp(),+ protect_content: telegramCommons.form.protectContentProp(),+ reply_to_message_id: telegramCommons.form.replyToMessageIdProp(),},outputSchema: sendMediaGroupActionOutputSchema,async run(ctx) {diff --git a/packages/pieces/community/telegram-bot/src/lib/action/send-media.action.test.ts b/packages/pieces/community/telegram-bot/src/lib/action/send-media.action.test.tsnew file mode 100644index 00000000000..7551296631a--- /dev/null+++ b/packages/pieces/community/telegram-bot/src/lib/action/send-media.action.test.ts@@ -0,0 +1,83 @@+/// <reference types="vitest/globals" />++import { vi } from 'vitest';+import FormData from 'form-data';+import { ApFile, createMockActionContext } from '@activepieces/pieces-framework';++const { sendRequest } = vi.hoisted(() => ({ sendRequest: vi.fn() }));++vi.mock('@activepieces/pieces-common', async (importOriginal) => {+ const actual = await importOriginal<typeof import('@activepieces/pieces-common')>();+ return { ...actual, httpClient: { sendRequest } };+});++import '../../index';+import { telegramSendMediaAction } from './send-media.action';++const auth = { type: 'SECRET_TEXT', secret_text: 'bot-token' };++function run(propsValue: Record<string, unknown>) {+ return telegramSendMediaAction.run({ ...createMockActionContext({ propsValue }), auth });+}++function sentRequest() {+ return sendRequest.mock.calls[0][0];+}++function sentFormFields(): string {+ const body = sentRequest().body;+ if (!(body instanceof FormData)) {+ throw new Error('expected a multipart body');+ }+ return body.getBuffer().toString('utf8');+}++function formHasField({ fields, name, value }: { fields: string; name: string; value: string }) {+ return fields.includes(`name="${name}"\r\n\r\n${value}\r\n`);+}++describe('telegram send_media payload', () => {+ beforeEach(() => {+ sendRequest.mockReset();+ sendRequest.mockResolvedValue({ status: 200, body: { ok: true } });+ });++ test('sends the emoji with an uploaded sticker', async () => {+ await run({+ chat_id: '123',+ media_type: 'sticker',+ media: { sticker: new ApFile('s.webp', Buffer.from('sticker')), emoji: '😀' },+ });+ expect(sentRequest().url).toContain('/sendSticker');+ expect(formHasField({ fields: sentFormFields(), name: 'emoji', value: '😀' })).toBe(true);+ });++ test('sends the duration with an uploaded GIF', async () => {+ await run({+ chat_id: '123',+ media_type: 'animation',+ media: { animation: new ApFile('a.mp4', Buffer.from('gif')), duration: 7 },+ });+ expect(sentRequest().url).toContain('/sendAnimation');+ expect(formHasField({ fields: sentFormFields(), name: 'duration', value: '7' })).toBe(true);+ });++ test('sends the duration with a GIF file ID', async () => {+ await run({ chat_id: '123', media_type: 'animation', media: { animationId: 'gif-id', duration: 7 } });+ expect(sentRequest().body).toMatchObject({ animation: 'gif-id', duration: 7 });+ });++ test('leaves duration out for other media types', async () => {+ await run({ chat_id: '123', media_type: 'photo', media: { photoId: 'photo-id', duration: 7 } });+ expect(sentRequest().body.duration).toBeUndefined();+ });++ test('does not send an empty emoji', async () => {+ await run({+ chat_id: '123',+ media_type: 'sticker',+ media: { sticker: new ApFile('s.webp', Buffer.from('sticker')), emoji: '' },+ });+ expect(sentFormFields()).not.toContain('name="emoji"');+ });+});diff --git a/packages/pieces/community/telegram-bot/src/lib/action/send-media.action.ts b/packages/pieces/community/telegram-bot/src/lib/action/send-media.action.tsindex 8f1008eb354..0654fd1dd78 100644--- a/packages/pieces/community/telegram-bot/src/lib/action/send-media.action.ts+++ b/packages/pieces/community/telegram-bot/src/lib/action/send-media.action.ts@@ -19,17 +19,22 @@ export const telegramSendMediaAction = createAction({auth: telegramBotAuth,name: 'send_media',classification: 'WRITE',- description: 'Send a media message (photo, video, sticker, GIF) through a Telegram bot',+ description: 'Send a photo, video, sticker or GIF to a chat.',audience: 'human',aiMetadata: { description: 'Sends a single photo, video, sticker, or animated GIF to a Telegram chat, supplied either as an uploaded file or a previously uploaded Telegram file_id. Use when delivering one rich-media item with an optional caption; for multiple items in one album use Send Media Group. Not idempotent: each call posts a new message.', idempotent: false },displayName: 'Send Media',+ propertyGroups: [+ { key: 'send_to', display: 'section', label: 'Send to', icon: 'send', props: ['instructions', 'chat_id'] },+ { key: 'media_card', display: 'section', label: 'Media', icon: 'file', props: ['media_type', 'media'] },+ { key: 'caption', display: 'section', label: 'Caption', icon: 'text', props: ['format', 'message', 'instructions_format'] },+ ],props: {- instructions: telegramCommons.chatIdInstructions(),- chat_id: telegramCommons.chatIdProp(),- message_thread_id: telegramCommons.messageThreadIdProp(),+ instructions: telegramCommons.form.chatIdInstructions(),+ chat_id: telegramCommons.form.chatIdProp(),media_type: Property.StaticDropdown({displayName: 'Media Type',required: true,+ display: 'cards',options: {disabled: false,placeholder: 'Select media type',@@ -43,7 +48,7 @@ export const telegramSendMediaAction = createAction({}),media: Property.DynamicProperties({auth: telegramBotAuth,- displayName: 'Media Properties',+ displayName: 'File',required: false,refreshers: ['media_type'],async props({ media_type }) {@@ -51,65 +56,58 @@ export const telegramSendMediaAction = createAction({photo: () => ({photo: Property.File({displayName: 'Image',- description: 'The image to be uploaded as a file',+ description: 'Upload an image, or use Image ID instead.',required: false,}),photoId: Property.ShortText({- displayName: 'Image Id',- description:- "The image id previously uploaded to Telegram's servers",+ displayName: 'Image ID',+ description: 'file_id of an image already on Telegram.',required: false,}),}),video: () => ({video: Property.File({displayName: 'Video',- description: 'The video to be uploaded as a file',+ description: 'Upload a video, or use Video ID instead.',required: false,}),videoId: Property.ShortText({- displayName: 'Video Id',- description:- "The video id previously uploaded to Telegram's servers",+ displayName: 'Video ID',+ description: 'file_id of a video already on Telegram.',required: false,}),}),sticker: () => ({sticker: Property.File({displayName: 'Sticker',- description:- 'The sticker to be uploaded as a file (supports .WEBP files for static and .TGS for animated)',+ description: 'Upload a WEBP, TGS or WEBM sticker, or use Sticker ID.',required: false,}),emoji: Property.ShortText({displayName: 'Emoji',- description:- 'Emoji associated with the sticker. Only for just uploaded stickers',+ description: 'Emoji for an uploaded sticker.',required: false,}),stickerId: Property.ShortText({- displayName: 'Sticker Id',- description:- "The sticker id previously uploaded to Telegram's servers",+ displayName: 'Sticker ID',+ description: 'file_id of a sticker already on Telegram.',required: false,}),}),animation: () => ({animation: Property.File({displayName: 'GIF',- description:- 'The GIF or MPEG-4 without sound file to be uploaded as a auto-playing animation',+ description: 'Upload a GIF or silent MP4, or use GIF ID instead.',required: false,}),animationId: Property.ShortText({- displayName: 'GIF Id',- description:- "The GIF or MPEG-4 without sound id previously uploaded to Telegram's servers",+ displayName: 'GIF ID',+ description: 'file_id of a GIF already on Telegram.',required: false,}),duration: Property.Number({displayName: 'Duration',- description: 'Duration of sent video in seconds',+ description: 'Length in seconds.',required: false,}),}),@@ -121,16 +119,17 @@ export const telegramSendMediaAction = createAction({return builder();},}),- format: telegramCommons.parseModeProp(),- instructions_format: telegramCommons.formatLinkInstructions(),+ format: telegramCommons.form.parseModeProp(),message: Property.LongText({displayName: 'Caption',- description: 'The caption to send with the media',+ description: 'Up to 1024 characters. Not shown on stickers.',required: false,}),- disable_notification: telegramCommons.disableNotificationProp(),- protect_content: telegramCommons.protectContentProp(),- reply_markup: telegramCommons.replyMarkupProp(),+ instructions_format: telegramCommons.form.formatLinkInstructions(),+ message_thread_id: telegramCommons.form.messageThreadIdProp(),+ disable_notification: telegramCommons.form.disableNotificationProp(),+ protect_content: telegramCommons.form.protectContentProp(),+ reply_markup: telegramCommons.form.replyMarkupProp(),},outputSchema: sendMediaActionOutputSchema,async run(ctx) {@@ -158,6 +157,10 @@ export const telegramSendMediaAction = createAction({const file = ctx.propsValue.media?.[mediaType] as ApFile | undefined;const id = ctx.propsValue.media?.[mediaType + 'Id'] as string | undefined;const parseMode = telegramCommons.resolveParseMode(ctx.propsValue['format']);+ const emoji = ctx.propsValue.media?.['emoji'];+ const duration = ctx.propsValue.media?.['duration'];+ const animationDuration =+ mediaType === 'animation' && typeof duration === 'number' ? duration : undefined;if (file && file.data && file.filename) {const form = new FormData();@@ -181,6 +184,12 @@ export const telegramSendMediaAction = createAction({if (ctx.propsValue['reply_markup']) {form.append('reply_markup', JSON.stringify(ctx.propsValue['reply_markup']));}+ if (mediaType === 'sticker' && typeof emoji === 'string' && emoji !== '') {+ form.append('emoji', emoji);+ }+ if (animationDuration !== undefined) {+ form.append('duration', String(animationDuration));+ }body = form;Object.assign(headers, form.getHeaders());@@ -194,6 +203,7 @@ export const telegramSendMediaAction = createAction({disable_notification: ctx.propsValue['disable_notification'] ?? false,protect_content: ctx.propsValue['protect_content'] ?? false,reply_markup: ctx.propsValue['reply_markup'] ?? undefined,+ duration: animationDuration,};} else {throw new Error('No media defined. Provide either a file or an id.');diff --git a/packages/pieces/community/telegram-bot/src/lib/action/send-poll.action.ts b/packages/pieces/community/telegram-bot/src/lib/action/send-poll.action.tsindex 686b5c238dd..45589204a84 100644--- a/packages/pieces/community/telegram-bot/src/lib/action/send-poll.action.ts+++ b/packages/pieces/community/telegram-bot/src/lib/action/send-poll.action.ts@@ -1,4 +1,4 @@-import { createAction, Property } from '@activepieces/pieces-framework';+import { createAction, MarkdownVariant, Property } from '@activepieces/pieces-framework';import { HttpMethod, httpClient } from '@activepieces/pieces-common';import { telegramCommons } from '../common';import { telegramBotAuth } from '../..';@@ -9,33 +9,50 @@ export const telegramSendPollAction = createAction({name: 'send_poll',classification: 'WRITE',displayName: 'Send Poll',- description: 'Send a native Telegram poll (regular or quiz) to a chat',+ description: 'Send a poll or a quiz to a chat.',audience: 'human',aiMetadata: { description: 'Posts a native Telegram poll (regular or quiz) to a chat with 2–10 answer options. Use to collect votes or run a quiz; quiz polls require a correct_option_id and cannot allow multiple answers, and open_period and close_date are mutually exclusive. Not idempotent: each call creates a new poll.', idempotent: false },+ propertyGroups: [+ { key: 'send_to', display: 'section', label: 'Send to', icon: 'send', props: ['instructions', 'chat_id'] },+ {+ key: 'poll',+ display: 'section',+ label: 'Poll',+ icon: 'text',+ props: ['question', 'options', 'type', 'is_anonymous', 'allows_multiple_answers'],+ },+ {+ key: 'quiz',+ display: 'section',+ label: 'Quiz',+ icon: 'tag',+ props: ['quiz_info', 'correct_option_id', 'explanation', 'explanation_parse_mode'],+ },+ {+ key: 'closing',+ display: 'section',+ label: 'Closing',+ icon: 'calendar',+ props: ['closing_info', 'open_period', 'close_date', 'is_closed'],+ },+ ],props: {- instructions: telegramCommons.chatIdInstructions(),- chat_id: telegramCommons.chatIdProp(),- message_thread_id: telegramCommons.messageThreadIdProp(),+ instructions: telegramCommons.form.chatIdInstructions(),+ chat_id: telegramCommons.form.chatIdProp(),question: Property.ShortText({displayName: 'Question',- description: 'Poll question, 1–300 characters.',+ description: 'Up to 300 characters.',required: true,}),options: Property.Array({displayName: 'Options',- description: 'List of answer options (2–10 options, each 1–100 characters).',+ description: '2 to 10 answers, each up to 100 characters.',required: true,}),- is_anonymous: Property.Checkbox({- displayName: 'Anonymous',- description: 'True, if the poll needs to be anonymous. Default true.',- required: false,- defaultValue: true,- }),type: Property.StaticDropdown({displayName: 'Poll Type',- description: 'Poll type. Defaults to "regular".',required: false,+ display: 'cards',options: {options: [{ label: 'Regular', value: 'regular' },@@ -44,43 +61,63 @@ export const telegramSendPollAction = createAction({},defaultValue: 'regular',}),+ is_anonymous: Property.Checkbox({+ displayName: 'Anonymous',+ description: 'Hide who voted for what.',+ required: false,+ defaultValue: true,+ }),allows_multiple_answers: Property.Checkbox({displayName: 'Allow Multiple Answers',- description: 'True if the poll allows multiple answers (regular polls only).',+ description: 'Regular polls only.',required: false,defaultValue: false,}),+ quiz_info: Property.MarkDown({+ value: 'Only used when Poll Type is Quiz.',+ variant: MarkdownVariant.INFO,+ }),correct_option_id: Property.Number({- displayName: 'Correct Option Id (Quiz)',- description: '0-based index of the correct answer option (required for quizzes).',+ displayName: 'Correct Option',+ description: 'Position of the right answer, counting from 0.',required: false,}),explanation: Property.LongText({- displayName: 'Explanation (Quiz)',- description: 'Explanation shown when a user picks an incorrect answer (0–200 chars).',+ displayName: 'Explanation',+ description: 'Shown after a wrong answer, up to 200 characters.',required: false,}),- explanation_parse_mode: telegramCommons.parseModeProp(),+ explanation_parse_mode: telegramCommons.form.parseModeProp({+ displayName: 'Explanation Format',+ description: 'How Telegram styles the explanation.',+ }),+ closing_info: Property.MarkDown({+ value: 'Set an open period or a close date, not both.',+ variant: MarkdownVariant.INFO,+ }),open_period: Property.Number({- displayName: 'Open Period (seconds)',- description: 'Amount of time in seconds the poll will be active (5–600).',+ displayName: 'Open Period',+ description: 'Seconds the poll stays open, 5 to 600.',required: false,+ width: 'half',}),close_date: Property.DateTime({displayName: 'Close Date',- description: 'Point in time when the poll will be automatically closed.',+ description: 'When the poll closes, 5 to 600 seconds from now.',required: false,+ width: 'half',}),is_closed: Property.Checkbox({displayName: 'Closed',- description: 'Pass True if the poll should be immediately closed. Useful for previews.',+ description: 'Post the poll already closed, to show results.',required: false,defaultValue: false,}),- disable_notification: telegramCommons.disableNotificationProp(),- protect_content: telegramCommons.protectContentProp(),- reply_to_message_id: telegramCommons.replyToMessageIdProp(),- reply_markup: telegramCommons.replyMarkupProp(),+ message_thread_id: telegramCommons.form.messageThreadIdProp(),+ disable_notification: telegramCommons.form.disableNotificationProp(),+ protect_content: telegramCommons.form.protectContentProp(),+ reply_to_message_id: telegramCommons.form.replyToMessageIdProp(),+ reply_markup: telegramCommons.form.replyMarkupProp(),},outputSchema: sendPollActionOutputSchema,async run(ctx) {@@ -92,18 +129,18 @@ export const telegramSendPollAction = createAction({const correctOptionId = ctx.propsValue.correct_option_id;if (pollType === 'quiz') {if (correctOptionId === undefined || correctOptionId === null) {- throw new Error('Quiz polls require "Correct Option Id".');+ throw new Error('Quiz polls require "Correct Option".');}if (correctOptionId < 0 || correctOptionId >= options.length) {throw new Error(- `"Correct Option Id" must be between 0 and ${options.length - 1} (the index of an option).`+ `"Correct Option" must be between 0 and ${options.length - 1} (the index of an option).`);}if (ctx.propsValue.allows_multiple_answers) {throw new Error('Quiz polls cannot allow multiple answers.');}} else if (correctOptionId !== undefined && correctOptionId !== null) {- throw new Error('"Correct Option Id" is only valid for quiz polls. Set "Poll Type" to Quiz or clear this field.');+ throw new Error('"Correct Option" is only valid for quiz polls. Set "Poll Type" to Quiz or clear this field.');}if (ctx.propsValue.open_period && ctx.propsValue.close_date) {throw new Error('"Open Period" and "Close Date" are mutually exclusive — set at most one.');diff --git a/packages/pieces/community/telegram-bot/src/lib/action/send-text-message.action.ts b/packages/pieces/community/telegram-bot/src/lib/action/send-text-message.action.tsindex 113b72e9a96..85198a014b2 100644--- a/packages/pieces/community/telegram-bot/src/lib/action/send-text-message.action.ts+++ b/packages/pieces/community/telegram-bot/src/lib/action/send-text-message.action.ts@@ -8,31 +8,30 @@ export const telegramSendMessageAction = createAction({auth: telegramBotAuth,name: 'send_text_message',classification: 'WRITE',- description: 'Send a text message through a Telegram bot',+ description: 'Send a text message to a chat, group or channel.',audience: 'human',aiMetadata: { description: 'Posts a text message to a Telegram chat, group, or channel via the bot, addressed by chat_id (numeric id or @channelusername the bot can reach). Use to deliver notifications, replies, or alerts; supports Markdown/HTML formatting and inline keyboards. Not idempotent: each call sends a new message.', idempotent: false },displayName: 'Send Text Message',+ propertyGroups: [+ { key: 'send_to', display: 'section', label: 'Send to', icon: 'send', props: ['instructions', 'chat_id'] },+ { key: 'message', display: 'section', label: 'Message', icon: 'text', props: ['format', 'message', 'instructions_format'] },+ ],props: {- instructions: telegramCommons.chatIdInstructions(),- chat_id: telegramCommons.chatIdProp(),- message_thread_id: telegramCommons.messageThreadIdProp(),- format: telegramCommons.parseModeProp(),- instructions_format: telegramCommons.formatLinkInstructions(),- web_page_preview: Property.Checkbox({- displayName: 'Disable Web Page Preview',- description: 'Disable link previews for links in this message.',- required: false,- defaultValue: false,- }),- disable_notification: telegramCommons.disableNotificationProp(),- protect_content: telegramCommons.protectContentProp(),- reply_to_message_id: telegramCommons.replyToMessageIdProp(),+ instructions: telegramCommons.form.chatIdInstructions(),+ chat_id: telegramCommons.form.chatIdProp(),+ format: telegramCommons.form.parseModeProp(),message: Property.LongText({displayName: 'Message',- description: 'The message to be sent',+ description: 'Up to 4096 characters.',required: true,}),- reply_markup: telegramCommons.replyMarkupProp(),+ instructions_format: telegramCommons.form.formatLinkInstructions(),+ message_thread_id: telegramCommons.form.messageThreadIdProp(),+ web_page_preview: telegramCommons.form.linkPreviewProp(),+ disable_notification: telegramCommons.form.disableNotificationProp(),+ protect_content: telegramCommons.form.protectContentProp(),+ reply_to_message_id: telegramCommons.form.replyToMessageIdProp(),+ reply_markup: telegramCommons.form.replyMarkupProp(),},outputSchema: sendTextMessageActionOutputSchema,async run(ctx) {diff --git a/packages/pieces/community/telegram-bot/src/lib/action/telegram-get-file.ts b/packages/pieces/community/telegram-bot/src/lib/action/telegram-get-file.tsindex fe02723d4e2..3a53f71ad5d 100644--- a/packages/pieces/community/telegram-bot/src/lib/action/telegram-get-file.ts+++ b/packages/pieces/community/telegram-bot/src/lib/action/telegram-get-file.ts@@ -25,7 +25,7 @@ export const telegramGetFile = createAction({audience: 'ai',aiMetadata: {description:- 'Resolves a Telegram file_id (from a message the bot received) to its file metadata and download URL, and optionally downloads the content as base64 when download is enabled. Use to retrieve a file attached to an incoming message; the download URL Telegram returns is time-limited. Read-only and safe to retry.',+ 'Resolves a Telegram file_id (from a message the bot received) to its file metadata (size and Telegram file path), and optionally downloads the content as base64 when download is enabled. Use to retrieve a file attached to an incoming message. Read-only and safe to retry.',idempotent: true,},outputSchema: telegramGetFileActionOutputSchema,@@ -56,29 +56,22 @@ export const telegramGetFile = createAction({}const fileInfo = fileInfoResponse.body.result;- const fileUrl = fileInfo.file_path- ? `https://api.telegram.org/file/bot${ctx.auth.secret_text}/${fileInfo.file_path}`- : undefined;- if (ctx.propsValue.download && fileUrl) {- const fileResponse = await httpClient.sendRequest<Buffer>({+ if (ctx.propsValue.download && fileInfo.file_path) {+ const fileResponse = await httpClient.sendRequest<ArrayBuffer>({method: HttpMethod.GET,- url: fileUrl,+ url: `https://api.telegram.org/file/bot${ctx.auth.secret_text}/${fileInfo.file_path}`,responseType: 'arraybuffer',});- const base64Content = Buffer.from(fileResponse.body).toString('base64');-return {file_info: fileInfo,- file_url: fileUrl,- file_content_base64: base64Content,+ file_content_base64: Buffer.from(fileResponse.body).toString('base64'),};}return {file_info: fileInfo,- file_url: fileUrl,};},});diff --git a/packages/pieces/community/telegram-bot/src/lib/action/unpin-message.action.ts b/packages/pieces/community/telegram-bot/src/lib/action/unpin-message.action.tsindex e9bb6ceb339..43e3add2b2c 100644--- a/packages/pieces/community/telegram-bot/src/lib/action/unpin-message.action.ts+++ b/packages/pieces/community/telegram-bot/src/lib/action/unpin-message.action.ts@@ -9,17 +9,15 @@ export const telegramUnpinMessageAction = createAction({name: 'unpin_message',classification: 'WRITE',displayName: 'Unpin Message',- description:- 'Unpin a message in a chat. Leave Message Id empty to unpin the most recent pinned message.',+ description: 'Unpin one message, or the most recent pinned message.',audience: 'human',aiMetadata: { description: 'Unpins a message in a chat; supply message_id to unpin a specific message, or leave it empty to unpin the most recent pinned message. The bot must be an administrator with pin rights. Idempotent: a message that is already unpinned stays unpinned.', idempotent: true },props: {- instructions: telegramCommons.chatIdInstructions(),- chat_id: telegramCommons.chatIdProp(),+ instructions: telegramCommons.form.chatIdInstructions(),+ chat_id: telegramCommons.form.chatIdProp(),message_id: Property.Number({- displayName: 'Message Id',- description:- 'Identifier of the pinned message to unpin. Leave empty to unpin the most recent pinned message.',+ displayName: 'Message ID',+ description: 'Empty unpins the most recent pinned message.',required: false,}),},diff --git a/packages/pieces/community/telegram-bot/src/lib/common/index.ts b/packages/pieces/community/telegram-bot/src/lib/common/index.tsindex 06279bfbcdb..d3a1957a09f 100644--- a/packages/pieces/community/telegram-bot/src/lib/common/index.ts+++ b/packages/pieces/community/telegram-bot/src/lib/common/index.ts@@ -6,6 +6,7 @@ import {import { telegramBotAuth } from '../..';import {AppConnectionValueForAuthProperty,+ MarkdownVariant,Property,} from '@activepieces/pieces-framework';@@ -91,6 +92,126 @@ const buildReplyToMessageIdProp = () =>required: false,});+const formChatIdInstructions = `Your own chat ID: message @getmyid_bot and send /my_id. A group's ID: add your bot, send /start there, test the New Update trigger before publishing and copy chat.id from that message, not the 123456789 sample. A public channel can use its @username.++The bot must be in the group or channel, or the person must have messaged it first, or Telegram answers "chat not found".`;++const formFormatLinkMarkdown =+ "[Telegram's formatting guide](https://core.telegram.org/bots/api#formatting-options) lists every tag. MarkdownV2 needs a backslash before symbols like . ! - ( ), or Telegram rejects the message.";++const formChatIdPlaceholder = '123456789 or @channelname';++const formMessageIdDescription =+ 'From the output of the step that sent it, or the trigger.';++const buildFormChatIdInstructions = () =>+ Property.MarkDown({+ value: formChatIdInstructions,+ variant: MarkdownVariant.INFO,+ });++const buildFormChatIdProp = ({+ placeholder = formChatIdPlaceholder,+}: { placeholder?: string } = {}) =>+ Property.ShortText({+ displayName: 'Chat ID',+ description: 'Numeric chat ID, or @username for a public channel.',+ placeholder,+ required: true,+ });++const buildFormMessageThreadIdProp = () =>+ Property.ShortText({+ displayName: 'Topic ID',+ description:+ 'Post inside a topic of a forum group. Empty posts to the main chat.',+ required: false,+ advanced: true,+ });++const buildFormParseModeProp = ({+ displayName = 'Format',+ description = 'How Telegram styles the text.',+}: { displayName?: string; description?: string } = {}) =>+ Property.StaticDropdown({+ displayName,+ description,+ required: false,+ display: 'cards',+ options: {+ options: [+ {+ label: 'MarkdownV2',+ value: 'MarkdownV2',+ icon: 'markdown',+ },+ {+ label: 'HTML',+ value: 'HTML',+ icon: 'code',+ },+ {+ label: 'Plain Text',+ value: 'None',+ icon: 'text',+ },+ ],+ },+ defaultValue: 'MarkdownV2',+ });++const buildFormFormatLinkInstructions = () =>+ Property.MarkDown({+ value: formFormatLinkMarkdown,+ variant: MarkdownVariant.BORDERLESS,+ });++const buildFormReplyMarkupProp = () =>+ Property.Json({+ displayName: 'Buttons',+ description:+ 'reply_markup JSON: an inline keyboard, reply keyboard or forced reply.',+ required: false,+ advanced: true,+ });++const buildFormDisableNotificationProp = ({+ description = 'Deliver without a sound. The message still arrives.',+}: { description?: string } = {}) =>+ Property.Checkbox({+ displayName: 'Disable Notification',+ description,+ required: false,+ defaultValue: false,+ advanced: true,+ });++const buildFormProtectContentProp = () =>+ Property.Checkbox({+ displayName: 'Protect Content',+ description: 'Stop recipients from forwarding or saving the message.',+ required: false,+ defaultValue: false,+ advanced: true,+ });++const buildFormReplyToMessageIdProp = () =>+ Property.Number({+ displayName: 'Reply To Message ID',+ description: 'Send as a reply to this message in the same chat.',+ required: false,+ advanced: true,+ });++const buildFormLinkPreviewProp = () =>+ Property.Checkbox({+ displayName: 'Disable Link Preview',+ description: "Don't show a preview card for links in the message.",+ required: false,+ defaultValue: false,+ advanced: true,+ });+const resolveParseMode = (value: string | undefined): string | undefined => {if (!value || value === 'None') {return undefined;@@ -144,4 +265,17 @@ export const telegramCommons = {protectContentProp: buildProtectContentProp,replyToMessageIdProp: buildReplyToMessageIdProp,resolveParseMode,+ form: {+ chatIdInstructions: buildFormChatIdInstructions,+ chatIdProp: buildFormChatIdProp,+ messageThreadIdProp: buildFormMessageThreadIdProp,+ parseModeProp: buildFormParseModeProp,+ formatLinkInstructions: buildFormFormatLinkInstructions,+ replyMarkupProp: buildFormReplyMarkupProp,+ disableNotificationProp: buildFormDisableNotificationProp,+ protectContentProp: buildFormProtectContentProp,+ replyToMessageIdProp: buildFormReplyToMessageIdProp,+ linkPreviewProp: buildFormLinkPreviewProp,+ messageIdDescription: formMessageIdDescription,+ },};diff --git a/packages/pieces/community/telegram-bot/src/lib/output-schemas.ts b/packages/pieces/community/telegram-bot/src/lib/output-schemas.tsindex b447a758a15..041ed57878e 100644--- a/packages/pieces/community/telegram-bot/src/lib/output-schemas.ts+++ b/packages/pieces/community/telegram-bot/src/lib/output-schemas.ts@@ -361,7 +361,6 @@ export const telegramGetFileActionOutputSchema: OutputSchema = {value: 'file_info',children: telegramGetFileInfoFields,},- { key: 'file_url', label: 'File URL', value: 'file_url', format: 'url' },{ key: 'file_content_base64', label: 'File Content (Base64)', value: 'file_content_base64' },],};@@ -1538,10 +1537,9 @@ export const requestApprovalMessageActionOutputSchema: OutputSchema = {export const getFileActionOutputSchema: OutputSchema = {fields: [{- key: 'file_url',- label: 'File URL',- value: 'file_url',- format: 'url',+ key: 'file_content_base64',+ label: 'File Content (Base64)',+ value: 'file_content_base64',},{key: 'file_info',diff --git a/packages/pieces/community/telegram-bot/src/lib/trigger/new-message.test.ts b/packages/pieces/community/telegram-bot/src/lib/trigger/new-message.test.tsnew file mode 100644index 00000000000..5f6df1ee653--- /dev/null+++ b/packages/pieces/community/telegram-bot/src/lib/trigger/new-message.test.ts@@ -0,0 +1,93 @@+/// <reference types="vitest/globals" />++import { vi } from 'vitest';+import { createMockActionContext } from '@activepieces/pieces-framework';++const { sendRequest } = vi.hoisted(() => ({ sendRequest: vi.fn() }));++vi.mock('@activepieces/pieces-common', async (importOriginal) => {+ const actual = await importOriginal<typeof import('@activepieces/pieces-common')>();+ return { ...actual, httpClient: { sendRequest } };+});++import '../../index';+import { telegramNewMessage } from './new-message';++const auth = { type: 'SECRET_TEXT', secret_text: 'bot-token' };+const update = { update_id: 1, message: { text: 'hi' } };++function createStore() {+ const values = new Map<string, unknown>();+ return {+ values,+ store: {+ put: async <T>(key: string, value: T) => {+ values.set(key, value);+ return value;+ },+ get: async (key: string) => values.get(key) ?? null,+ delete: async (key: string) => {+ values.delete(key);+ },+ },+ };+}++function hookContext({ store, headers }: { store: ReturnType<typeof createStore>['store']; headers: Record<string, string> }) {+ return {+ ...createMockActionContext({ propsValue: { update_types: ['message'] } }),+ auth,+ store,+ webhookUrl: 'https://example.com/webhook',+ payload: { body: update, headers, queryParams: {} },+ };+}++function storedSecret(values: Map<string, unknown>): string {+ const secret = [...values.values()][0];+ if (typeof secret !== 'string') {+ throw new Error('no secret stored');+ }+ return secret;+}++describe('telegram new_telegram_message webhook secret', () => {+ beforeEach(() => {+ sendRequest.mockReset();+ sendRequest.mockResolvedValue({ status: 200, body: { ok: true } });+ });++ test('registers the webhook with the stored secret token', async () => {+ const { store, values } = createStore();+ await telegramNewMessage.onEnable(hookContext({ store, headers: {} }));+ const secret = storedSecret(values);+ expect(secret).toMatch(/^[a-f0-9]{64}$/);+ expect(sendRequest.mock.calls[0][0].body).toMatchObject({ secret_token: secret, allowed_updates: ['message'] });+ });++ test('accepts an update carrying the secret token', async () => {+ const { store, values } = createStore();+ await telegramNewMessage.onEnable(hookContext({ store, headers: {} }));+ const headers = { 'x-telegram-bot-api-secret-token': storedSecret(values) };+ expect(await telegramNewMessage.run(hookContext({ store, headers }))).toEqual([update]);+ });++ test('drops an update with a wrong or missing secret token', async () => {+ const { store } = createStore();+ await telegramNewMessage.onEnable(hookContext({ store, headers: {} }));+ expect(await telegramNewMessage.run(hookContext({ store, headers: { 'x-telegram-bot-api-secret-token': 'wrong' } }))).toEqual([]);+ expect(await telegramNewMessage.run(hookContext({ store, headers: {} }))).toEqual([]);+ });++ test('keeps accepting updates for flows enabled before the secret existed', async () => {+ const { store } = createStore();+ expect(await telegramNewMessage.run(hookContext({ store, headers: {} }))).toEqual([update]);+ });++ test('forgets the secret when the flow is disabled', async () => {+ const { store, values } = createStore();+ await telegramNewMessage.onEnable(hookContext({ store, headers: {} }));+ await telegramNewMessage.onDisable(hookContext({ store, headers: {} }));+ expect(values.size).toBe(0);+ });+});diff --git a/packages/pieces/community/telegram-bot/src/lib/trigger/new-message.ts b/packages/pieces/community/telegram-bot/src/lib/trigger/new-message.tsindex 9b4cc431309..036d70a045a 100644--- a/packages/pieces/community/telegram-bot/src/lib/trigger/new-message.ts+++ b/packages/pieces/community/telegram-bot/src/lib/trigger/new-message.ts@@ -1,7 +1,13 @@-import { createTrigger, Property, TriggerStrategy } from '@activepieces/pieces-framework';+import {+ createTrigger,+ MarkdownVariant,+ Property,+ TriggerStrategy,+} from '@activepieces/pieces-framework';import { telegramCommons } from '../common';import { telegramBotAuth } from '../..';import { httpClient, HttpMethod, HttpRequest } from '@activepieces/pieces-common';+import { randomBytes, timingSafeEqual } from 'crypto';type TelegramUpdate = Record<string, unknown> & { update_id?: number };@@ -22,7 +28,7 @@ const UPDATE_TYPE_OPTIONS = [{ label: 'Edited Message', value: 'edited_message' },{ label: 'Channel Post', value: 'channel_post' },{ label: 'Edited Channel Post', value: 'edited_channel_post' },- { label: 'Callback Query (inline button tap)', value: 'callback_query' },+ { label: 'Inline Button Tap', value: 'callback_query' },{ label: 'Inline Query', value: 'inline_query' },{ label: 'Chosen Inline Result', value: 'chosen_inline_result' },{ label: 'Poll', value: 'poll' },@@ -32,13 +38,16 @@ const UPDATE_TYPE_OPTIONS = [{ label: 'Chat Join Request', value: 'chat_join_request' },];-const updateTypesDescription = 'Which update types this flow should listen for. Leave empty for Telegram\'s default set (does not include callback queries).';+const updateTypesDescription =+ 'Empty receives every update except Chat Member and reactions.';-const triggerNotesDescription = `-Telegram allows only **one webhook per bot token**, so this one trigger covers every update type picked below. Use a Branch step downstream to fork on update kind (e.g. \`message\` vs \`callback_query\`).+const triggerNotesDescription = `**One webhook per bot.** Publishing another flow with this bot token stops this one. Use one flow per bot and branch on the update type.-Same reason **Retest** shows example data instead of a live update once this flow is published, refetching would mean hijacking the bot's active webhook. Test before publishing to capture a real message.-`;+After publishing, Retest shows sample data. Test before publishing to load a real update.`;++const WEBHOOK_SECRET_STORE_KEY = 'telegram_webhook_secret_token';++const TELEGRAM_SECRET_HEADER = 'x-telegram-bot-api-secret-token';const SAMPLE_UPDATE: TelegramUpdate = {update_id: 351114420,@@ -76,6 +85,7 @@ export const telegramNewMessage = createTrigger({props: {trigger_notes: Property.MarkDown({value: triggerNotesDescription,+ variant: MarkdownVariant.WARNING,}),update_types: Property.StaticMultiSelectDropdown({displayName: 'Update Types',@@ -88,15 +98,29 @@ export const telegramNewMessage = createTrigger({sampleData: SAMPLE_UPDATE,async onEnable(context) {const allowedUpdates = (context.propsValue.update_types ?? []) as string[];+ const secretToken = randomBytes(32).toString('hex');+ await context.store.put(WEBHOOK_SECRET_STORE_KEY, secretToken);await telegramCommons.subscribeWebhook(context.auth.secret_text, context.webhookUrl, {allowed_updates: allowedUpdates,drop_pending_updates: true,+ secret_token: secretToken,});},async onDisable(context) {await telegramCommons.unsubscribeWebhook(context.auth.secret_text);+ await context.store.delete(WEBHOOK_SECRET_STORE_KEY);},async run(context) {+ const expectedSecret = await context.store.get<string>(WEBHOOK_SECRET_STORE_KEY);+ if (+ expectedSecret &&+ !secretTokenMatches({+ expected: expectedSecret,+ received: context.payload.headers[TELEGRAM_SECRET_HEADER],+ })+ ) {+ return [];+ }return [context.payload.body];},async test(context) {@@ -118,6 +142,24 @@ const getLastFiveMessages = async (botToken: string) => {return response.body;};+function secretTokenMatches({+ expected,+ received,+}: {+ expected: string;+ received: string | undefined;+}): boolean {+ if (!received) {+ return false;+ }+ const expectedBuffer = Buffer.from(expected);+ const receivedBuffer = Buffer.from(received);+ return (+ expectedBuffer.length === receivedBuffer.length &&+ timingSafeEqual(expectedBuffer, receivedBuffer)+ );+}+const getWebhookInfo = async (botToken: string) => {const request: HttpRequest = {method: HttpMethod.GET,diff --git a/packages/pieces/community/telegram-bot/vitest.config.ts b/packages/pieces/community/telegram-bot/vitest.config.tsnew file mode 100644index 00000000000..1bd3d1e5fe7--- /dev/null+++ b/packages/pieces/community/telegram-bot/vitest.config.ts@@ -0,0 +1,19 @@+import path from 'path'+import { defineConfig } from 'vitest/config'++const repoRoot = path.resolve(__dirname, '../../../..')++export default defineConfig({+ test: {+ globals: true,+ environment: 'node',+ },+ resolve: {+ alias: {+ '@activepieces/pieces-framework': path.resolve(repoRoot, 'packages/pieces/framework/src/index.ts'),+ '@activepieces/pieces-common': path.resolve(repoRoot, 'packages/pieces/common/src/index.ts'),+ '@activepieces/core-piece-types': path.resolve(repoRoot, 'packages/core/piece-types/src/index.ts'),+ '@activepieces/core-utils': path.resolve(repoRoot, 'packages/core/utils/src/index.ts'),+ },+ },+})