PHP Класс TelegramBot\Api\Types\Inline\QueryResult\Gif

By default, this animated GIF file will be sent by the user with optional caption. Alternatively, you can provide InputMessageContent to send it instead of the animation.
Наследование: extends AbstractInlineQueryResult
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$caption string Optional. Caption of the GIF file to be sent, 0-200 characters
$gifHeight integer Optional. Height of the GIF
$gifUrl string A valid URL for the GIF file. File size must not exceed 1MB
$gifWidth integer Optional. Width of the GIF
$map array
$requiredParams array
$thumbUrl string URL of the static thumbnail for the result (jpeg or gif)
$type string

Открытые методы

Метод Описание
__construct ( string $id, string $gifUrl, string $thumbUrl = null, string | null $title = null, string | null $caption = null, integer | null $gifWidth = null, integer | null $gifHeight = null, TelegramBot\Api\Types\Inline\InputMessageContent $inputMessageContent = null, TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null $inlineKeyboardMarkup = null ) InlineQueryResultGif constructor.
getCaption ( ) : string
getGifHeight ( ) : integer
getGifUrl ( ) : string
getGifWidth ( ) : integer
getThumbUrl ( ) : string
setCaption ( string $caption )
setGifHeight ( integer $gifHeight )
setGifUrl ( string $gifUrl )
setGifWidth ( integer $gifWidth )
setThumbUrl ( string $thumbUrl )

Описание методов

__construct() публичный Метод

InlineQueryResultGif constructor.
public __construct ( string $id, string $gifUrl, string $thumbUrl = null, string | null $title = null, string | null $caption = null, integer | null $gifWidth = null, integer | null $gifHeight = null, TelegramBot\Api\Types\Inline\InputMessageContent $inputMessageContent = null, TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null $inlineKeyboardMarkup = null )
$id string
$gifUrl string
$thumbUrl string
$title string | null
$caption string | null
$gifWidth integer | null
$gifHeight integer | null
$inputMessageContent TelegramBot\Api\Types\Inline\InputMessageContent
$inlineKeyboardMarkup TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null

getCaption() публичный Метод

public getCaption ( ) : string
Результат string

getGifHeight() публичный Метод

public getGifHeight ( ) : integer
Результат integer

getGifUrl() публичный Метод

public getGifUrl ( ) : string
Результат string

getGifWidth() публичный Метод

public getGifWidth ( ) : integer
Результат integer

getThumbUrl() публичный Метод

public getThumbUrl ( ) : string
Результат string

setCaption() публичный Метод

public setCaption ( string $caption )
$caption string

setGifHeight() публичный Метод

public setGifHeight ( integer $gifHeight )
$gifHeight integer

setGifUrl() публичный Метод

public setGifUrl ( string $gifUrl )
$gifUrl string

setGifWidth() публичный Метод

public setGifWidth ( integer $gifWidth )
$gifWidth integer

setThumbUrl() публичный Метод

public setThumbUrl ( string $thumbUrl )
$thumbUrl string

Описание свойств

$caption защищенное свойство

Optional. Caption of the GIF file to be sent, 0-200 characters
protected string $caption
Результат string

$gifHeight защищенное свойство

Optional. Height of the GIF
protected int $gifHeight
Результат integer

$gifUrl защищенное свойство

A valid URL for the GIF file. File size must not exceed 1MB
protected string $gifUrl
Результат string

$gifWidth защищенное свойство

Optional. Width of the GIF
protected int $gifWidth
Результат integer

$map защищенное статическое свойство

protected static array $map
Результат array

$requiredParams защищенное статическое свойство

protected static array $requiredParams
Результат array

$thumbUrl защищенное свойство

URL of the static thumbnail for the result (jpeg or gif)
protected string $thumbUrl
Результат string

$type защищенное свойство

protected string $type
Результат string