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/Telegram/ChatFullInfo.php
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -162,6 +162,15 @@ class ChatFullInfo extends Type
162
162
/** <em>Optional</em>. For supergroups, the location to which the supergroup is connected */
163
163
public ?ChatLocation$location = null;
164
164
165
+
/** <em>Optional</em>. For private chats, the rating of the user if any */
166
+
public ?UserRating$rating = null;
167
+
168
+
/** <em>Optional</em>. The color scheme based on a unique gift that must be used for the chat's name, message replies and link previews */
169
+
public ?UniqueGiftColors$unique_gift_colors = null;
170
+
171
+
/** <em>Optional</em>. The number of Telegram Stars a general user have to pay to send a message to the chat */
172
+
public ?int$paid_message_star_count = null;
173
+
165
174
/**
166
175
* @param int $id Unique identifier for this chat. This number may have more than 32 significant bits and some programming languages may have difficulty/silent defects in interpreting it. But it has at most 52 significant bits, so a signed 64-bit integer or double-precision float type are safe for storing this identifier.
167
176
* @param string $type Type of the chat, can be either “private”, “group”, “supergroup” or “channel”
@@ -210,6 +219,9 @@ class ChatFullInfo extends Type
210
219
* @param string $custom_emoji_sticker_set_name <em>Optional</em>. For supergroups, the name of the group's custom emoji sticker set. Custom emoji from this set can be used by all users and bots in the group.
211
220
* @param int $linked_chat_id <em>Optional</em>. Unique identifier for the linked chat, i.e. the discussion group identifier for a channel and vice versa; for supergroups and channel chats. This identifier may be greater than 32 bits and some programming languages may have difficulty/silent defects in interpreting it. But it is smaller than 52 bits, so a signed 64 bit integer or double-precision float type are safe for storing this identifier.
212
221
* @param ChatLocation $location <em>Optional</em>. For supergroups, the location to which the supergroup is connected
222
+
* @param UserRating $rating <em>Optional</em>. For private chats, the rating of the user if any
223
+
* @param UniqueGiftColors $unique_gift_colors <em>Optional</em>. The color scheme based on a unique gift that must be used for the chat's name, message replies and link previews
224
+
* @param int $paid_message_star_count <em>Optional</em>. The number of Telegram Stars a general user have to pay to send a message to the chat
Copy file name to clipboardExpand all lines: src/Telegram/ForumTopic.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -25,23 +25,29 @@ class ForumTopic extends Type
25
25
/** <em>Optional</em>. Unique identifier of the custom emoji shown as the topic icon */
26
26
public ?string$icon_custom_emoji_id = null;
27
27
28
+
/** <em>Optional</em>. <em>True</em>, if the name of the topic wasn't specified explicitly by its creator and likely needs to be changed by the bot */
29
+
public ?bool$is_name_implicit = null;
30
+
28
31
/**
29
32
* @param int $message_thread_id Unique identifier of the forum topic
30
33
* @param string $name Name of the topic
31
34
* @param int $icon_color Color of the topic icon in RGB format
32
35
* @param string $icon_custom_emoji_id <em>Optional</em>. Unique identifier of the custom emoji shown as the topic icon
36
+
* @param bool $is_name_implicit <em>Optional</em>. <em>True</em>, if the name of the topic wasn't specified explicitly by its creator and likely needs to be changed by the bot
Copy file name to clipboardExpand all lines: src/Telegram/ForumTopicCreated.php
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -22,17 +22,26 @@ class ForumTopicCreated extends Type
22
22
/** <em>Optional</em>. Unique identifier of the custom emoji shown as the topic icon */
23
23
public ?string$icon_custom_emoji_id = null;
24
24
25
+
/** <em>Optional</em>. <em>True</em>, if the name of the topic wasn't specified explicitly by its creator and likely needs to be changed by the bot */
26
+
public ?bool$is_name_implicit = null;
27
+
25
28
/**
26
29
* @param string $name Name of the topic
27
30
* @param int $icon_color Color of the topic icon in RGB format
28
31
* @param string $icon_custom_emoji_id <em>Optional</em>. Unique identifier of the custom emoji shown as the topic icon
32
+
* @param bool $is_name_implicit <em>Optional</em>. <em>True</em>, if the name of the topic wasn't specified explicitly by its creator and likely needs to be changed by the bot
Copy file name to clipboardExpand all lines: src/Telegram/Gift.php
+40-4Lines changed: 40 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -25,12 +25,30 @@ class Gift extends Type
25
25
/** <em>Optional</em>. The number of Telegram Stars that must be paid to upgrade the gift to a unique one */
26
26
public ?int$upgrade_star_count = null;
27
27
28
-
/** <em>Optional</em>. The total number of the gifts of this type that can be sent; for limited gifts only */
28
+
/** <em>Optional</em>. <em>True</em>, if the gift can only be purchased by Telegram Premium subscribers */
29
+
public ?bool$is_premium = null;
30
+
31
+
/** <em>Optional</em>. <em>True</em>, if the gift can be used (after being upgraded) to customize a user's appearance */
32
+
public ?bool$has_colors = null;
33
+
34
+
/** <em>Optional</em>. The total number of gifts of this type that can be sent by all users; for limited gifts only */
29
35
public ?int$total_count = null;
30
36
31
-
/** <em>Optional</em>. The number of remaining gifts of this type that can be sent; for limited gifts only */
37
+
/** <em>Optional</em>. The number of remaining gifts of this type that can be sent by all users; for limited gifts only */
32
38
public ?int$remaining_count = null;
33
39
40
+
/** <em>Optional</em>. The total number of gifts of this type that can be sent by the bot; for limited gifts only */
41
+
public ?int$personal_total_count = null;
42
+
43
+
/** <em>Optional</em>. The number of remaining gifts of this type that can be sent by the bot; for limited gifts only */
44
+
public ?int$personal_remaining_count = null;
45
+
46
+
/** <em>Optional</em>. Background of the gift */
47
+
public ?GiftBackground$background = null;
48
+
49
+
/** <em>Optional</em>. The total number of different unique gifts that can be obtained by upgrading the gift */
50
+
public ?int$unique_gift_variant_count = null;
51
+
34
52
/** <em>Optional</em>. Information about the chat that published the gift */
35
53
public ?Chat$publisher_chat = null;
36
54
@@ -39,26 +57,44 @@ class Gift extends Type
39
57
* @param Sticker $sticker The sticker that represents the gift
40
58
* @param int $star_count The number of Telegram Stars that must be paid to send the sticker
41
59
* @param int $upgrade_star_count <em>Optional</em>. The number of Telegram Stars that must be paid to upgrade the gift to a unique one
42
-
* @param int $total_count <em>Optional</em>. The total number of the gifts of this type that can be sent; for limited gifts only
43
-
* @param int $remaining_count <em>Optional</em>. The number of remaining gifts of this type that can be sent; for limited gifts only
60
+
* @param bool $is_premium <em>Optional</em>. <em>True</em>, if the gift can only be purchased by Telegram Premium subscribers
61
+
* @param bool $has_colors <em>Optional</em>. <em>True</em>, if the gift can be used (after being upgraded) to customize a user's appearance
62
+
* @param int $total_count <em>Optional</em>. The total number of gifts of this type that can be sent by all users; for limited gifts only
63
+
* @param int $remaining_count <em>Optional</em>. The number of remaining gifts of this type that can be sent by all users; for limited gifts only
64
+
* @param int $personal_total_count <em>Optional</em>. The total number of gifts of this type that can be sent by the bot; for limited gifts only
65
+
* @param int $personal_remaining_count <em>Optional</em>. The number of remaining gifts of this type that can be sent by the bot; for limited gifts only
66
+
* @param GiftBackground $background <em>Optional</em>. Background of the gift
67
+
* @param int $unique_gift_variant_count <em>Optional</em>. The total number of different unique gifts that can be obtained by upgrading the gift
44
68
* @param Chat $publisher_chat <em>Optional</em>. Information about the chat that published the gift
Copy file name to clipboardExpand all lines: src/Telegram/GiftInfo.php
+14-2Lines changed: 14 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -22,9 +22,12 @@ class GiftInfo extends Type
22
22
/** <em>Optional</em>. Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitted if conversion to Telegram Stars is impossible */
23
23
public ?int$convert_star_count = null;
24
24
25
-
/** <em>Optional</em>. Number of Telegram Stars that were prepaid by the sender for the ability to upgrade the gift */
25
+
/** <em>Optional</em>. Number of Telegram Stars that were prepaid for the ability to upgrade the gift */
26
26
public ?int$prepaid_upgrade_star_count = null;
27
27
28
+
/** <em>Optional</em>. <em>True</em>, if the gift's upgrade was purchased after the gift was sent */
29
+
public ?bool$is_upgrade_separate = null;
30
+
28
31
/** <em>Optional</em>. <em>True</em>, if the gift can be upgraded to a unique gift */
29
32
public ?bool$can_be_upgraded = null;
30
33
@@ -41,35 +44,44 @@ class GiftInfo extends Type
41
44
/** <em>Optional</em>. <em>True</em>, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them */
42
45
public ?bool$is_private = null;
43
46
47
+
/** <em>Optional</em>. Unique number reserved for this gift when upgraded. See the <em>number</em> field in <a href="https://core.telegram.org/bots/api#uniquegift">UniqueGift</a> */
48
+
public ?int$unique_gift_number = null;
49
+
44
50
/**
45
51
* @param Gift $gift Information about the gift
46
52
* @param string $owned_gift_id <em>Optional</em>. Unique identifier of the received gift for the bot; only present for gifts received on behalf of business accounts
47
53
* @param int $convert_star_count <em>Optional</em>. Number of Telegram Stars that can be claimed by the receiver by converting the gift; omitted if conversion to Telegram Stars is impossible
48
-
* @param int $prepaid_upgrade_star_count <em>Optional</em>. Number of Telegram Stars that were prepaid by the sender for the ability to upgrade the gift
54
+
* @param int $prepaid_upgrade_star_count <em>Optional</em>. Number of Telegram Stars that were prepaid for the ability to upgrade the gift
55
+
* @param bool $is_upgrade_separate <em>Optional</em>. <em>True</em>, if the gift's upgrade was purchased after the gift was sent
49
56
* @param bool $can_be_upgraded <em>Optional</em>. <em>True</em>, if the gift can be upgraded to a unique gift
50
57
* @param string $text <em>Optional</em>. Text of the message that was added to the gift
51
58
* @param MessageEntity[] $entities <em>Optional</em>. Special entities that appear in the text
52
59
* @param bool $is_private <em>Optional</em>. <em>True</em>, if the sender and gift text are shown only to the gift receiver; otherwise, everyone will be able to see them
60
+
* @param int $unique_gift_number <em>Optional</em>. Unique number reserved for this gift when upgraded. See the <em>number</em> field in <a href="https://core.telegram.org/bots/api#uniquegift">UniqueGift</a>
0 commit comments