PHP Class TelegramBot\Api\Types\MessageEntity

Inheritance: extends TelegramBot\Api\BaseType, implements TelegramBot\Api\TypeInterface
Afficher le fichier Open project: TelegramBot/Api

Protected Properties

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

Méthodes publiques

Méthode Description
getLength ( ) : integer
getOffset ( ) : integer
getType ( ) : string
getUrl ( ) : string
setLength ( integer $length )
setOffset ( integer $offset )
setType ( string $type )
setUrl ( string $url )

Method Details

getLength() public méthode

public getLength ( ) : integer
Résultat integer

getOffset() public méthode

public getOffset ( ) : integer
Résultat integer

getType() public méthode

public getType ( ) : string
Résultat string

getUrl() public méthode

public getUrl ( ) : string
Résultat string

setLength() public méthode

public setLength ( integer $length )
$length integer

setOffset() public méthode

public setOffset ( integer $offset )
$offset integer

setType() public méthode

public setType ( string $type )
$type string

setUrl() public méthode

public setUrl ( string $url )
$url string

Property Details

$length protected_oe property

Length of the entity in UTF-16 code units
protected int $length
Résultat integer

$map protected_oe static_oe property

protected static array $map
Résultat array

$offset protected_oe property

Offset in UTF-16 code units to the start of the entity
protected int $offset
Résultat integer

$requiredParams protected_oe static_oe property

protected static array $requiredParams
Résultat array

$type protected_oe property

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
Résultat string

$url protected_oe property

Optional. For “text_link” only, url that will be opened after user taps on the text
protected string $url
Résultat string