TelegramBot.sendPhoto

Send photo

  1. Message sendPhoto(T chat_id, string photo)
    struct TelegramBot
    @trusted
    sendPhoto
    (
    T
    )
    (,
    string photo
    )
  2. Message sendPhoto(SendPhotoMethod m)

Parameters

chat_id T

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

photo string

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

Return Value

Type: Message

Sent Message

Throws

TelegramBotException on errors

See Also

Meta