PHP Class 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.
Inheritance: extends AbstractInlineQueryResult
Show file Open project: TelegramBot/Api

Protected Properties

Property Type Description
$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

Public Methods

Method Description
__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 )

Method Details

__construct() public method

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 method

public getCaption ( ) : string
return string

getMpeg4Height() public method

public getMpeg4Height ( ) : integer
return integer

getMpeg4Url() public method

public getMpeg4Url ( ) : string
return string

getMpeg4Width() public method

public getMpeg4Width ( ) : integer
return integer

getThumbUrl() public method

public getThumbUrl ( ) : string
return string

setCaption() public method

public setCaption ( string $caption )
$caption string

setMpeg4Height() public method

public setMpeg4Height ( integer $mpeg4Height )
$mpeg4Height integer

setMpeg4Url() public method

public setMpeg4Url ( string $mpeg4Url )
$mpeg4Url string

setMpeg4Width() public method

public setMpeg4Width ( integer $mpeg4Width )
$mpeg4Width integer

setThumbUrl() public method

public setThumbUrl ( string $thumbUrl )
$thumbUrl string

Property Details

$caption protected property

Optional. Caption of the MPEG-4 file to be sent, 0-200 characters
protected string $caption
return string

$map protected static property

protected static array $map
return array

$mpeg4Height protected property

Optional. Video height
protected int $mpeg4Height
return integer

$mpeg4Url protected property

A valid URL for the MP4 file. File size must not exceed 1MB
protected string $mpeg4Url
return string

$mpeg4Width protected property

Optional. Video width
protected int $mpeg4Width
return integer

$requiredParams protected static property

protected static array $requiredParams
return array

$thumbUrl protected property

URL of the static thumbnail (jpeg or gif) for the result
protected string $thumbUrl
return string

$type protected property

protected string $type
return string