TelegramBot.sendAudio

Send audio

Audio must be in mp3 format

  1. Message sendAudio(T chat_id, string audio)
    struct TelegramBot
    @trusted
    sendAudio
    (
    T
    )
    (,
    string audio
    )
  2. Message sendAudio(SendAudioMethod m)

Parameters

chat_id T

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

audio string

HTTP URL to get audio from the internet or file_id of the file on Telegram

Return Value

Type: Message

Sent Message

Throws

TelegramBotException on errors

See Also

Meta