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

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

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

Свойство Тип Описание
$caption string Optional. Caption of the MPEG-4 file to be sent, 0-200 characters
$map array
$mpeg4Height integer Optional. Video height
$mpeg4Url string A valid URL for the MP4 file. File size must not exceed 1MB
$mpeg4Width integer Optional. Video width
$requiredParams array
$thumbUrl string URL of the static thumbnail (jpeg or gif) for the result
$type string

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

Метод Описание
__construct ( string $id, string $mpeg4Url, string $thumbUrl, string | null $title = null, string | null $caption = null, integer | null $mpeg4Width = null, integer | null $mpeg4Height = null, TelegramBot\Api\Types\Inline\InputMessageContent $inputMessageContent = null, TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null $inlineKeyboardMarkup = null ) InlineQueryResultMpeg4Gif constructor.
getCaption ( ) : string
getMpeg4Height ( ) : integer
getMpeg4Url ( ) : string
getMpeg4Width ( ) : integer
getThumbUrl ( ) : string
setCaption ( string $caption )
setMpeg4Height ( integer $mpeg4Height )
setMpeg4Url ( string $mpeg4Url )
setMpeg4Width ( integer $mpeg4Width )
setThumbUrl ( string $thumbUrl )

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

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

InlineQueryResultMpeg4Gif constructor.
public __construct ( string $id, string $mpeg4Url, string $thumbUrl, string | null $title = null, string | null $caption = null, integer | null $mpeg4Width = null, integer | null $mpeg4Height = null, TelegramBot\Api\Types\Inline\InputMessageContent $inputMessageContent = null, TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null $inlineKeyboardMarkup = null )
$id string
$mpeg4Url string
$thumbUrl string
$title string | null
$caption string | null
$mpeg4Width integer | null
$mpeg4Height integer | null
$inputMessageContent TelegramBot\Api\Types\Inline\InputMessageContent
$inlineKeyboardMarkup TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null

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

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

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

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

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

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

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

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

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

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

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

public setCaption ( string $caption )
$caption string

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

public setMpeg4Height ( integer $mpeg4Height )
$mpeg4Height integer

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

public setMpeg4Url ( string $mpeg4Url )
$mpeg4Url string

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

public setMpeg4Width ( integer $mpeg4Width )
$mpeg4Width integer

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

public setThumbUrl ( string $thumbUrl )
$thumbUrl string

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

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

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

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

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

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

Optional. Video height
protected int $mpeg4Height
Результат integer

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

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

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

Optional. Video width
protected int $mpeg4Width
Результат integer

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

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

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

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

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

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