PHP Класс TelegramBot\Api\Types\MessageEntity

Наследование: extends TelegramBot\Api\BaseType, implements TelegramBot\Api\TypeInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$length integer Length of the entity in UTF-16 code units
$map array
$offset integer Offset in UTF-16 code units to the start of the entity
$requiredParams array
$type string One of mention (@username), hashtag, bot_command, url, email, bold (bold text), italic (italic text), code (monowidth string),pre (monowidth block), text_link (for clickable text URLs)
$url string Optional. For “text_link” only, url that will be opened after user taps on the text

Открытые методы

Метод Описание
getLength ( ) : integer
getOffset ( ) : integer
getType ( ) : string
getUrl ( ) : string
setLength ( integer $length )
setOffset ( integer $offset )
setType ( string $type )
setUrl ( string $url )

Описание методов

getLength() публичный Метод

public getLength ( ) : integer
Результат integer

getOffset() публичный Метод

public getOffset ( ) : integer
Результат integer

getType() публичный Метод

public getType ( ) : string
Результат string

getUrl() публичный Метод

public getUrl ( ) : string
Результат string

setLength() публичный Метод

public setLength ( integer $length )
$length integer

setOffset() публичный Метод

public setOffset ( integer $offset )
$offset integer

setType() публичный Метод

public setType ( string $type )
$type string

setUrl() публичный Метод

public setUrl ( string $url )
$url string

Описание свойств

$length защищенное свойство

Length of the entity in UTF-16 code units
protected int $length
Результат integer

$map защищенное статическое свойство

protected static array $map
Результат array

$offset защищенное свойство

Offset in UTF-16 code units to the start of the entity
protected int $offset
Результат integer

$requiredParams защищенное статическое свойство

protected static array $requiredParams
Результат array

$type защищенное свойство

One of mention (@username), hashtag, bot_command, url, email, bold (bold text), italic (italic text), code (monowidth string),pre (monowidth block), text_link (for clickable text URLs)
protected string $type
Результат string

$url защищенное свойство

Optional. For “text_link” only, url that will be opened after user taps on the text
protected string $url
Результат string