Property | Type | Description | |
---|---|---|---|
$caption | string | Optional. Caption of the photo to be sent, 0-200 characters | |
$description | string | Optional. Short description of the result | |
$map | array | ||
$photoHeight | integer | Optional. Height of the photo | |
$photoUrl | string | A valid URL of the photo. Photo size must not exceed 5MB | |
$photoWidth | integer | Optional. Width of the photo | |
$requiredParams | array | ||
$thumbUrl | URL of the thumbnail for the photo | ||
$type | string |
Method | Description | |
---|---|---|
__construct ( string $id, string $photoUrl, string $thumbUrl, integer | null $photoWidth = null, integer | null $photoHeight = null, string | null $title = null, string | null $description = null, string | null $caption = null, TelegramBot\Api\Types\Inline\InputMessageContent | null $inputMessageContent = null, TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null $inlineKeyboardMarkup = null ) | InlineQueryResultPhoto constructor. | |
getCaption ( ) : string | ||
getDescription ( ) : string | ||
getPhotoHeight ( ) : integer | ||
getPhotoUrl ( ) : string | ||
getPhotoWidth ( ) : integer | ||
getThumbUrl ( ) : mixed | ||
setCaption ( string $caption ) | ||
setDescription ( string $description ) | ||
setPhotoHeight ( integer $photoHeight ) | ||
setPhotoUrl ( string $photoUrl ) | ||
setPhotoWidth ( integer $photoWidth ) | ||
setThumbUrl ( mixed $thumbUrl ) |
public __construct ( string $id, string $photoUrl, string $thumbUrl, integer | null $photoWidth = null, integer | null $photoHeight = null, string | null $title = null, string | null $description = null, string | null $caption = null, TelegramBot\Api\Types\Inline\InputMessageContent | null $inputMessageContent = null, TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null $inlineKeyboardMarkup = null ) | ||
$id | string | |
$photoUrl | string | |
$thumbUrl | string | |
$photoWidth | integer | null | |
$photoHeight | integer | null | |
$title | string | null | |
$description | string | null | |
$caption | string | null | |
$inputMessageContent | TelegramBot\Api\Types\Inline\InputMessageContent | null | |
$inlineKeyboardMarkup | TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null |
protected string $description | ||
return | string |
protected int $photoHeight | ||
return | integer |
protected string $photoUrl | ||
return | string |
protected int $photoWidth | ||
return | integer |