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 (#16365)
Talal Jaber9ed31e69c8c9
diff --git a/bun.lock b/bun.lockindex 72a459a103b..b9b8c18acce 100644--- a/bun.lock+++ b/bun.lock@@ -9093,7 +9093,7 @@},"packages/pieces/community/telegram-bot": {"name": "@activepieces/piece-telegram-bot",- "version": "0.8.1",+ "version": "0.9.0","dependencies": {"@activepieces/core-piece-types": "workspace:*","@activepieces/core-utils": "workspace:*",diff --git a/packages/pieces/community/telegram-bot/package.json b/packages/pieces/community/telegram-bot/package.jsonindex 4adb67822be..ed7c678e059 100644--- a/packages/pieces/community/telegram-bot/package.json+++ b/packages/pieces/community/telegram-bot/package.json@@ -1,6 +1,6 @@{"name": "@activepieces/piece-telegram-bot",- "version": "0.8.1",+ "version": "0.9.0","main": "./dist/src/index.js","types": "./dist/src/index.d.ts","scripts": {diff --git a/packages/pieces/community/telegram-bot/src/i18n/de.json b/packages/pieces/community/telegram-bot/src/i18n/de.jsonindex 53c2891608d..c84f8a1c241 100644--- a/packages/pieces/community/telegram-bot/src/i18n/de.json+++ b/packages/pieces/community/telegram-bot/src/i18n/de.json@@ -262,5 +262,6 @@"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",+ "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. Wenn beides gesetzt ist, wird der Upload gesendet."}\ 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 cf38f6253f7..c3cc742ca19 100644--- a/packages/pieces/community/telegram-bot/src/i18n/es.json+++ b/packages/pieces/community/telegram-bot/src/i18n/es.json@@ -262,5 +262,6 @@"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",+ "Upload a file or enter a file ID. If both are set, the upload is sent.": "Suba un archivo o introduzca un ID de archivo. Si se indican ambos, se envía el archivo subido."}\ 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 e12f2887f35..b681b7bd83b 100644--- a/packages/pieces/community/telegram-bot/src/i18n/fr.json+++ b/packages/pieces/community/telegram-bot/src/i18n/fr.json@@ -262,5 +262,6 @@"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",+ "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 renseignés, le fichier importé est envoyé."}\ 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 69f45b5e3b6..e96f88010ed 100644--- a/packages/pieces/community/telegram-bot/src/i18n/ja.json+++ b/packages/pieces/community/telegram-bot/src/i18n/ja.json@@ -262,5 +262,6 @@"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",+ "Upload a file or enter a file ID. If both are set, the upload is sent.": "ファイルをアップロードするか、ファイル ID を入力してください。両方を指定した場合は、アップロードしたファイルが送信されます。"}\ 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 0b465a48974..a9c6421fcb3 100644--- a/packages/pieces/community/telegram-bot/src/i18n/nl.json+++ b/packages/pieces/community/telegram-bot/src/i18n/nl.json@@ -262,5 +262,6 @@"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",+ "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 verzonden."}\ 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 3a0dd2ebf88..6148e69fb4b 100644--- a/packages/pieces/community/telegram-bot/src/i18n/pt.json+++ b/packages/pieces/community/telegram-bot/src/i18n/pt.json@@ -262,5 +262,6 @@"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",+ "Upload a file or enter a file ID. If both are set, the upload is sent.": "Envie um arquivo ou insira um ID de arquivo. Se ambos forem preenchidos, o arquivo enviado será usado."}\ No newline at end of filediff --git a/packages/pieces/community/telegram-bot/src/i18n/zh.json b/packages/pieces/community/telegram-bot/src/i18n/zh.jsonindex 005276dbd80..f1566b6c22c 100644--- a/packages/pieces/community/telegram-bot/src/i18n/zh.json+++ b/packages/pieces/community/telegram-bot/src/i18n/zh.json@@ -262,5 +262,6 @@"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",+ "Upload a file or enter a file ID. If both are set, the upload is sent.": "上传文件或输入文件 ID。如果两者都已设置,则发送上传的文件。"}\ No newline at end of filediff --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 93f7312e67b..32e4ad42d19 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@@ -15,6 +15,10 @@ export const telegramRequestApprovalMessageAction = createAction({'Send an approval message to a chat and wait until the message is approved or disapproved',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 },+ propertyGroups: [+ { key: 'send_to', display: 'section', label: 'Send to', icon: 'send', props: ['instructions', 'chat_id'] },+ { key: 'message', display: 'section', label: 'Message', icon: 'text', props: ['parse_mode', 'message', 'instructions_format'] },+ ],props: {instructions: telegramCommons.form.chatIdInstructions(),chat_id: telegramCommons.form.chatIdProp(),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 0654fd1dd78..0f624730352 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@@ -2,6 +2,7 @@ import {ApFile,createAction,DynamicPropsValue,+ MarkdownVariant,Property,} from '@activepieces/pieces-framework';import {@@ -25,7 +26,7 @@ export const telegramSendMediaAction = createAction({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: 'media_card', display: 'section', label: 'Media', icon: 'file', props: ['media_type', 'file_info', 'media'] },{ key: 'caption', display: 'section', label: 'Caption', icon: 'text', props: ['format', 'message', 'instructions_format'] },],props: {@@ -46,6 +47,10 @@ export const telegramSendMediaAction = createAction({],},}),+ file_info: Property.MarkDown({+ value: 'Upload a file or enter a file ID. If both are set, the upload is sent.',+ variant: MarkdownVariant.INFO,+ }),media: Property.DynamicProperties({auth: telegramBotAuth,displayName: 'File',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 45589204a84..0b80495ec3b 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@@ -55,8 +55,8 @@ export const telegramSendPollAction = createAction({display: 'cards',options: {options: [- { label: 'Regular', value: 'regular' },- { label: 'Quiz', value: 'quiz' },+ { label: 'Regular', value: 'regular', icon: 'users' },+ { label: 'Quiz', value: 'quiz', icon: 'tag' },],},defaultValue: 'regular',