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
+37-6Lines changed: 37 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,7 @@
49
49
useTelepath\Telegram\ReplyParameters;
50
50
useTelepath\Telegram\SentWebAppMessage;
51
51
useTelepath\Telegram\ShippingOption;
52
+
useTelepath\Telegram\StarTransactions;
52
53
useTelepath\Telegram\Sticker;
53
54
useTelepath\Telegram\StickerSet;
54
55
useTelepath\Telegram\Update;
@@ -1702,9 +1703,10 @@ public function getMyDefaultAdministratorRights(?bool $for_channels = null): Cha
1702
1703
}
1703
1704
1704
1705
/**
1705
-
* Use this method to edit text and <a href="https://core.telegram.org/bots/api#games">game</a> messages. On success, if the edited message is not an inline message, the edited <a href="https://core.telegram.org/bots/api#message">Message</a> is returned, otherwise <em>True</em> is returned.
1706
+
* Use this method to edit text and <a href="https://core.telegram.org/bots/api#games">game</a> messages. On success, if the edited message is not an inline message, the edited <a href="https://core.telegram.org/bots/api#message">Message</a> is returned, otherwise <em>True</em> is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
1706
1707
*
1707
1708
* @param string $text New text of the message, 1-4096 characters after entities parsing
1709
+
* @param string $business_connection_id Unique identifier of the business connection on behalf of which the message to be edited was sent
1708
1710
* @param int|string $chat_id Required if <em>inline_message_id</em> is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
1709
1711
* @param int $message_id Required if <em>inline_message_id</em> is not specified. Identifier of the message to edit
1710
1712
* @param string $inline_message_id Required if <em>chat_id</em> and <em>message_id</em> are not specified. Identifier of the inline message
@@ -1717,6 +1719,7 @@ public function getMyDefaultAdministratorRights(?bool $for_channels = null): Cha
1717
1719
*/
1718
1720
publicfunctioneditMessageText(
1719
1721
string$text,
1722
+
?string$business_connection_id = null,
1720
1723
int|string|null$chat_id = null,
1721
1724
?int$message_id = null,
1722
1725
?string$inline_message_id = null,
@@ -1729,8 +1732,9 @@ public function editMessageText(
1729
1732
}
1730
1733
1731
1734
/**
1732
-
* Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited <a href="https://core.telegram.org/bots/api#message">Message</a> is returned, otherwise <em>True</em> is returned.
1735
+
* Use this method to edit captions of messages. On success, if the edited message is not an inline message, the edited <a href="https://core.telegram.org/bots/api#message">Message</a> is returned, otherwise <em>True</em> is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
1733
1736
*
1737
+
* @param string $business_connection_id Unique identifier of the business connection on behalf of which the message to be edited was sent
1734
1738
* @param int|string $chat_id Required if <em>inline_message_id</em> is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
1735
1739
* @param int $message_id Required if <em>inline_message_id</em> is not specified. Identifier of the message to edit
1736
1740
* @param string $inline_message_id Required if <em>chat_id</em> and <em>message_id</em> are not specified. Identifier of the inline message
@@ -1743,6 +1747,7 @@ public function editMessageText(
1743
1747
* @throws TelegramException
1744
1748
*/
1745
1749
publicfunctioneditMessageCaption(
1750
+
?string$business_connection_id = null,
1746
1751
int|string|null$chat_id = null,
1747
1752
?int$message_id = null,
1748
1753
?string$inline_message_id = null,
@@ -1756,9 +1761,10 @@ public function editMessageCaption(
1756
1761
}
1757
1762
1758
1763
/**
1759
-
* Use this method to edit animation, audio, document, photo, or video messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL. On success, if the edited message is not an inline message, the edited <a href="https://core.telegram.org/bots/api#message">Message</a> is returned, otherwise <em>True</em> is returned.
1764
+
* Use this method to edit animation, audio, document, photo, or video messages. If a message is part of a message album, then it can be edited only to an audio for audio albums, only to a document for document albums and to a photo or a video otherwise. When an inline message is edited, a new file can't be uploaded; use a previously uploaded file via its file_id or specify a URL. On success, if the edited message is not an inline message, the edited <a href="https://core.telegram.org/bots/api#message">Message</a> is returned, otherwise <em>True</em> is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
1760
1765
*
1761
1766
* @param InputMedia $media A JSON-serialized object for a new media content of the message
1767
+
* @param string $business_connection_id Unique identifier of the business connection on behalf of which the message to be edited was sent
1762
1768
* @param int|string $chat_id Required if <em>inline_message_id</em> is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
1763
1769
* @param int $message_id Required if <em>inline_message_id</em> is not specified. Identifier of the message to edit
1764
1770
* @param string $inline_message_id Required if <em>chat_id</em> and <em>message_id</em> are not specified. Identifier of the inline message
@@ -1768,6 +1774,7 @@ public function editMessageCaption(
1768
1774
*/
1769
1775
publicfunctioneditMessageMedia(
1770
1776
InputMedia$media,
1777
+
?string$business_connection_id = null,
1771
1778
int|string|null$chat_id = null,
1772
1779
?int$message_id = null,
1773
1780
?string$inline_message_id = null,
@@ -1781,6 +1788,7 @@ public function editMessageMedia(
1781
1788
*
1782
1789
* @param float $latitude Latitude of new location
1783
1790
* @param float $longitude Longitude of new location
1791
+
* @param string $business_connection_id Unique identifier of the business connection on behalf of which the message to be edited was sent
1784
1792
* @param int|string $chat_id Required if <em>inline_message_id</em> is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
1785
1793
* @param int $message_id Required if <em>inline_message_id</em> is not specified. Identifier of the message to edit
1786
1794
* @param string $inline_message_id Required if <em>chat_id</em> and <em>message_id</em> are not specified. Identifier of the inline message
@@ -1795,6 +1803,7 @@ public function editMessageMedia(
1795
1803
publicfunctioneditMessageLiveLocation(
1796
1804
float$latitude,
1797
1805
float$longitude,
1806
+
?string$business_connection_id = null,
1798
1807
int|string|null$chat_id = null,
1799
1808
?int$message_id = null,
1800
1809
?string$inline_message_id = null,
@@ -1810,6 +1819,7 @@ public function editMessageLiveLocation(
1810
1819
/**
1811
1820
* Use this method to stop updating a live location message before <em>live_period</em> expires. On success, if the message is not an inline message, the edited <a href="https://core.telegram.org/bots/api#message">Message</a> is returned, otherwise <em>True</em> is returned.
1812
1821
*
1822
+
* @param string $business_connection_id Unique identifier of the business connection on behalf of which the message to be edited was sent
1813
1823
* @param int|string $chat_id Required if <em>inline_message_id</em> is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
1814
1824
* @param int $message_id Required if <em>inline_message_id</em> is not specified. Identifier of the message with live location to stop
1815
1825
* @param string $inline_message_id Required if <em>chat_id</em> and <em>message_id</em> are not specified. Identifier of the inline message
@@ -1818,6 +1828,7 @@ public function editMessageLiveLocation(
1818
1828
* @throws TelegramException
1819
1829
*/
1820
1830
publicfunctionstopMessageLiveLocation(
1831
+
?string$business_connection_id = null,
1821
1832
int|string|null$chat_id = null,
1822
1833
?int$message_id = null,
1823
1834
?string$inline_message_id = null,
@@ -1827,8 +1838,9 @@ public function stopMessageLiveLocation(
1827
1838
}
1828
1839
1829
1840
/**
1830
-
* Use this method to edit only the reply markup of messages. On success, if the edited message is not an inline message, the edited <a href="https://core.telegram.org/bots/api#message">Message</a> is returned, otherwise <em>True</em> is returned.
1841
+
* Use this method to edit only the reply markup of messages. On success, if the edited message is not an inline message, the edited <a href="https://core.telegram.org/bots/api#message">Message</a> is returned, otherwise <em>True</em> is returned. Note that business messages that were not sent by the bot and do not contain an inline keyboard can only be edited within 48 hours from the time they were sent.
1831
1842
*
1843
+
* @param string $business_connection_id Unique identifier of the business connection on behalf of which the message to be edited was sent
1832
1844
* @param int|string $chat_id Required if <em>inline_message_id</em> is not specified. Unique identifier for the target chat or username of the target channel (in the format @channelusername)
1833
1845
* @param int $message_id Required if <em>inline_message_id</em> is not specified. Identifier of the message to edit
1834
1846
* @param string $inline_message_id Required if <em>chat_id</em> and <em>message_id</em> are not specified. Identifier of the inline message
@@ -1837,6 +1849,7 @@ public function stopMessageLiveLocation(
1837
1849
* @throws TelegramException
1838
1850
*/
1839
1851
publicfunctioneditMessageReplyMarkup(
1852
+
?string$business_connection_id = null,
1840
1853
int|string|null$chat_id = null,
1841
1854
?int$message_id = null,
1842
1855
?string$inline_message_id = null,
@@ -1850,12 +1863,17 @@ public function editMessageReplyMarkup(
1850
1863
*
1851
1864
* @param int|string $chat_id Unique identifier for the target chat or username of the target channel (in the format @channelusername)
1852
1865
* @param int $message_id Identifier of the original message with the poll
1866
+
* @param string $business_connection_id Unique identifier of the business connection on behalf of which the message to be edited was sent
1853
1867
* @param InlineKeyboardMarkup $reply_markup A JSON-serialized object for a new message <a href="https://core.telegram.org/bots/features#inline-keyboards">inline keyboard</a>.
* Returns the bot's Telegram Star transactions in chronological order. On success, returns a <a href="https://core.telegram.org/bots/api#startransactions">StarTransactions</a> object.
2341
+
*
2342
+
* @param int $offset Number of transactions to skip in the response
2343
+
* @param int $limit The maximum number of transactions to be retrieved. Values between 1-100 are accepted. Defaults to 100.
Copy file name to clipboardExpand all lines: src/Telegram/InlineKeyboardButton.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ class InlineKeyboardButton extends Type
19
19
/** <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
20
public ?string$url = null;
21
21
22
-
/** <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 button is pressed, 1-64 bytes. Not supported for messages sent on behalf of a Telegram Business account. */
22
+
/** <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 */
23
23
public ?string$callback_data = null;
24
24
25
25
/** <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. */
@@ -46,7 +46,7 @@ class InlineKeyboardButton extends Type
46
46
/**
47
47
* @param string $text Label text on the button
48
48
* @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.
49
-
* @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 button is pressed, 1-64 bytes. Not supported for messages sent on behalf of a Telegram Business account.
49
+
* @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
50
50
* @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.
51
51
* @param LoginUrl $login_url <em>Optional</em>. An HTTPS URL used to automatically authorize the user. Can be used as a replacement for the <a href="https://core.telegram.org/widgets/login">Telegram Login Widget</a>.
52
52
* @param string $switch_inline_query <em>Optional</em>. If set, pressing the button will prompt the user to select one of their chats, open that chat and insert the bot's username and the specified inline query in the input field. May be empty, in which case just the bot's username will be inserted. Not supported for messages sent on behalf of a Telegram Business account.
0 commit comments