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
Afficher le fichier Open project: TelegramBot/Api

Protected Properties

Свойство 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

Méthodes publiques

Méthode 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 méthode

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 méthode

public getCaption ( ) : string
Résultat string

getMpeg4Height() public méthode

public getMpeg4Height ( ) : integer
Résultat integer

getMpeg4Url() public méthode

public getMpeg4Url ( ) : string
Résultat string

getMpeg4Width() public méthode

public getMpeg4Width ( ) : integer
Résultat integer

getThumbUrl() public méthode

public getThumbUrl ( ) : string
Résultat string

setCaption() public méthode

public setCaption ( string $caption )
$caption string

setMpeg4Height() public méthode

public setMpeg4Height ( integer $mpeg4Height )
$mpeg4Height integer

setMpeg4Url() public méthode

public setMpeg4Url ( string $mpeg4Url )
$mpeg4Url string

setMpeg4Width() public méthode

public setMpeg4Width ( integer $mpeg4Width )
$mpeg4Width integer

setThumbUrl() public méthode

public setThumbUrl ( string $thumbUrl )
$thumbUrl string

Property Details

$caption protected_oe property

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

$map protected_oe static_oe property

protected static array $map
Résultat array

$mpeg4Height protected_oe property

Optional. Video height
protected int $mpeg4Height
Résultat integer

$mpeg4Url protected_oe property

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

$mpeg4Width protected_oe property

Optional. Video width
protected int $mpeg4Width
Résultat integer

$requiredParams protected_oe static_oe property

protected static array $requiredParams
Résultat array

$thumbUrl protected_oe property

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

$type protected_oe property

protected string $type
Résultat string