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
* Use this method to get a list of profile audios for a user. Returns a <a href="https://core.telegram.org/bots/api#userprofileaudios">UserProfileAudios</a> object.
1086
+
*
1087
+
* @param int $user_id Unique identifier of the target user
1088
+
* @param int $offset Sequential number of the first audio to be returned. By default, all audios are returned.
1089
+
* @param int $limit Limits the number of audios to be retrieved. Values between 1-100 are accepted. Defaults to 100.
* Changes the emoji status for a given user that previously allowed the bot to manage their emoji status via the Mini App method <a href="https://core.telegram.org/bots/webapps#initializing-mini-apps">requestEmojiStatusAccess</a>. Returns <em>True</em> on success.
1085
1100
*
@@ -1597,7 +1612,7 @@ public function getForumTopicIconStickers(): array
1597
1612
}
1598
1613
1599
1614
/**
1600
-
* Use this method to create a topic in a forum supergroup chat. The bot must be an administrator in the chat for this to work and must have the <em>can_manage_topics</em> administrator rights. Returns information about the created topic as a <a href="https://core.telegram.org/bots/api#forumtopic">ForumTopic</a> object.
1615
+
* Use this method to create a topic in a forum supergroup chat or a private chat with a user. In the case of a supergroup chat the bot must be an administrator in the chat for this to work and must have the <em>can_manage_topics</em> administrator right. Returns information about the created topic as a <a href="https://core.telegram.org/bots/api#forumtopic">ForumTopic</a> object.
1601
1616
*
1602
1617
* @param int|string $chat_id Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
Copy file name to clipboardExpand all lines: src/Telegram/ChatFullInfo.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -165,6 +165,9 @@ class ChatFullInfo extends Type
165
165
/** <em>Optional</em>. For private chats, the rating of the user if any */
166
166
public ?UserRating$rating = null;
167
167
168
+
/** <em>Optional</em>. For private chats, the first audio added to the profile of the user */
169
+
public ?Audio$first_profile_audio = null;
170
+
168
171
/** <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
172
public ?UniqueGiftColors$unique_gift_colors = null;
170
173
@@ -220,6 +223,7 @@ class ChatFullInfo extends Type
220
223
* @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.
221
224
* @param ChatLocation $location <em>Optional</em>. For supergroups, the location to which the supergroup is connected
222
225
* @param UserRating $rating <em>Optional</em>. For private chats, the rating of the user if any
226
+
* @param Audio $first_profile_audio <em>Optional</em>. For private chats, the first audio added to the profile of the user
223
227
* @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
228
* @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/InlineKeyboardButton.php
+13-1Lines changed: 13 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,19 @@
9
9
useTelepath\Types\Type;
10
10
11
11
/**
12
-
* This object represents one button of an inline keyboard. Exactly one of the optional fields must be used to specify type of the button.
12
+
* This object represents one button of an inline keyboard. Exactly one of the fields other than <em>text</em>, <em>icon_custom_emoji_id</em>, and <em>style</em> must be used to specify the type of the button.
13
13
*/
14
14
class InlineKeyboardButton extends Type
15
15
{
16
16
/** Label text on the button */
17
17
publicstring$text;
18
18
19
+
/** <em>Optional</em>. Unique identifier of the custom emoji shown before the text of the button. Can only be used by bots that purchased additional usernames on <a href="https://fragment.com">Fragment</a> or in the messages directly sent by the bot to private, group and supergroup chats if the owner of the bot has a Telegram Premium subscription. */
20
+
public ?string$icon_custom_emoji_id = null;
21
+
22
+
/** <em>Optional</em>. Style of the button. Must be one of “danger” (red), “success” (green) or “primary” (blue). If omitted, then an app-specific style is used. */
23
+
public ?string$style = null;
24
+
19
25
/** <em>Optional</em>. HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?id=<user_id> can be used to mention a user by their identifier without using a username, if this is allowed by their privacy settings. */
20
26
public ?string$url = null;
21
27
@@ -48,6 +54,8 @@ class InlineKeyboardButton extends Type
48
54
49
55
/**
50
56
* @param string $text Label text on the button
57
+
* @param string $icon_custom_emoji_id <em>Optional</em>. Unique identifier of the custom emoji shown before the text of the button. Can only be used by bots that purchased additional usernames on <a href="https://fragment.com">Fragment</a> or in the messages directly sent by the bot to private, group and supergroup chats if the owner of the bot has a Telegram Premium subscription.
58
+
* @param string $style <em>Optional</em>. Style of the button. Must be one of “danger” (red), “success” (green) or “primary” (blue). If omitted, then an app-specific style is used.
51
59
* @param string $url <em>Optional</em>. HTTP or tg:// URL to be opened when the button is pressed. Links tg://user?id=<user_id> can be used to mention a user by their identifier without using a username, if this is allowed by their privacy settings.
52
60
* @param string $callback_data <em>Optional</em>. Data to be sent in a <a href="https://core.telegram.org/bots/api#callbackquery">callback query</a> to the bot when the button is pressed, 1-64 bytes
53
61
* @param WebAppInfo $web_app <em>Optional</em>. Description of the <a href="https://core.telegram.org/bots/webapps">Web App</a> that will be launched when the user presses the button. The Web App will be able to send an arbitrary message on behalf of the user using the method <a href="https://core.telegram.org/bots/api#answerwebappquery">answerWebAppQuery</a>. Available only in private chats between a user and the bot. Not supported for messages sent on behalf of a Telegram Business account.
@@ -61,6 +69,8 @@ class InlineKeyboardButton extends Type
Copy file name to clipboardExpand all lines: src/Telegram/KeyboardButton.php
+15-3Lines changed: 15 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,13 +9,19 @@
9
9
useTelepath\Types\Type;
10
10
11
11
/**
12
-
* This object represents one button of the reply keyboard. At most one of the optional fields must be used to specify type of the button. For simple text buttons, <em>String</em> can be used instead of this object to specify the button text.
12
+
* This object represents one button of the reply keyboard. At most one of the fields other than <em>text</em>, <em>icon_custom_emoji_id</em>, and <em>style</em> must be used to specify the type of the button. For simple text buttons, <em>String</em> can be used instead of this object to specify the button text.
13
13
*/
14
14
class KeyboardButton extends Type
15
15
{
16
-
/** Text of the button. If none of the optional fields are used, it will be sent as a message when the button is pressed */
16
+
/** Text of the button. If none of the fields other than <em>text</em>, <em>icon_custom_emoji_id</em>, and <em>style</em> are used, it will be sent as a message when the button is pressed */
17
17
publicstring$text;
18
18
19
+
/** <em>Optional</em>. Unique identifier of the custom emoji shown before the text of the button. Can only be used by bots that purchased additional usernames on <a href="https://fragment.com">Fragment</a> or in the messages directly sent by the bot to private, group and supergroup chats if the owner of the bot has a Telegram Premium subscription. */
20
+
public ?string$icon_custom_emoji_id = null;
21
+
22
+
/** <em>Optional</em>. Style of the button. Must be one of “danger” (red), “success” (green) or “primary” (blue). If omitted, then an app-specific style is used. */
23
+
public ?string$style = null;
24
+
19
25
/** <em>Optional</em>. If specified, pressing the button will open a list of suitable users. Identifiers of selected users will be sent to the bot in a “users_shared” service message. Available in private chats only. */
20
26
public ?KeyboardButtonRequestUsers$request_users = null;
21
27
@@ -35,7 +41,9 @@ class KeyboardButton extends Type
35
41
public ?WebAppInfo$web_app = null;
36
42
37
43
/**
38
-
* @param string $text Text of the button. If none of the optional fields are used, it will be sent as a message when the button is pressed
44
+
* @param string $text Text of the button. If none of the fields other than <em>text</em>, <em>icon_custom_emoji_id</em>, and <em>style</em> are used, it will be sent as a message when the button is pressed
45
+
* @param string $icon_custom_emoji_id <em>Optional</em>. Unique identifier of the custom emoji shown before the text of the button. Can only be used by bots that purchased additional usernames on <a href="https://fragment.com">Fragment</a> or in the messages directly sent by the bot to private, group and supergroup chats if the owner of the bot has a Telegram Premium subscription.
46
+
* @param string $style <em>Optional</em>. Style of the button. Must be one of “danger” (red), “success” (green) or “primary” (blue). If omitted, then an app-specific style is used.
39
47
* @param KeyboardButtonRequestUsers $request_users <em>Optional</em>. If specified, pressing the button will open a list of suitable users. Identifiers of selected users will be sent to the bot in a “users_shared” service message. Available in private chats only.
40
48
* @param KeyboardButtonRequestChat $request_chat <em>Optional</em>. If specified, pressing the button will open a list of suitable chats. Tapping on a chat will send its identifier to the bot in a “chat_shared” service message. Available in private chats only.
41
49
* @param bool $request_contact <em>Optional</em>. If <em>True</em>, the user's phone number will be sent as a contact when the button is pressed. Available in private chats only.
@@ -45,6 +53,8 @@ class KeyboardButton extends Type
Copy file name to clipboardExpand all lines: src/Telegram/Message.php
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -184,6 +184,12 @@ class Message extends MaybeInaccessibleMessage
184
184
/** <em>Optional</em>. A member was removed from the group, information about them (this member may be the bot itself) */
185
185
public ?User$left_chat_member = null;
186
186
187
+
/** <em>Optional</em>. Service message: chat owner has left */
188
+
public ?ChatOwnerLeft$chat_owner_left = null;
189
+
190
+
/** <em>Optional</em>. Service message: chat owner has changed */
191
+
public ?ChatOwnerChanged$chat_owner_changed = null;
192
+
187
193
/** <em>Optional</em>. A chat title was changed to this value */
188
194
public ?string$new_chat_title = null;
189
195
@@ -390,6 +396,8 @@ class Message extends MaybeInaccessibleMessage
390
396
* @param Location $location <em>Optional</em>. Message is a shared location, information about the location
391
397
* @param User[] $new_chat_members <em>Optional</em>. New members that were added to the group or supergroup and information about them (the bot itself may be one of these members)
392
398
* @param User $left_chat_member <em>Optional</em>. A member was removed from the group, information about them (this member may be the bot itself)
399
+
* @param ChatOwnerLeft $chat_owner_left <em>Optional</em>. Service message: chat owner has left
400
+
* @param ChatOwnerChanged $chat_owner_changed <em>Optional</em>. Service message: chat owner has changed
393
401
* @param string $new_chat_title <em>Optional</em>. A chat title was changed to this value
394
402
* @param PhotoSize[] $new_chat_photo <em>Optional</em>. A chat photo was change to this value
395
403
* @param bool $delete_chat_photo <em>Optional</em>. Service message: the chat photo was deleted
Copy file name to clipboardExpand all lines: src/Telegram/UniqueGift.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,9 @@ class UniqueGift extends Type
37
37
/** <em>Optional</em>. <em>True</em>, if the original regular gift was exclusively purchaseable by Telegram Premium subscribers */
38
38
public ?bool$is_premium = null;
39
39
40
+
/** <em>Optional</em>. <em>True</em>, if the gift was used to craft another gift and isn't available anymore */
41
+
public ?bool$is_burned = null;
42
+
40
43
/** <em>Optional</em>. <em>True</em>, if the gift is assigned from the TON blockchain and can't be resold or transferred in Telegram */
41
44
public ?bool$is_from_blockchain = null;
42
45
@@ -55,6 +58,7 @@ class UniqueGift extends Type
55
58
* @param UniqueGiftSymbol $symbol Symbol of the gift
56
59
* @param UniqueGiftBackdrop $backdrop Backdrop of the gift
57
60
* @param bool $is_premium <em>Optional</em>. <em>True</em>, if the original regular gift was exclusively purchaseable by Telegram Premium subscribers
61
+
* @param bool $is_burned <em>Optional</em>. <em>True</em>, if the gift was used to craft another gift and isn't available anymore
58
62
* @param bool $is_from_blockchain <em>Optional</em>. <em>True</em>, if the gift is assigned from the TON blockchain and can't be resold or transferred in Telegram
59
63
* @param UniqueGiftColors $colors <em>Optional</em>. The color scheme that can be used by the gift's owner for the chat's name, replies to messages and link previews; for business account gifts and gifts that are currently on sale only
60
64
* @param Chat $publisher_chat <em>Optional</em>. Information about the chat that published the gift
0 commit comments