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

Protected Properties

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

Méthodes publiques

Méthode Description
__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 )

Method Details

__construct() public méthode

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

public getCaption ( ) : string
Résultat string

getGifHeight() public méthode

public getGifHeight ( ) : integer
Résultat integer

getGifUrl() public méthode

public getGifUrl ( ) : string
Résultat string

getGifWidth() public méthode

public getGifWidth ( ) : integer
Résultat integer

getThumbUrl() public méthode

public getThumbUrl ( ) : string
Résultat string

setCaption() public méthode

public setCaption ( string $caption )
$caption string

setGifHeight() public méthode

public setGifHeight ( integer $gifHeight )
$gifHeight integer

setGifUrl() public méthode

public setGifUrl ( string $gifUrl )
$gifUrl string

setGifWidth() public méthode

public setGifWidth ( integer $gifWidth )
$gifWidth integer

setThumbUrl() public méthode

public setThumbUrl ( string $thumbUrl )
$thumbUrl string

Property Details

$caption protected_oe property

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

$gifHeight protected_oe property

Optional. Height of the GIF
protected int $gifHeight
Résultat integer

$gifUrl protected_oe property

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

$gifWidth protected_oe property

Optional. Width of the GIF
protected int $gifWidth
Résultat integer

$map protected_oe static_oe property

protected static array $map
Résultat array

$requiredParams protected_oe static_oe property

protected static array $requiredParams
Résultat array

$thumbUrl protected_oe property

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

$type protected_oe property

protected string $type
Résultat string