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