?
telegramSendFile
Send a document/file to a Telegram chat via a bot.
mindstudio.telegramSendFile({ botToken, chatId, fileUrl }) → Result
Sends a document or file to a Telegram chat via a bot.
Parameters
botToken
string
RequiredTelegram bot token in "botId:token" format
chatId
string
RequiredTelegram chat ID to send the file to
fileUrl
string
RequiredURL of the document/file to send
caption
string
Optional caption text for the file
Call from a method
import { mindstudio } from '@mindstudio-ai/agent'; const result = await mindstudio.telegramSendFile({ botToken: /* ... */, chatId: /* ... */, fileUrl: /* ... */ });