PHP Class TelegramBot\Api\Types\Inline\QueryResult\Video

Inheritance: extends AbstractInlineQueryResult
Afficher le fichier Open project: TelegramBot/Api

Protected Properties

Свойство Type Description
$caption string Optional. Short description of the result
$description string Optional. Short description of the result
$map array
$mimeType string Mime type of the content of video url, “text/html” or “video/mp4”
$requiredParams array
$thumbUrl string URL of the thumbnail (jpeg only) for the video
$type string
$videoDuration integer Optional. Video duration in seconds
$videoHeight integer Optional. Video height
$videoUrl string A valid URL for the embedded video player or video file
$videoWidth integer Optional. Video width

Méthodes publiques

Méthode Description
__construct ( string $id, string $videoUrl, string $thumbUrl, string $mimeType, string $title, string | null $caption = null, string | null $description = null, integer | null $videoWidth = null, integer | null $videoHeight = null, integer | null $videoDuration = null, TelegramBot\Api\Types\Inline\InputMessageContent | null $inputMessageContent = null, TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null $inlineKeyboardMarkup = null ) Video constructor
getCaption ( ) : string
getDescription ( ) : string
getMimeType ( ) : string
getThumbUrl ( ) : mixed
getVideoDuration ( ) : integer
getVideoHeight ( ) : integer
getVideoUrl ( ) : string
getVideoWidth ( ) : integer
setCaption ( string $caption )
setDescription ( string $description )
setMimeType ( string $mimeType )
setThumbUrl ( mixed $thumbUrl )
setVideoDuration ( integer $videoDuration )
setVideoHeight ( integer $videoHeight )
setVideoUrl ( string $videoUrl )
setVideoWidth ( integer $videoWidth )

Method Details

__construct() public méthode

Video constructor
public __construct ( string $id, string $videoUrl, string $thumbUrl, string $mimeType, string $title, string | null $caption = null, string | null $description = null, integer | null $videoWidth = null, integer | null $videoHeight = null, integer | null $videoDuration = null, TelegramBot\Api\Types\Inline\InputMessageContent | null $inputMessageContent = null, TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null $inlineKeyboardMarkup = null )
$id string
$videoUrl string
$thumbUrl string
$mimeType string
$title string
$caption string | null
$description string | null
$videoWidth integer | null
$videoHeight integer | null
$videoDuration integer | null
$inputMessageContent TelegramBot\Api\Types\Inline\InputMessageContent | null
$inlineKeyboardMarkup TelegramBot\Api\Types\Inline\InlineKeyboardMarkup | null

getCaption() public méthode

public getCaption ( ) : string
Résultat string

getDescription() public méthode

public getDescription ( ) : string
Résultat string

getMimeType() public méthode

public getMimeType ( ) : string
Résultat string

getThumbUrl() public méthode

public getThumbUrl ( ) : mixed
Résultat mixed

getVideoDuration() public méthode

public getVideoDuration ( ) : integer
Résultat integer

getVideoHeight() public méthode

public getVideoHeight ( ) : integer
Résultat integer

getVideoUrl() public méthode

public getVideoUrl ( ) : string
Résultat string

getVideoWidth() public méthode

public getVideoWidth ( ) : integer
Résultat integer

setCaption() public méthode

public setCaption ( string $caption )
$caption string

setDescription() public méthode

public setDescription ( string $description )
$description string

setMimeType() public méthode

public setMimeType ( string $mimeType )
$mimeType string

setThumbUrl() public méthode

public setThumbUrl ( mixed $thumbUrl )
$thumbUrl mixed

setVideoDuration() public méthode

public setVideoDuration ( integer $videoDuration )
$videoDuration integer

setVideoHeight() public méthode

public setVideoHeight ( integer $videoHeight )
$videoHeight integer

setVideoUrl() public méthode

public setVideoUrl ( string $videoUrl )
$videoUrl string

setVideoWidth() public méthode

public setVideoWidth ( integer $videoWidth )
$videoWidth integer

Property Details

$caption protected_oe property

Optional. Short description of the result
protected string $caption
Résultat string

$description protected_oe property

Optional. Short description of the result
protected string $description
Résultat string

$map protected_oe static_oe property

protected static array $map
Résultat array

$mimeType protected_oe property

Mime type of the content of video url, “text/html” or “video/mp4”
protected string $mimeType
Résultat string

$requiredParams protected_oe static_oe property

protected static array $requiredParams
Résultat array

$thumbUrl protected_oe property

URL of the thumbnail (jpeg only) for the video
protected string $thumbUrl
Résultat string

$type protected_oe property

protected string $type
Résultat string

$videoDuration protected_oe property

Optional. Video duration in seconds
protected int $videoDuration
Résultat integer

$videoHeight protected_oe property

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

$videoUrl protected_oe property

A valid URL for the embedded video player or video file
protected string $videoUrl
Résultat string

$videoWidth protected_oe property

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