TelegramBot.sendVoice

Send voice message

Voice message must be in ogg format encoded with OPUS

  1. Message sendVoice(T chat_id, string voice)
    struct TelegramBot
    @trusted
    sendVoice
    (
    T
    )
    (,
    string voice
    )
  2. Message sendVoice(SendVoiceMethod m)

Parameters

chat_id T

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

voice 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