AACFlow

Telegram

Работайте с Telegram

Telegram — безопасная облачная мессенджер-платформа для быстрой и надёжной коммуникации на любых устройствах. Благодаря мощному Bot API Telegram предоставляет надёжный фундамент для автоматических сообщений и интеграций.

Интеграция Telegram в AACFlow позволяет:

  • Отправка сообщений: отправляйте текстовые сообщения в чаты, группы или каналы Telegram
  • Удаление сообщений: удаляйте ранее отправленные сообщения из чата
  • Отправка фото: отправляйте изображения с необязательной подписью
  • Отправка видео: отправляйте видеофайлы с необязательной подписью
  • Отправка аудио: отправляйте аудиофайлы с необязательной подписью
  • Отправка анимаций: отправляйте GIF-анимации с необязательной подписью
  • Отправка документов: отправляйте файлы любого типа с необязательной подписью

Интеграция Telegram в AACFlow позволяет вашим AI-агентам отправлять сообщения и медиа в чаты Telegram в рамках автоматизированных воркфлоу. Это идеально для автоматических уведомлений, алертов, распространения контента и интерактивных бот-сценариев.

Узнайте, как создать вебхук-триггер в AACFlow, который бесшовно запускает воркфлоу по сообщениям из Telegram. В этом уроке показано, как настроить вебхук, сконфигурировать его с Bot API Telegram и запускать автоматические действия в реальном времени.

Узнайте, как использовать инструмент Telegram в AACFlow, чтобы бесшовно автоматизировать доставку сообщений в любую группу Telegram. В этом уроке показано, как встроить инструмент в воркфлоу, настроить отправку в группу и запускать автоматические обновления в реальном времени.

Инструкции по использованию

Интегрируйте Telegram в рабочий процесс. Может send и delete messages. Can be used in trigger mode to trigger a workflow when a message — это sent to a chat.

Инструменты

telegram_message

Отправить messages to Telegram channels или users through the Telegram Bot API. Enables direct communication и notifications с message tracking и chat confirmation.

Входные параметры

ПараметрТипОбязательныйОписание
botTokenstringДаYour Telegram Bot API Token
chatIdstringДаTelegram chat ID (numeric, can be negative for groups)
textstringДаMessage text to send

Выходные данные

ПараметрТипОписание
messagestringSuccess or error message
dataobjectTelegram message data
message_idnumberUnique Telegram message identifier
fromobjectChat information
idnumberChat ID
is_botbooleanПроизошла ли chat is a bot or not
first_namestringChat username (if available)
usernamestringChat title (for groups and channels)
chatobjectInformation about the bot that sent the message
idnumberBot user ID
first_namestringBot first name
usernamestringBot username
typestringchat type private or channel
datenumberUnix timestamp when message was sent
textstringText content of the sent message

telegram_delete_message

Удалить messages in Telegram channels или chats through the Telegram Bot API. Требуется the message ID of the message to delete.

Входные параметры

ПараметрТипОбязательныйОписание
botTokenstringДаYour Telegram Bot API Token
chatIdstringДаTelegram chat ID (numeric, can be negative for groups)
messageIdstringДаTelegram message ID (numeric identifier of the message to delete)

Выходные данные

ПараметрТипОписание
messagestringSuccess or error message
dataobjectDelete operation result
okbooleanAPI response success status
deletedbooleanПроизошла ли message was successfully deleted

telegram_send_photo

Отправить photos to Telegram channels или users through the Telegram Bot API.

Входные параметры

ПараметрТипОбязательныйОписание
botTokenstringДаYour Telegram Bot API Token
chatIdstringДаTelegram chat ID (numeric, can be negative for groups)
photostringДаPhoto to send. Pass a file_id or HTTP URL
captionstringНетPhoto caption (optional)

Выходные данные

ПараметрТипОписание
messagestringSuccess or error message
dataobjectTelegram message data including optional photo(s)
message_idnumberUnique Telegram message identifier
fromobjectChat information
idnumberChat ID
is_botbooleanПроизошла ли chat is a bot or not
first_namestringChat username (if available)
usernamestringChat title (for groups and channels)
chatobjectInformation about the bot that sent the message
idnumberBot user ID
first_namestringBot first name
usernamestringBot username
typestringChat type (private, group, supergroup, channel)
datenumberUnix timestamp when message was sent
textstringText content of the sent message (if applicable)
photoarrayList of photos included in the message
file_idstringUnique file ID of the photo
file_unique_idstringUnique identifier for this file across different bots
file_sizenumberSize of the photo file in bytes
widthnumberPhoto width in pixels
heightnumberPhoto height in pixels

