?
telegramSendAudio
Send an audio file to a Telegram chat as music or a voice note via a bot.
mindstudio.telegramSendAudio({ botToken, chatId, audioUrl, mode }) → Result
Sends an audio file to a Telegram chat as either music or a voice note, via a bot.
Parameters
botToken
string
RequiredTelegram bot token in "botId:token" format
chatId
string
RequiredTelegram chat ID to send the audio to
audioUrl
string
RequiredURL of the audio file to send
mode
string
RequiredSend as a standard audio track ("audio") or as a voice note ("voice")
audiovoice
caption
string
Optional caption text for the audio
Call from a method
import { mindstudio } from '@mindstudio-ai/agent'; const result = await mindstudio.telegramSendAudio({ botToken: /* ... */, chatId: /* ... */, audioUrl: /* ... */, mode: /* ... */ });