TelegramBot.sendDocument

Send file

  1. Message sendDocument(T chat_id, string document)
    struct TelegramBot
    @trusted
    sendDocument
    (
    T
    )
    (,
    string document
    )
  2. Message sendDocument(SendDocumentMethod m)

Parameters

chat_id T

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

document string

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

Return Value

Type: Message

Sent Message

Throws

TelegramBotException on errors

See Also

Meta