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
+14-5Lines changed: 14 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1223,25 +1223,34 @@ public function setChatDescription(int|string $chat_id, ?string $description = n
1223
1223
*
1224
1224
* @param int|string $chat_id Unique identifier for the target chat or username of the target channel (in the format @channelusername)
1225
1225
* @param int $message_id Identifier of a message to pin
1226
+
* @param string $business_connection_id Unique identifier of the business connection on behalf of which the message will be pinned
1226
1227
* @param bool $disable_notification Pass <em>True</em> if it is not necessary to send a notification to all chat members about the new pinned message. Notifications are always disabled in channels and private chats.
* Use this method to remove a message from the list of pinned messages in a chat. If the chat is not a private chat, the bot must be an administrator in the chat for this to work and must have the 'can_pin_messages' administrator right in a supergroup or 'can_edit_messages' administrator right in a channel. Returns <em>True</em> on success.
1237
1242
*
1238
1243
* @param int|string $chat_id Unique identifier for the target chat or username of the target channel (in the format @channelusername)
1239
-
* @param int $message_id Identifier of a message to unpin. If not specified, the most recent pinned message (by sending date) will be unpinned.
1244
+
* @param string $business_connection_id Unique identifier of the business connection on behalf of which the message will be unpinned
1245
+
* @param int $message_id Identifier of the message to unpin. Required if <em>business_connection_id</em> is specified. If not specified, the most recent pinned message (by sending date) will be unpinned.
Copy file name to clipboardExpand all lines: src/Telegram/User.php
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,9 @@ class User extends Type
49
49
/** <em>Optional</em>. <em>True</em>, if the bot can be connected to a Telegram Business account to receive its messages. Returned only in <a href="https://core.telegram.org/bots/api#getme">getMe</a>. */
50
50
public ?bool$can_connect_to_business = null;
51
51
52
+
/** <em>Optional</em>. <em>True</em>, if the bot has a main Web App. Returned only in <a href="https://core.telegram.org/bots/api#getme">getMe</a>. */
53
+
public ?bool$has_main_web_app = null;
54
+
52
55
/**
53
56
* @param int $id Unique identifier for this user or bot. 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 64-bit integer or double-precision float type are safe for storing this identifier.
54
57
* @param bool $is_bot <em>True</em>, if this user is a bot
@@ -62,6 +65,7 @@ class User extends Type
62
65
* @param bool $can_read_all_group_messages <em>Optional</em>. <em>True</em>, if <a href="https://core.telegram.org/bots/features#privacy-mode">privacy mode</a> is disabled for the bot. Returned only in <a href="https://core.telegram.org/bots/api#getme">getMe</a>.
63
66
* @param bool $supports_inline_queries <em>Optional</em>. <em>True</em>, if the bot supports inline queries. Returned only in <a href="https://core.telegram.org/bots/api#getme">getMe</a>.
64
67
* @param bool $can_connect_to_business <em>Optional</em>. <em>True</em>, if the bot can be connected to a Telegram Business account to receive its messages. Returned only in <a href="https://core.telegram.org/bots/api#getme">getMe</a>.
68
+
* @param bool $has_main_web_app <em>Optional</em>. <em>True</em>, if the bot has a main Web App. Returned only in <a href="https://core.telegram.org/bots/api#getme">getMe</a>.
0 commit comments