PHP 클래스 TelegramBot\Api\Types\MessageEntity

상속: extends TelegramBot\Api\BaseType, implements TelegramBot\Api\TypeInterface
파일 보기 프로젝트 열기: TelegramBot/Api

보호된 프로퍼티들

프로퍼티 타입 설명
$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