PHP Class TelegramBot\Api\Types\MessageEntity

Inheritance: extends TelegramBot\Api\BaseType, implements TelegramBot\Api\TypeInterface
Datei anzeigen Open project: TelegramBot/Api

Protected Properties

Property 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

Public Methods

Method 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 method

public getLength ( ) : integer
return integer

getOffset() public method

public getOffset ( ) : integer
return integer

getType() public method

public getType ( ) : string
return string

getUrl() public method

public getUrl ( ) : string
return string

setLength() public method

public setLength ( integer $length )
$length integer

setOffset() public method

public setOffset ( integer $offset )
$offset integer

setType() public method

public setType ( string $type )
$type string

setUrl() public method

public setUrl ( string $url )
$url string

Property Details

$length protected_oe property

Length of the entity in UTF-16 code units
protected int $length
return integer

$map protected_oe static_oe property

protected static array $map
return array

$offset protected_oe property

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

$requiredParams protected_oe static_oe property

protected static array $requiredParams
return 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
return string

$url protected_oe property

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