Documentation

InlineQueryResultMpeg4Gif extends InlineEntity
in package
implements InlineQueryResult

Class InlineQueryResultMpeg4Gif

Tags
link
$data = [ 'id' => '', 'mpeg4_url' => '', 'mpeg4_width' => 30, 'mpeg4_height' => 30, 'thumb_url' => '', 'title' => '', 'caption' => '', 'reply_markup' => , 'input_message_content' => , ];

Interfaces, Classes and Traits

InlineQueryResult

Table of Contents

__call()  : mixed|null
Return the variable for the called getter or magically set properties dynamically.
__construct()  : mixed
InlineQueryResultMpeg4Gif constructor
__toString()  : string
Perform to string
escapeMarkdown()  : string
Escape markdown special characters
getBotUsername()  :
getCaption()  :
getId()  :
getInputMessageContent()  :
getMpeg4Duration()  :
getMpeg4Height()  :
getMpeg4Url()  :
getMpeg4Width()  :
getProperty()  : mixed
Get a property from the current Entity
getRawData()  :
getReplyMarkup()  :
getThumbUrl()  :
getTitle()  :
getType()  :
setCaption()  :
setId()  :
setInputMessageContent()  :
setMpeg4Duration()  :
setMpeg4Height()  :
setMpeg4Url()  :
setMpeg4Width()  :
setReplyMarkup()  :
setThumbUrl()  :
setTitle()  :
toJson()  : string
Perform to json
tryMention()  : string|null
Try to mention the user
assignMemberVariables()  : mixed
Helper to set member variables
makePrettyObjectArray()  : array<string|int, mixed>
Return an array of nice objects from an array of object arrays
subEntities()  : array<string|int, mixed>
Get the list of the properties that are themselves Entities
validate()  : mixed
Perform any special entity validation

Methods

__call()

Return the variable for the called getter or magically set properties dynamically.

public __call( $method,  $args) : mixed|null
Parameters
$method :
$args :
Return values
mixed|null

__construct()

InlineQueryResultMpeg4Gif constructor

public __construct([array<string|int, mixed> $data = [] ]) : mixed
Parameters
$data : array<string|int, mixed> = []
Tags
throws
TelegramException
Return values
mixed

__toString()

Perform to string

public __toString() : string
Return values
string

escapeMarkdown()

Escape markdown special characters

public escapeMarkdown(string $string) : string
Parameters
$string : string
Return values
string

getBotUsername()

public getBotUsername() :

Return the bot name passed to this entity

Return values

getCaption()

public getCaption() :

Optional. Caption of the MPEG-4 file to be sent, 0-200 characters

Return values

getInputMessageContent()

public getInputMessageContent() :

Optional. Content of the message to be sent instead of the video animation

Return values

getMpeg4Url()

public getMpeg4Url() :

A valid URL for the MP4 file. File size must not exceed 1MB

Return values

getProperty()

Get a property from the current Entity

public getProperty(mixed $property[, mixed $default = null ]) : mixed
Parameters
$property : mixed
$default : mixed = null
Return values
mixed

getRawData()

public getRawData() :

Get the raw data passed to this entity

Return values

getReplyMarkup()

public getReplyMarkup() :

Optional. Inline keyboard attached to the message

Return values

getThumbUrl()

public getThumbUrl() :

URL of the static thumbnail (jpeg or gif) for the result

Return values

setCaption()

public setCaption(string $caption) :

Optional. Caption of the MPEG-4 file to be sent, 0-200 characters

Parameters
$caption : string
Return values

setId()

public setId(string $id) :

Unique identifier for this result, 1-64 bytes

Parameters
$id : string
Return values

setMpeg4Duration()

public setMpeg4Duration(int $mpeg4_duration) :

Optional. Video duration

Parameters
$mpeg4_duration : int
Return values

setMpeg4Height()

public setMpeg4Height(int $mpeg4_height) :

Optional. Video height

Parameters
$mpeg4_height : int
Return values

setMpeg4Url()

public setMpeg4Url(string $mpeg4_url) :

A valid URL for the MP4 file. File size must not exceed 1MB

Parameters
$mpeg4_url : string
Return values

setMpeg4Width()

public setMpeg4Width(int $mpeg4_width) :

Optional. Video width

Parameters
$mpeg4_width : int
Return values

setThumbUrl()

public setThumbUrl(string $thumb_url) :

URL of the static thumbnail (jpeg or gif) for the result

Parameters
$thumb_url : string
Return values

setTitle()

public setTitle(string $title) :

Optional. Title for the result

Parameters
$title : string
Return values

toJson()

Perform to json

public toJson() : string
Return values
string

tryMention()

Try to mention the user

public tryMention([bool $escape_markdown = false ]) : string|null

Mention the user with the username otherwise print first and last name if the $escape_markdown argument is true special characters are escaped from the output

Parameters
$escape_markdown : bool = false
Return values
string|null

assignMemberVariables()

Helper to set member variables

protected assignMemberVariables(array<string|int, mixed> $data) : mixed
Parameters
$data : array<string|int, mixed>
Return values
mixed

makePrettyObjectArray()

Return an array of nice objects from an array of object arrays

protected makePrettyObjectArray(string $class, string $property) : array<string|int, mixed>

This method is used to generate pretty object arrays mainly for PhotoSize and Entities object arrays.

Parameters
$class : string
$property : string
Return values
array<string|int, mixed>

subEntities()

Get the list of the properties that are themselves Entities

protected subEntities() : array<string|int, mixed>
Return values
array<string|int, mixed>

validate()

Perform any special entity validation

protected validate() : mixed
Tags
throws
TelegramException
Return values
mixed

Search results