메소드 | 설명 | |
---|---|---|
__construct ( array $data, string $bot_name = '' ) | Message constructor | |
botAddedInChat ( ) : boolean | Bot added in chat | |
getCommand ( ) : boolean | string | Get command | |
getEntities ( ) : null | |
Optional. For text messages, special entities like usernames, URLs, bot commands, etc. that appear in the text | |
getFullCommand ( ) : string | null | return the entire command like /echo or /echo@bot1 if specified | |
getNewChatPhoto ( ) : null | Longman\TelegramBot\Entities\PhotoSize[] | Optional. A chat photo was changed to this value | |
getPhoto ( ) : null | Longman\TelegramBot\Entities\PhotoSize[] | Optional. Message is a photo, available sizes of the photo | |
getText ( boolean $without_cmd = false ) : string | For text messages, the actual UTF-8 text of the message, 0-4096 characters. | |
getType ( ) : string | null | Detect type based on properties. |
메소드 | 설명 | |
---|---|---|
subEntities ( ) |
public __construct ( array $data, string $bot_name = '' ) | ||
$data | array | |
$bot_name | string |
public getEntities ( ) : null | |
||
리턴 | null | |
public getFullCommand ( ) : string | null | ||
리턴 | string | null |
public getNewChatPhoto ( ) : null | Longman\TelegramBot\Entities\PhotoSize[] | ||
리턴 | null | Longman\TelegramBot\Entities\PhotoSize[] |