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/ChatAdministratorRights.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,9 @@ class ChatAdministratorRights extends Type
61
61
/** <em>Optional</em>. <em>True</em>, if the administrator can manage direct messages of the channel and decline suggested posts; for channels only */
62
62
public ?bool$can_manage_direct_messages = null;
63
63
64
+
/** <em>Optional</em>. <em>True</em>, if the administrator can edit the tags of regular members; for groups and supergroups only. If omitted defaults to the value of can_pin_messages. */
65
+
public ?bool$can_manage_tags = null;
66
+
64
67
/**
65
68
* @param bool $is_anonymous <em>True</em>, if the user's presence in the chat is hidden
66
69
* @param bool $can_manage_chat <em>True</em>, if the administrator can access the chat event log, get boost list, see hidden supergroup and channel members, report spam messages, ignore slow mode, and send messages to the chat without paying Telegram Stars. Implied by any other administrator privilege.
@@ -78,6 +81,7 @@ class ChatAdministratorRights extends Type
78
81
* @param bool $can_pin_messages <em>Optional</em>. <em>True</em>, if the user is allowed to pin messages; for groups and supergroups only
79
82
* @param bool $can_manage_topics <em>Optional</em>. <em>True</em>, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only
80
83
* @param bool $can_manage_direct_messages <em>Optional</em>. <em>True</em>, if the administrator can manage direct messages of the channel and decline suggested posts; for channels only
84
+
* @param bool $can_manage_tags <em>Optional</em>. <em>True</em>, if the administrator can edit the tags of regular members; for groups and supergroups only. If omitted defaults to the value of can_pin_messages.
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/ChatMemberAdministrator.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -65,6 +65,9 @@ class ChatMemberAdministrator extends ChatMember
65
65
/** <em>Optional</em>. <em>True</em>, if the administrator can manage direct messages of the channel and decline suggested posts; for channels only */
66
66
public ?bool$can_manage_direct_messages = null;
67
67
68
+
/** <em>Optional</em>. <em>True</em>, if the administrator can edit the tags of regular members; for groups and supergroups only. If omitted defaults to the value of can_pin_messages. */
69
+
public ?bool$can_manage_tags = null;
70
+
68
71
/** <em>Optional</em>. Custom title for this user */
69
72
public ?string$custom_title = null;
70
73
@@ -87,6 +90,7 @@ class ChatMemberAdministrator extends ChatMember
87
90
* @param bool $can_pin_messages <em>Optional</em>. <em>True</em>, if the user is allowed to pin messages; for groups and supergroups only
88
91
* @param bool $can_manage_topics <em>Optional</em>. <em>True</em>, if the user is allowed to create, rename, close, and reopen forum topics; for supergroups only
89
92
* @param bool $can_manage_direct_messages <em>Optional</em>. <em>True</em>, if the administrator can manage direct messages of the channel and decline suggested posts; for channels only
93
+
* @param bool $can_manage_tags <em>Optional</em>. <em>True</em>, if the administrator can edit the tags of regular members; for groups and supergroups only. If omitted defaults to the value of can_pin_messages.
90
94
* @param string $custom_title <em>Optional</em>. Custom title for this user
Copy file name to clipboardExpand all lines: src/Telegram/ChatPermissions.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -43,6 +43,9 @@ class ChatPermissions extends Type
43
43
/** <em>Optional</em>. <em>True</em>, if the user is allowed to add web page previews to their messages */
44
44
public ?bool$can_add_web_page_previews = null;
45
45
46
+
/** <em>Optional</em>. <em>True</em>, if the user is allowed to edit their own tag */
47
+
public ?bool$can_edit_tag = null;
48
+
46
49
/** <em>Optional</em>. <em>True</em>, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups */
47
50
public ?bool$can_change_info = null;
48
51
@@ -66,6 +69,7 @@ class ChatPermissions extends Type
66
69
* @param bool $can_send_polls <em>Optional</em>. <em>True</em>, if the user is allowed to send polls and checklists
67
70
* @param bool $can_send_other_messages <em>Optional</em>. <em>True</em>, if the user is allowed to send animations, games, stickers and use inline bots
68
71
* @param bool $can_add_web_page_previews <em>Optional</em>. <em>True</em>, if the user is allowed to add web page previews to their messages
72
+
* @param bool $can_edit_tag <em>Optional</em>. <em>True</em>, if the user is allowed to edit their own tag
69
73
* @param bool $can_change_info <em>Optional</em>. <em>True</em>, if the user is allowed to change the chat title, photo and other settings. Ignored in public supergroups
70
74
* @param bool $can_invite_users <em>Optional</em>. <em>True</em>, if the user is allowed to invite new users to the chat
71
75
* @param bool $can_pin_messages <em>Optional</em>. <em>True</em>, if the user is allowed to pin messages. Ignored in public supergroups
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
0 commit comments