telegram_send_video

Отправить videos to Telegram channels или users through the Telegram Bot API.

Входные параметры

ПараметрТипОбязательныйОписание
botTokenstringДаYour Telegram Bot API Token
chatIdstringДаTelegram chat ID (numeric, can be negative for groups)
videostringДаVideo to send. Pass a file_id or HTTP URL
captionstringНетVideo caption (optional)

Выходные данные

ПараметрТипОписание
messagestringSuccess or error message
dataobjectTelegram message data including optional media
message_idnumberUnique Telegram message identifier
fromobjectInformation about the sender
idnumberSender ID
is_botbooleanПроизошла ли chat is a bot or not
first_namestringSender's first name (if available)
usernamestringSender's username (if available)
chatobjectInformation about the chat where message was sent
idnumberChat ID
first_namestringChat first name (if private chat)
usernamestringChat username (for private or channels)
typestringType of chat (private, group, supergroup, or channel)
datenumberUnix timestamp when the message was sent
textstringText content of the sent message (if applicable)
formatobjectMedia format information (for videos, GIFs, etc.)
file_namestringMedia file name
mime_typestringMedia MIME type
durationnumberDuration of media in seconds
widthnumberMedia width in pixels
heightnumberMedia height in pixels
thumbnailobjectThumbnail image details
file_idstringThumbnail file ID
file_unique_idstringUnique thumbnail file identifier
file_sizenumberThumbnail file size in bytes
widthnumberThumbnail width in pixels
heightnumberThumbnail height in pixels
thumbobjectSecondary thumbnail details (duplicate of thumbnail)
file_idstringThumbnail file ID
file_unique_idstringUnique thumbnail file identifier
file_sizenumberThumbnail file size in bytes
widthnumberThumbnail width in pixels
heightnumberThumbnail height in pixels
file_idstringMedia file ID
file_unique_idstringUnique media file identifier
file_sizenumberSize of media file in bytes
documentobjectDocument file details if the message contains a document
file_namestringDocument file name
mime_typestringDocument MIME type
thumbnailobjectDocument thumbnail information
file_idstringThumbnail file ID
file_unique_idstringUnique thumbnail file identifier
file_sizenumberThumbnail file size in bytes
widthnumberThumbnail width in pixels
heightnumberThumbnail height in pixels
thumbobjectDuplicate thumbnail info (used for compatibility)
file_idstringThumbnail file ID
file_unique_idstringUnique thumbnail file identifier
file_sizenumberThumbnail file size in bytes
widthnumberThumbnail width in pixels
heightnumberThumbnail height in pixels
file_idstringDocument file ID
file_unique_idstringUnique document file identifier
file_sizenumberSize of document file in bytes

telegram_send_audio

Отправить audio files to Telegram channels или users through the Telegram Bot API.

Входные параметры

ПараметрТипОбязательныйОписание
botTokenstringДаYour Telegram Bot API Token
chatIdstringДаTelegram chat ID (numeric, can be negative for groups)
audiostringДаAudio file to send. Pass a file_id or HTTP URL
captionstringНетAudio caption (optional)

Выходные данные

ПараметрТипОписание
messagestringSuccess or error message
dataobjectTelegram message data including voice/audio information
message_idnumberUnique Telegram message identifier
fromobjectInformation about the sender
idnumberSender ID
is_botbooleanПроизошла ли chat is a bot or not
first_namestringSender's first name (if available)
usernamestringSender's username (if available)
chatobjectInformation about the chat where the message was sent
idnumberChat ID
first_namestringChat first name (if private chat)
usernamestringChat username (for private or channels)
typestringType of chat (private, group, supergroup, or channel)
datenumberUnix timestamp when the message was sent
textstringText content of the sent message (if applicable)
audioobjectAudio file details
durationnumberDuration of the audio in seconds
performerstringPerformer of the audio
titlestringTitle of the audio
file_namestringOriginal filename of the audio
mime_typestringMIME type of the audio file
file_idstringUnique file identifier for this audio
file_unique_idstringUnique identifier across different bots for this file
file_sizenumberSize of the audio file in bytes

