Property | 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 |
Method | 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 ) |
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 |
public setVideoDuration ( integer $videoDuration ) | ||
$videoDuration | integer |
protected string $description | ||
return | string |
protected string $mimeType | ||
return | string |
protected string $thumbUrl | ||
return | string |
protected int $videoDuration | ||
return | integer |
protected string $videoUrl | ||
return | string |