Class SendPhotoMethod.

see
package Default

 Methods

create()

create(integer|string $chatId, \TgBotApi\BotApiBase\Type\InputFileType|string $photo, array $data = null
Static

Parameters

$chatId

integerstring

$photo

\TgBotApi\BotApiBase\Type\InputFileTypestring

$data

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

fill()

fill(array $data, array $forbidden = array()
Inherited

Parameters

$data

array

$forbidden

array

Exceptions

\TgBotApi\BotApiBase\Exception\BadArgumentException

 Properties

 

Optional. Pass True, if the message should be sent even if the specified replied-to message is not found.

$allowSendingWithoutReply : boolean | null

Default

 

Optional. Media caption (may also be used when resending photos by file_id), 0-1024 characters\.

$caption : string | null

Default

 

Optional. List of special entities that appear in the caption, which can be specified instead of parse_mode.

$captionEntities : array<mixed,\TgBotApi\BotApiBase\Type\MessageEntityType> | null

Default

 

Optional. Sends the message silently. Users will receive a notification with no sound.

$disableNotification : boolean | null

Default

 

Optional. Send Markdown or HTML, if you want Telegram apps to show bold, italic, fixed-width text or inline URLs in the media caption.

$parseMode : string | null

Default

 

Photo to send. Pass a file_id as String to send a photo that exists on the Telegram servers (recommended), pass an HTTP URL as a String for Telegram to get a photo from the Internet, or upload a new photo using multipart/form-data.

$photo : \TgBotApi\BotApiBase\Type\InputFileType | string

Default

 

Optional. Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.

$replyMarkup : \TgBotApi\BotApiBase\Type\InlineKeyboardMarkupType | \TgBotApi\BotApiBase\Type\ReplyKeyboardMarkupType | \TgBotApi\BotApiBase\Type\ReplyKeyboardRemoveType | \TgBotApi\BotApiBase\Type\ForceReplyType | null

Default

 

Optional. If the message is a reply, ID of the original message.

$replyToMessageId : integer | null

Default