Method | Description | |
---|---|---|
__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. |
Method | Description | |
---|---|---|
subEntities ( ) |
public __construct ( array $data, string $bot_name = '' ) | ||
$data | array | |
$bot_name | string |
public getCommand ( ) : boolean | string | ||
return | boolean | string |
public getEntities ( ) : null | |
||
return | null | |
public getFullCommand ( ) : string | null | ||
return | string | null |
public getNewChatPhoto ( ) : null | Longman\TelegramBot\Entities\PhotoSize[] | ||
return | null | Longman\TelegramBot\Entities\PhotoSize[] |