Skip to content

Commit 46efc85

Browse files
committed
#35: update changes implemented
1 parent 30ff05a commit 46efc85

File tree

4 files changed

+23
-16
lines changed

4 files changed

+23
-16
lines changed

src/Method/SendDiceMethod.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class SendDiceMethod implements SendMethodAliasInterface
2727

2828
public const EMOJI_DICE = '🎲';
2929
public const EMOJI_DARTS = '🎯';
30+
public const EMOJI_BASKETBALL = '🏀';
3031

3132
/**
3233
* Emoji on which the dice throw animation is based. Currently, must be one of “🎲” or “🎯”. Defauts to “🎲”.
@@ -77,4 +78,17 @@ public static function createWithDarts($chatId, array $data = null): SendDiceMet
7778

7879
return $instance;
7980
}
81+
82+
/**
83+
* @param $chatId
84+
*
85+
* @throws BadArgumentException
86+
*/
87+
public static function createWithBasketball($chatId, array $data = null): SendDiceMethod
88+
{
89+
$instance = static::create($chatId, $data);
90+
$instance->emoji = self::EMOJI_BASKETBALL;
91+
92+
return $instance;
93+
}
8094
}

src/Type/InlineQueryResult/InlineQueryResultGifType.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class InlineQueryResultGifType extends InlineQueryResultType implements HasParse
4646
public $gifDuration;
4747

4848
/**
49-
* URL of the static thumbnail for the result (jpeg or gif).
49+
* URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.
5050
*
5151
* @var string
5252
*/
@@ -82,14 +82,7 @@ class InlineQueryResultGifType extends InlineQueryResultType implements HasParse
8282
public $inputMessageContent;
8383

8484
/**
85-
* @param string $id
86-
* @param string $gifUrl
87-
* @param string $thumbUrl
88-
* @param array|null $data
89-
*
9085
* @throws \TgBotApi\BotApiBase\Exception\BadArgumentException
91-
*
92-
* @return InlineQueryResultGifType
9386
*/
9487
public static function create(
9588
string $id,

src/Type/InlineQueryResult/InlineQueryResultMpeg4GifType.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class InlineQueryResultMpeg4GifType extends InlineQueryResultType implements Has
4646
public $mpeg4Duration;
4747

4848
/**
49-
* URL of the static thumbnail (jpeg or gif) for the result.
49+
* URL of the static (JPEG or GIF) or animated (MPEG4) thumbnail for the result.
5050
*
5151
* @var string
5252
*/
@@ -82,14 +82,7 @@ class InlineQueryResultMpeg4GifType extends InlineQueryResultType implements Has
8282
public $inputMessageContent;
8383

8484
/**
85-
* @param string $id
86-
* @param string $mpeg4Url
87-
* @param string $thumbUrl
88-
* @param array|null $data
89-
*
9085
* @throws \TgBotApi\BotApiBase\Exception\BadArgumentException
91-
*
92-
* @return InlineQueryResultMpeg4GifType
9386
*/
9487
public static function create(
9588
string $id,

src/Type/MessageType.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ class MessageType implements HasParseModeVariableInterface
9292
*/
9393
public $replyToMessage;
9494

95+
/**
96+
* Optional. Bot through which the message was sent.
97+
*
98+
* @var UserType|null
99+
*/
100+
public $viaBot;
101+
95102
/**
96103
* Optional. Date the message was last edited in \DateTimeImmutable.
97104
*

0 commit comments

Comments
 (0)