You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Layers/Generated.php
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -594,9 +594,10 @@ public function sendVideoNote(
594
594
* Use this method to send paid media. On success, the sent <a href="https://core.telegram.org/bots/api#message">Message</a> is returned.
595
595
*
596
596
* @param int|string $chat_id Unique identifier for the target chat or username of the target channel (in the format @channelusername). If the chat is a channel, all Telegram Star proceeds from this media will be credited to the chat's balance. Otherwise, they will be credited to the bot's balance.
597
-
* @param int $star_count The number of Telegram Stars that must be paid to buy access to the media
597
+
* @param int $star_count The number of Telegram Stars that must be paid to buy access to the media; 1-2500
598
598
* @param InputPaidMedia[] $media A JSON-serialized array describing the media to be sent; up to 10 items
599
599
* @param string $business_connection_id Unique identifier of the business connection on behalf of which the message will be sent
600
+
* @param string $payload Bot-defined paid media payload, 0-128 bytes. This will not be displayed to the user, use it for your internal processes.
600
601
* @param string $caption Media caption, 0-1024 characters after entities parsing
601
602
* @param ParseMode|string $parse_mode Mode for parsing entities in the media caption. See <a href="https://core.telegram.org/bots/api#formatting-options">formatting options</a> for more details.
602
603
* @param MessageEntity[] $caption_entities A JSON-serialized list of special entities that appear in the caption, which can be specified instead of <em>parse_mode</em>
@@ -613,6 +614,7 @@ public function sendPaidMedia(
Copy file name to clipboardExpand all lines: src/Telegram/ChatBoostSourceGiveaway.php
+13-4Lines changed: 13 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
namespaceTelepath\Telegram;
8
8
9
9
/**
10
-
* The boost was obtained by the creation of a Telegram Premium giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription.
10
+
* The boost was obtained by the creation of a Telegram Premium or a Telegram Star giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription for Telegram Premium giveaways and <em>prize_star_count</em> / 500 times for one year for Telegram Star giveaways.
11
11
*/
12
12
class ChatBoostSourceGiveaway extends ChatBoostSource
13
13
{
@@ -17,19 +17,28 @@ class ChatBoostSourceGiveaway extends ChatBoostSource
17
17
/** Identifier of a message in the chat with the giveaway; the message could have been deleted already. May be 0 if the message isn't sent yet. */
18
18
publicint$giveaway_message_id;
19
19
20
+
/** <em>Optional</em>. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only */
21
+
public ?int$prize_star_count = null;
22
+
20
23
/** <em>Optional</em>. True, if the giveaway was completed, but there was no user to win the prize */
21
24
public ?bool$is_unclaimed = null;
22
25
23
26
/**
24
27
* @param int $giveaway_message_id Identifier of a message in the chat with the giveaway; the message could have been deleted already. May be 0 if the message isn't sent yet.
25
-
* @param User $user <em>Optional</em>. User that won the prize in the giveaway if any
28
+
* @param User $user <em>Optional</em>. User that won the prize in the giveaway if any; for Telegram Premium giveaways only
29
+
* @param int $prize_star_count <em>Optional</em>. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only
26
30
* @param bool $is_unclaimed <em>Optional</em>. True, if the giveaway was completed, but there was no user to win the prize
Copy file name to clipboardExpand all lines: src/Telegram/Giveaway.php
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,10 @@ class Giveaway extends Type
42
42
*/
43
43
public ?array$country_codes = null;
44
44
45
-
/** <em>Optional</em>. The number of months the Telegram Premium subscription won from the giveaway will be active for */
45
+
/** <em>Optional</em>. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only */
46
+
public ?int$prize_star_count = null;
47
+
48
+
/** <em>Optional</em>. The number of months the Telegram Premium subscription won from the giveaway will be active for; for Telegram Premium giveaways only */
46
49
public ?int$premium_subscription_month_count = null;
47
50
48
51
/**
@@ -53,7 +56,8 @@ class Giveaway extends Type
53
56
* @param bool $has_public_winners <em>Optional</em>. <em>True</em>, if the list of giveaway winners will be visible to everyone
54
57
* @param string $prize_description <em>Optional</em>. Description of additional giveaway prize
55
58
* @param string[] $country_codes <em>Optional</em>. A list of two-letter <a href="https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2">ISO 3166-1 alpha-2</a> country codes indicating the countries from which eligible users for the giveaway must come. If empty, then all users can participate in the giveaway. Users with a phone number that was bought on Fragment can always participate in giveaways.
56
-
* @param int $premium_subscription_month_count <em>Optional</em>. The number of months the Telegram Premium subscription won from the giveaway will be active for
59
+
* @param int $prize_star_count <em>Optional</em>. The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only
60
+
* @param int $premium_subscription_month_count <em>Optional</em>. The number of months the Telegram Premium subscription won from the giveaway will be active for; for Telegram Premium giveaways only
Copy file name to clipboardExpand all lines: src/Telegram/GiveawayCompleted.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22,20 +22,26 @@ class GiveawayCompleted extends Type
22
22
/** <em>Optional</em>. Message with the giveaway that was completed, if it wasn't deleted */
23
23
public ?Message$giveaway_message = null;
24
24
25
+
/** <em>Optional</em>. <em>True</em>, if the giveaway is a Telegram Star giveaway. Otherwise, currently, the giveaway is a Telegram Premium giveaway. */
26
+
public ?bool$is_star_giveaway = null;
27
+
25
28
/**
26
29
* @param int $winner_count Number of winners in the giveaway
27
30
* @param int $unclaimed_prize_count <em>Optional</em>. Number of undistributed prizes
28
31
* @param Message $giveaway_message <em>Optional</em>. Message with the giveaway that was completed, if it wasn't deleted
32
+
* @param bool $is_star_giveaway <em>Optional</em>. <em>True</em>, if the giveaway is a Telegram Star giveaway. Otherwise, currently, the giveaway is a Telegram Premium giveaway.
Copy file name to clipboardExpand all lines: src/Telegram/GiveawayWinners.php
+8-2Lines changed: 8 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -35,7 +35,10 @@ class GiveawayWinners extends Type
35
35
/** <em>Optional</em>. The number of other chats the user had to join in order to be eligible for the giveaway */
36
36
public ?int$additional_chat_count = null;
37
37
38
-
/** <em>Optional</em>. The number of months the Telegram Premium subscription won from the giveaway will be active for */
38
+
/** <em>Optional</em>. The number of Telegram Stars that were split between giveaway winners; for Telegram Star giveaways only */
39
+
public ?int$prize_star_count = null;
40
+
41
+
/** <em>Optional</em>. The number of months the Telegram Premium subscription won from the giveaway will be active for; for Telegram Premium giveaways only */
39
42
public ?int$premium_subscription_month_count = null;
40
43
41
44
/** <em>Optional</em>. Number of undistributed prizes */
@@ -57,7 +60,8 @@ class GiveawayWinners extends Type
57
60
* @param int $winner_count Total number of winners in the giveaway
58
61
* @param User[] $winners List of up to 100 winners of the giveaway
59
62
* @param int $additional_chat_count <em>Optional</em>. The number of other chats the user had to join in order to be eligible for the giveaway
60
-
* @param int $premium_subscription_month_count <em>Optional</em>. The number of months the Telegram Premium subscription won from the giveaway will be active for
63
+
* @param int $prize_star_count <em>Optional</em>. The number of Telegram Stars that were split between giveaway winners; for Telegram Star giveaways only
64
+
* @param int $premium_subscription_month_count <em>Optional</em>. The number of months the Telegram Premium subscription won from the giveaway will be active for; for Telegram Premium giveaways only
61
65
* @param int $unclaimed_prize_count <em>Optional</em>. Number of undistributed prizes
62
66
* @param bool $only_new_members <em>Optional</em>. <em>True</em>, if only users who had joined the chats after the giveaway started were eligible to win
63
67
* @param bool $was_refunded <em>Optional</em>. <em>True</em>, if the giveaway was canceled because the payment for it was refunded
Copy file name to clipboardExpand all lines: src/Telegram/Update.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,9 @@ class Update extends Type
64
64
/** <em>Optional</em>. New incoming pre-checkout query. Contains full information about checkout */
65
65
public ?PreCheckoutQuery$pre_checkout_query = null;
66
66
67
+
/** <em>Optional</em>. A user purchased paid media with a non-empty payload sent by the bot in a non-channel chat */
68
+
public ?PaidMediaPurchased$purchased_paid_media = null;
69
+
67
70
/** <em>Optional</em>. New poll state. Bots receive only updates about manually stopped polls and polls, which are sent by the bot */
68
71
public ?Poll$poll = null;
69
72
@@ -102,6 +105,7 @@ class Update extends Type
102
105
* @param CallbackQuery $callback_query <em>Optional</em>. New incoming callback query
103
106
* @param ShippingQuery $shipping_query <em>Optional</em>. New incoming shipping query. Only for invoices with flexible price
104
107
* @param PreCheckoutQuery $pre_checkout_query <em>Optional</em>. New incoming pre-checkout query. Contains full information about checkout
108
+
* @param PaidMediaPurchased $purchased_paid_media <em>Optional</em>. A user purchased paid media with a non-empty payload sent by the bot in a non-channel chat
105
109
* @param Poll $poll <em>Optional</em>. New poll state. Bots receive only updates about manually stopped polls and polls, which are sent by the bot
106
110
* @param PollAnswer $poll_answer <em>Optional</em>. A user changed their answer in a non-anonymous poll. Bots receive new votes only in polls that were sent by the bot itself.
107
111
* @param ChatMemberUpdated $my_chat_member <em>Optional</em>. The bot's chat member status was updated in a chat. For private chats, this update is received only when the bot is blocked or unblocked by the user.
0 commit comments