diff --git a/src/Constants/Emojis.php b/src/Constants/Emojis.php index 78b70c2..edafc33 100644 --- a/src/Constants/Emojis.php +++ b/src/Constants/Emojis.php @@ -6,4 +6,5 @@ class Emojis { public const DICE = '🎲'; public const DART = '🎯'; + public const BASKETBALL = '🏀'; } diff --git a/src/Types/Dice.php b/src/Types/Dice.php index 751e19b..1370616 100644 --- a/src/Types/Dice.php +++ b/src/Types/Dice.php @@ -17,7 +17,7 @@ class Dice public $emoji; /** - * Value of the dice, 1-6 for currently supported base emoji + * Value of the dice, 1-6 for “🎲” and “🎯” base emoji, 1-5 for “🏀” base emoji * @var int $value */ public $value; diff --git a/src/Types/InlineQueryResultGif.php b/src/Types/InlineQueryResultGif.php index 9574c87..0c2ad3d 100644 --- a/src/Types/InlineQueryResultGif.php +++ b/src/Types/InlineQueryResultGif.php @@ -53,6 +53,13 @@ class InlineQueryResultGif */ public $thumb_url; + /** + * Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. + * Defaults to “image/jpeg” + * @var string $thumb_mime_type + */ + public $thumb_mime_type; + /** * Optional. Title for the result * @var string $title diff --git a/src/Types/InlineQueryResultMpeg4Gif.php b/src/Types/InlineQueryResultMpeg4Gif.php index e3de618..2d27d49 100644 --- a/src/Types/InlineQueryResultMpeg4Gif.php +++ b/src/Types/InlineQueryResultMpeg4Gif.php @@ -53,6 +53,13 @@ class InlineQueryResultMpeg4Gif */ public $thumb_url; + /** + * Optional. MIME type of the thumbnail, must be one of “image/jpeg”, “image/gif”, or “video/mp4”. + * Defaults to “image/jpeg” + * @var string $thumb_mime_type + */ + public $thumb_mime_type; + /** * Optional. Title for the result * @var string $title diff --git a/src/Types/Message.php b/src/Types/Message.php index c99871b..8016516 100644 --- a/src/Types/Message.php +++ b/src/Types/Message.php @@ -80,6 +80,12 @@ class Message */ public $reply_to_message; + /** + * Optional. Bot through which the message was sent + * @var User $via_bot + */ + public $via_bot; + /** * Optional. Date the message was last edited in Unix time * @var int $edit_date @@ -345,7 +351,7 @@ public function isCommand(): bool * OUT: /hello * @return string */ - public function getCommand(): string + public function getCommand(): ?string { if ($this->text !== null) { $result = preg_match('/^(\/\w+)(@\w+)?(.+)?$/', $this->text, $matches);