telegram_send_animation

Отправить animations (GIFs) to Telegram channels или users through the Telegram Bot API.

Входные параметры

ПараметрТипОбязательныйОписание
botTokenstringДаYour Telegram Bot API Token
chatIdstringДаTelegram chat ID (numeric, can be negative for groups)
animationstringДаAnimation to send. Pass a file_id or HTTP URL
captionstringНетAnimation caption (optional)

Выходные данные

ПараметрТипОписание
messagestringSuccess or error message
dataobjectTelegram message data including optional media
message_idnumberUnique Telegram message identifier
fromobjectInformation about the sender
idnumberSender ID
is_botbooleanПроизошла ли chat is a bot or not
first_namestringSender's first name (if available)
usernamestringSender's username (if available)
chatobjectInformation about the chat where message was sent
idnumberChat ID
first_namestringChat first name (if private chat)
usernamestringChat username (for private or channels)
typestringType of chat (private, group, supergroup, or channel)
datenumberUnix timestamp when the message was sent
textstringText content of the sent message (if applicable)
formatobjectMedia format information (for videos, GIFs, etc.)
file_namestringMedia file name
mime_typestringMedia MIME type
durationnumberDuration of media in seconds
widthnumberMedia width in pixels
heightnumberMedia height in pixels
thumbnailobjectThumbnail image details
file_idstringThumbnail file ID
file_unique_idstringUnique thumbnail file identifier
file_sizenumberThumbnail file size in bytes
widthnumberThumbnail width in pixels
heightnumberThumbnail height in pixels
thumbobjectSecondary thumbnail details (duplicate of thumbnail)
file_idstringThumbnail file ID
file_unique_idstringUnique thumbnail file identifier
file_sizenumberThumbnail file size in bytes
widthnumberThumbnail width in pixels
heightnumberThumbnail height in pixels
file_idstringMedia file ID
file_unique_idstringUnique media file identifier
file_sizenumberSize of media file in bytes
documentobjectDocument file details if the message contains a document
file_namestringDocument file name
mime_typestringDocument MIME type
thumbnailobjectDocument thumbnail information
file_idstringThumbnail file ID
file_unique_idstringUnique thumbnail file identifier
file_sizenumberThumbnail file size in bytes
widthnumberThumbnail width in pixels
heightnumberThumbnail height in pixels
thumbobjectDuplicate thumbnail info (used for compatibility)
file_idstringThumbnail file ID
file_unique_idstringUnique thumbnail file identifier
file_sizenumberThumbnail file size in bytes
widthnumberThumbnail width in pixels
heightnumberThumbnail height in pixels
file_idstringDocument file ID
file_unique_idstringUnique document file identifier
file_sizenumberSize of document file in bytes

telegram_send_document

Отправить documents (PDF, ZIP, DOC, etc.) to Telegram channels или users through the Telegram Bot API.

Входные параметры

ПараметрТипОбязательныйОписание
botTokenstringДаYour Telegram Bot API Token
chatIdstringДаTelegram chat ID (numeric, can be negative for groups)
filesfile[]НетDocument file to send (PDF, ZIP, DOC, etc.). Max size: 50MB
captionstringНетDocument caption (optional)

Выходные данные

ПараметрТипОписание
messagestringSuccess or error message
filesfile[]Files attached to the message
dataobjectTelegram message data including document
message_idnumberUnique Telegram message identifier
fromobjectInformation about the sender
idnumberSender ID
is_botbooleanПроизошла ли chat is a bot or not
first_namestringSender's first name (if available)
usernamestringSender's username (if available)
chatobjectInformation about the chat where message was sent
idnumberChat ID
first_namestringChat first name (if private chat)
usernamestringChat username (for private or channels)
typestringType of chat (private, group, supergroup, or channel)
datenumberUnix timestamp when the message was sent
documentobjectDocument file details
file_namestringDocument file name
mime_typestringDocument MIME type
file_idstringDocument file ID
file_unique_idstringUnique document file identifier
file_sizenumberSize of document file in bytes

On this page

Начните создавать сегодня
Нам доверяют более 100 000 разработчиков.
SaaS-платформа для создания AI-агентов и управления агентным workforce.
Начать