mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-12-28 23:38:26 +01:00
Update content of files
This commit is contained in:
parent
421b0f49ba
commit
da69599244
16 changed files with 646 additions and 174 deletions
|
@ -140,7 +140,8 @@
|
||||||
<li>Bots never eat, sleep or complain (unless expressly programmed otherwise).</li>
|
<li>Bots never eat, sleep or complain (unless expressly programmed otherwise).</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h4><a class="anchor" name="bot-links" href="#bot-links"><i class="anchor-icon"></i></a>Bot Links</h4>
|
<h4><a class="anchor" name="bot-links" href="#bot-links"><i class="anchor-icon"></i></a>Bot Links</h4>
|
||||||
<p>Bot usernames normally require a ‘bot’ suffix, but some bots don’t have them – such as <a href="https://t.me/stickers">@stickers</a>, <a href="https://t.me/gif">@gif</a>, <a href="https://t.me/wiki">@wiki</a> or <a href="https://t.me/bing">@bing</a>. If you made a smooth and sleek bot and would like to remove the 'bot' part from its link, contact <a href="https://t.me/botsupport">@BotSupport</a>.</p>
|
<p>Bot usernames normally require a ‘bot’ suffix, but some bots don’t have them – such as <a href="https://t.me/stickers">@stickers</a>, <a href="https://t.me/gif">@gif</a>, <a href="https://t.me/wiki">@wiki</a> or <a href="https://t.me/bing">@bing</a>. </p>
|
||||||
|
<p>Anyone can <a href="https://telegram.org/blog/shareable-folders-custom-wallpapers#bot-links-and-telegram-premium-on-fragment">assign collectible usernames</a> to bots, including those without the 'bot' suffix.</p>
|
||||||
<h3><a class="anchor" name="how-do-i-create-a-bot" href="#how-do-i-create-a-bot"><i class="anchor-icon"></i></a>How Do I Create a Bot?</h3>
|
<h3><a class="anchor" name="how-do-i-create-a-bot" href="#how-do-i-create-a-bot"><i class="anchor-icon"></i></a>How Do I Create a Bot?</h3>
|
||||||
<p>Creating Telegram bots is super-easy, but you will need at least some skills in <strong>computer programming</strong>. </p>
|
<p>Creating Telegram bots is super-easy, but you will need at least some skills in <strong>computer programming</strong>. </p>
|
||||||
<p>Creating a bot is streamlined by Telegram’s Bot API, which gives the tools and framework required to integrate your code. To get started, message <a href="https://t.me/botfather">@BotFather</a> on Telegram to register your bot and receive its authentication token.</p>
|
<p>Creating a bot is streamlined by Telegram’s Bot API, which gives the tools and framework required to integrate your code. To get started, message <a href="https://t.me/botfather">@BotFather</a> on Telegram to register your bot and receive its authentication token.</p>
|
||||||
|
|
|
@ -55,6 +55,18 @@ To learn how to create…">
|
||||||
<p>Subscribe to <a href="https://t.me/botnews">@BotNews</a> to be the first to know about the latest updates and join the discussion in <a href="https://t.me/bottalk">@BotTalk</a></p>
|
<p>Subscribe to <a href="https://t.me/botnews">@BotNews</a> to be the first to know about the latest updates and join the discussion in <a href="https://t.me/bottalk">@BotTalk</a></p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<h3><a class="anchor" name="2023" href="#2023"><i class="anchor-icon"></i></a>2023</h3>
|
<h3><a class="anchor" name="2023" href="#2023"><i class="anchor-icon"></i></a>2023</h3>
|
||||||
|
<h4><a class="anchor" name="april-21-2023" href="#april-21-2023"><i class="anchor-icon"></i></a>April 21, 2023</h4>
|
||||||
|
<p><strong>Bot API 6.7</strong></p>
|
||||||
|
<ul>
|
||||||
|
<li>Added support for launching <a href="/bots/webapps">Web Apps</a> from inline query results by replacing the parameters <em>switch_pm_text</em> and <em>switch_pm_parameter</em> of the method <a href="/bots/api#answerinlinequery">answerInlineQuery</a> with the parameter <em>button</em> of type <a href="/bots/api#inlinequeryresultsbutton">InlineQueryResultsButton</a>.</li>
|
||||||
|
<li>Added the field <em>web_app_name</em> to the class <a href="/bots/api#writeaccessallowed">WriteAccessAllowed</a>.</li>
|
||||||
|
<li>Added the field <em>switch_inline_query_chosen_chat</em> of the type <a href="/bots/api#switchinlinequerychosenchat">SwitchInlineQueryChosenChat</a> to the class <a href="/bots/api#inlinekeyboardbutton">InlineKeyboardButton</a>, which allows bots to switch to inline mode in a chosen chat of the given type.</li>
|
||||||
|
<li>Added the field <em>via_chat_folder_invite_link</em> to the class <a href="/bots/api#chatmemberupdated">ChatMemberUpdated</a>.</li>
|
||||||
|
<li>Added the ability to set different bot names for different user languages using the method <a href="/bots/api#setmyname">setMyName</a>.</li>
|
||||||
|
<li>Added the ability to get the current bot name in the given language as the class <a href="/bots/api#botname">BotName</a> using the method <a href="/bots/api#getmyname">getMyName</a>.</li>
|
||||||
|
<li>Added the ability to change bot settings from the bot's profile in official Telegram apps, including the ability to set animated profile photos.</li>
|
||||||
|
<li>Added the ability to specify custom emoji entities using <a href="/bots/api#html-style">HTML</a> and <a href="/bots/api#markdownv2-style">MarkdownV2</a> formatting options for bots that purchased additional usernames on <a href="https://fragment.com">Fragment</a>.</li>
|
||||||
|
</ul>
|
||||||
<h4><a class="anchor" name="march-9-2023" href="#march-9-2023"><i class="anchor-icon"></i></a>March 9, 2023</h4>
|
<h4><a class="anchor" name="march-9-2023" href="#march-9-2023"><i class="anchor-icon"></i></a>March 9, 2023</h4>
|
||||||
<p><strong>Bot API 6.6</strong></p>
|
<p><strong>Bot API 6.6</strong></p>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
|
@ -57,6 +57,12 @@
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<hr>
|
<hr>
|
||||||
<h3><a class="anchor" name="recent-changes" href="#recent-changes"><i class="anchor-icon"></i></a>Recent changes</h3>
|
<h3><a class="anchor" name="recent-changes" href="#recent-changes"><i class="anchor-icon"></i></a>Recent changes</h3>
|
||||||
|
<h4><a class="anchor" name="april-21-2023" href="#april-21-2023"><i class="anchor-icon"></i></a>April 21, 2023</h4>
|
||||||
|
<p><strong>Bot API 6.7</strong></p>
|
||||||
|
<ul>
|
||||||
|
<li>Added support for launching Web Apps from inline query results and from a direct link.</li>
|
||||||
|
<li>Added the method <em>switchInlineQuery</em> to the class <a href="#initializing-web-apps">WebApp</a>.</li>
|
||||||
|
</ul>
|
||||||
<h4><a class="anchor" name="december-30-2022" href="#december-30-2022"><i class="anchor-icon"></i></a>December 30, 2022</h4>
|
<h4><a class="anchor" name="december-30-2022" href="#december-30-2022"><i class="anchor-icon"></i></a>December 30, 2022</h4>
|
||||||
<p><strong>Bot API 6.4</strong></p>
|
<p><strong>Bot API 6.4</strong></p>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -105,9 +111,10 @@
|
||||||
</ul>
|
</ul>
|
||||||
<hr>
|
<hr>
|
||||||
<h3><a class="anchor" name="implementing-web-apps" href="#implementing-web-apps"><i class="anchor-icon"></i></a>Implementing Web Apps</h3>
|
<h3><a class="anchor" name="implementing-web-apps" href="#implementing-web-apps"><i class="anchor-icon"></i></a>Implementing Web Apps</h3>
|
||||||
<p>Telegram currently supports four different ways of launching Web Apps: from a <a href="#keyboard-button-web-apps">keyboard button</a>, from an <a href="#inline-button-web-apps">inline button</a>, from the <a href="#launching-web-apps-from-the-menu-button">bot menu button</a> – and even from the <a href="#launching-web-apps-from-the-attachment-menu">attachment menu</a>.</p>
|
<p>Telegram currently supports six different ways of launching Web Apps: from a <a href="#keyboard-button-web-apps">keyboard button</a>, from an <a href="#inline-button-web-apps">inline button</a>, from the <a href="#launching-web-apps-from-the-menu-button">bot menu button</a>, via <a href="#inline-mode-web-apps">inline mode</a>, from a <a href="#direct-link-web-apps">direct link</a> – and even from the <a href="#launching-web-apps-from-the-attachment-menu">attachment menu</a>.</p>
|
||||||
<div class="blog_image_wrap blog_medium_image_wrap">
|
<div class="blog_image_wrap blog_medium_image_wrap">
|
||||||
<a href="/file/464001702/1194c/mBQhTbIWqw8.451557/08727d5d763e24d750" target="_blank"><img src="/file/464001702/1194c/mBQhTbIWqw8.451557/08727d5d763e24d750" title="" alt="Types of buttons" srcset="/file/464001702/1194c/mBQhTbIWqw8.451557/08727d5d763e24d750 , 2x" /></a>
|
<a href="/file/464001702/1194c/mBQhTbIWqw8.451557/08727d5d763e24d750" target="_blank"><img src="/file/464001702/1194c/mBQhTbIWqw8.451557/08727d5d763e24d750" title="" alt="Types of buttons" srcset="/file/464001702/1194c/mBQhTbIWqw8.451557/08727d5d763e24d750 , 2x" /></a>
|
||||||
|
<a href="/file/464001478/10d6c/O_mVbT98rH0.737224/907d941d8219ec2ff2" target="_blank"><img src="/file/464001478/10d6c/O_mVbT98rH0.737224/907d941d8219ec2ff2" title="Types of modes" class="dev_page_image" /></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h4><a class="anchor" name="keyboard-button-web-apps" href="#keyboard-button-web-apps"><i class="anchor-icon"></i></a>Keyboard Button Web Apps</h4>
|
<h4><a class="anchor" name="keyboard-button-web-apps" href="#keyboard-button-web-apps"><i class="anchor-icon"></i></a>Keyboard Button Web Apps</h4>
|
||||||
|
@ -155,6 +162,31 @@
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p><a href="https://t.me/durgerkingbot">@DurgerKingBot</a> allows launching its Web App both from an inline button and from the menu button.</p>
|
<p><a href="https://t.me/durgerkingbot">@DurgerKingBot</a> allows launching its Web App both from an inline button and from the menu button.</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
<h4><a class="anchor" name="inline-mode-web-apps" href="#inline-mode-web-apps"><i class="anchor-icon"></i></a>Inline Mode Web Apps</h4>
|
||||||
|
<blockquote>
|
||||||
|
<p><strong>TL;DR:</strong> Web Apps launched via <strong>switch_web_app</strong> can be used anywhere in inline mode. Users can create content in a web interface and then seamlessly send it to the current chat via inline mode.</p>
|
||||||
|
</blockquote>
|
||||||
|
<p><sup><mark>NEW</mark></sup> You can use the <em>switch_web_app</em> parameter in the <a href="/bots/api#answerinlinequery">answerInlineQuery</a> method to display a special 'Switch to Web App' button either above or in place of the inline results. This button will <strong>open a Web App</strong> from the specified URL. Once done, you can call the <a href="#initializing-web-apps">Telegram.WebApp.switchInlineQuery</a> method to send the user back to inline mode.</p>
|
||||||
|
<p>Inline Web Apps have <strong>no access</strong> to the chat – they can't read messages or send new ones on behalf of the user. To send messages, the user must be redirected to <strong>inline mode</strong> and actively pick a result.</p>
|
||||||
|
<p><strong>Good for:</strong></p>
|
||||||
|
<ul>
|
||||||
|
<li>Fully-fledged web services and integrations in inline mode.</li>
|
||||||
|
</ul>
|
||||||
|
<h4><a class="anchor" name="direct-link-web-apps" href="#direct-link-web-apps"><i class="anchor-icon"></i></a>Direct Link Web Apps</h4>
|
||||||
|
<blockquote>
|
||||||
|
<p><strong>TL;DR:</strong> Web App Bots can be launched from a direct link in any chat. They support a <em>startapp</em> parameter and are aware of the current chat context.</p>
|
||||||
|
</blockquote>
|
||||||
|
<p><sup><mark>NEW</mark></sup> You can use direct links to <strong>open a Web App</strong> directly in the current chat. If a non-empty <em>startapp</em> parameter is included in the link, it will be passed to the Web App in the <em>start_param</em> field and in the GET parameter <em>tgWebAppStartParam</em>.</p>
|
||||||
|
<p>In this mode, Web Apps can use the <em>chat_type</em> and <em>chat_instance</em> parameters to keep track of the current chat context. This introduces support for <strong>concurrent</strong> and <strong>shared</strong> usage by multiple chat members – to create live whiteboards, group orders, multiplayer games and similar apps.</p>
|
||||||
|
<p>Web Apps opened from a direct link have <strong>no access</strong> to the chat – they can't read messages or send new ones on behalf of the user. To send messages, the user must be redirected to <strong>inline mode</strong> and actively pick a result.</p>
|
||||||
|
<p><strong>Examples</strong></p>
|
||||||
|
<p><code>https://t.me/botusername/appname</code><br><code>https://t.me/botusername/appname?startapp=command</code></p>
|
||||||
|
<p><strong>Good for:</strong></p>
|
||||||
|
<ul>
|
||||||
|
<li>Fully-fledged web services and integrations that any user can open in one tap.</li>
|
||||||
|
<li>Cooperative, multiplayer or teamwork-oriented services within a chat context.</li>
|
||||||
|
<li>The use cases are effectively <strong>unlimited</strong>.</li>
|
||||||
|
</ul>
|
||||||
<h4><a class="anchor" name="launching-web-apps-from-the-attachment-menu" href="#launching-web-apps-from-the-attachment-menu"><i class="anchor-icon"></i></a>Launching Web Apps from the Attachment Menu</h4>
|
<h4><a class="anchor" name="launching-web-apps-from-the-attachment-menu" href="#launching-web-apps-from-the-attachment-menu"><i class="anchor-icon"></i></a>Launching Web Apps from the Attachment Menu</h4>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p><strong>TL;DR:</strong> Web App Bots can request to be added directly to a user's attachment menu, allowing them to be quickly launched from any chat. To try this mode, open this <a href="https://t.me/durgerkingbot?startattach">attachment menu link</a> for <em>@DurgerKingBot</em>, then use the <img class="icon" src="/file/464001085/2/E4hNXSNQimQ.2503/bf6ffcab3cb3afd43d" alt="Attach"> menu in <strong>any type of chat</strong>.</p>
|
<p><strong>TL;DR:</strong> Web App Bots can request to be added directly to a user's attachment menu, allowing them to be quickly launched from any chat. To try this mode, open this <a href="https://t.me/durgerkingbot?startattach">attachment menu link</a> for <em>@DurgerKingBot</em>, then use the <img class="icon" src="/file/464001085/2/E4hNXSNQimQ.2503/bf6ffcab3cb3afd43d" alt="Attach"> menu in <strong>any type of chat</strong>.</p>
|
||||||
|
@ -198,7 +230,7 @@
|
||||||
<td>The version of the Bot API available in the user's Telegram app.</td>
|
<td>The version of the Bot API available in the user's Telegram app.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>platform <sup><mark>NEW</mark></sup></td>
|
<td>platform</td>
|
||||||
<td>String</td>
|
<td>String</td>
|
||||||
<td>The name of the platform of the user's Telegram app.</td>
|
<td>The name of the platform of the user's Telegram app.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -298,6 +330,11 @@
|
||||||
<td>A method used to send data to the bot. When this method is called, a service message is sent to the bot containing the data <em>data</em> of the length up to 4096 bytes, and the Web App is closed. See the field <em>web_app_data</em> in the class <a href="/bots/api#message">Message</a>.<br><br><em>This method is only available for Web Apps launched via a <a href="#keyboard-button-web-apps">Keyboard button</a>.</em></td>
|
<td>A method used to send data to the bot. When this method is called, a service message is sent to the bot containing the data <em>data</em> of the length up to 4096 bytes, and the Web App is closed. See the field <em>web_app_data</em> in the class <a href="/bots/api#message">Message</a>.<br><br><em>This method is only available for Web Apps launched via a <a href="#keyboard-button-web-apps">Keyboard button</a>.</em></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>switchInlineQuery(query[, choose_chat_types]) <sup><mark>NEW</mark></sup></td>
|
||||||
|
<td>Function</td>
|
||||||
|
<td><mark>Bot API 6.7+</mark> A method that inserts the bot's username and the specified inline <em>query</em> in the current chat's input field. Query may be empty, in which case only the bot's username will be inserted. If an optional <em>choose_chat_types</em> parameter was passed, the client prompts the user to choose a specific chat, then opens that chat and inserts the bot's username and the specified inline query in the input field. You can specify which types of chats the user will be able to choose from. It can be one or more of the following types: <em>users</em>, <em>bots</em>, <em>groups</em>, <em>channels</em>.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
<td>openLink(url[, options])</td>
|
<td>openLink(url[, options])</td>
|
||||||
<td>Function</td>
|
<td>Function</td>
|
||||||
<td>A method that opens a link in an external browser. The Web App will <em>not</em> be closed.<br><mark>Bot API 6.4+</mark> If the optional <em>options</em> parameter is passed with the field <em>try_instant_view=true</em>, the link will be opened in <a href="https://instantview.telegram.org/">Instant View</a> mode if possible.<br><br><em>Note that this method can be called only in response to user interaction with the Web App interface (e.g. a click inside the Web App or on the main button)</em></td>
|
<td>A method that opens a link in an external browser. The Web App will <em>not</em> be closed.<br><mark>Bot API 6.4+</mark> If the optional <em>options</em> parameter is passed with the field <em>try_instant_view=true</em>, the link will be opened in <a href="https://instantview.telegram.org/">Instant View</a> mode if possible.<br><br><em>Note that this method can be called only in response to user interaction with the Web App interface (e.g. a click inside the Web App or on the main button)</em></td>
|
||||||
|
@ -328,17 +365,17 @@
|
||||||
<td><mark>Bot API 6.2+</mark> A method that shows <em>message</em> in a simple confirmation window with 'OK' and 'Cancel' buttons. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called when the popup is closed and the first argument will be a boolean indicating whether the user pressed the 'OK' button.</td>
|
<td><mark>Bot API 6.2+</mark> A method that shows <em>message</em> in a simple confirmation window with 'OK' and 'Cancel' buttons. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called when the popup is closed and the first argument will be a boolean indicating whether the user pressed the 'OK' button.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>showScanQrPopup(params[, callback]) <sup><mark>NEW</mark></sup></td>
|
<td>showScanQrPopup(params[, callback])</td>
|
||||||
<td>Function</td>
|
<td>Function</td>
|
||||||
<td><mark>Bot API 6.4+</mark> A method that shows a native popup for scanning a QR code described by the <em>params</em> argument of the type <a href="#scanqrpopupparams">ScanQrPopupParams</a>. The Web App will receive the <a href="#events-available-for-web-apps">event</a> <em>qrTextReceived</em> every time the scanner catches a code with text data. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called and the text from the QR code will be passed as the first argument. Returning <em>true</em> inside this callback function causes the popup to be closed.</td>
|
<td><mark>Bot API 6.4+</mark> A method that shows a native popup for scanning a QR code described by the <em>params</em> argument of the type <a href="#scanqrpopupparams">ScanQrPopupParams</a>. The Web App will receive the <a href="#events-available-for-web-apps">event</a> <em>qrTextReceived</em> every time the scanner catches a code with text data. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called and the text from the QR code will be passed as the first argument. Returning <em>true</em> inside this callback function causes the popup to be closed.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>closeScanQrPopup() <sup><mark>NEW</mark></sup></td>
|
<td>closeScanQrPopup()</td>
|
||||||
<td>Function</td>
|
<td>Function</td>
|
||||||
<td><mark>Bot API 6.4+</mark> A method that closes the native popup for scanning a QR code opened with the <em>showScanQrPopup</em> method. Run it if you received valid data in the <a href="#events-available-for-web-apps">event</a> <em>qrTextReceived</em>.</td>
|
<td><mark>Bot API 6.4+</mark> A method that closes the native popup for scanning a QR code opened with the <em>showScanQrPopup</em> method. Run it if you received valid data in the <a href="#events-available-for-web-apps">event</a> <em>qrTextReceived</em>.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>readTextFromClipboard([callback]) <sup><mark>NEW</mark></sup></td>
|
<td>readTextFromClipboard([callback])</td>
|
||||||
<td>Function</td>
|
<td>Function</td>
|
||||||
<td><mark>Bot API 6.4+</mark> A method that requests text from the clipboard. The Web App will receive the <a href="#events-available-for-web-apps">event</a> <em>clipboardTextReceived</em>. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called and the text from the clipboard will be passed as the first argument.<br><br><em>Note: this method can be called only for Web Apps launched from the attachment menu and only in response to a user interaction with the Web App interface (e.g. a click inside the Web App or on the main button).</em></td>
|
<td><mark>Bot API 6.4+</mark> A method that requests text from the clipboard. The Web App will receive the <a href="#events-available-for-web-apps">event</a> <em>clipboardTextReceived</em>. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called and the text from the clipboard will be passed as the first argument.<br><br><em>Note: this method can be called only for Web Apps launched from the attachment menu and only in response to a user interaction with the Web App interface (e.g. a click inside the Web App or on the main button).</em></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -440,7 +477,7 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<h4><a class="anchor" name="scanqrpopupparams" href="#scanqrpopupparams"><i class="anchor-icon"></i></a>ScanQrPopupParams</h4>
|
<h4><a class="anchor" name="scanqrpopupparams" href="#scanqrpopupparams"><i class="anchor-icon"></i></a>ScanQrPopupParams</h4>
|
||||||
<p><sup><mark>NEW</mark></sup> This object describes the native popup for scanning QR codes.</p>
|
<p>This object describes the native popup for scanning QR codes.</p>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -648,7 +685,7 @@
|
||||||
</table>
|
</table>
|
||||||
<p>All these methods return the HapticFeedback object so they can be chained.</p>
|
<p>All these methods return the HapticFeedback object so they can be chained.</p>
|
||||||
<h4><a class="anchor" name="webappinitdata" href="#webappinitdata"><i class="anchor-icon"></i></a>WebAppInitData</h4>
|
<h4><a class="anchor" name="webappinitdata" href="#webappinitdata"><i class="anchor-icon"></i></a>WebAppInitData</h4>
|
||||||
<p>This object contains data that is transferred to the Web App when it is opened. It is empty if the Web App was launched from a <a href="#keyboard-button-web-apps">keyboard button</a>.</p>
|
<p>This object contains data that is transferred to the Web App when it is opened. It is empty if the Web App was launched from a <a href="#keyboard-button-web-apps">keyboard button</a> or from <a href="#inline-mode-web-apps">inline mode</a>.</p>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -679,6 +716,16 @@
|
||||||
<td><em>Optional.</em> An object containing data about the chat where the bot was launched via the attachment menu. Returned for supergroups, channels and group chats – only for Web Apps launched via the attachment menu.</td>
|
<td><em>Optional.</em> An object containing data about the chat where the bot was launched via the attachment menu. Returned for supergroups, channels and group chats – only for Web Apps launched via the attachment menu.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>chat_type <sup><mark>NEW</mark></sup></td>
|
||||||
|
<td>String</td>
|
||||||
|
<td><em>Optional.</em> Type of the chat from which the Web App was opened. Can be either “sender” for a private chat with the user opening the link, “private”, “group”, “supergroup”, or “channel”. Returned only for Web Apps launched from direct links.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>chat_instance <sup><mark>NEW</mark></sup></td>
|
||||||
|
<td>String</td>
|
||||||
|
<td><em>Optional.</em> Global identifier, uniquely corresponding to the chat from which the Web App was opened. Returned only for Web Apps launched from a direct link.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
<td>start_param</td>
|
<td>start_param</td>
|
||||||
<td>String</td>
|
<td>String</td>
|
||||||
<td><em>Optional.</em> The value of the <em>startattach</em> parameter, passed <a href="#adding-bots-to-the-attachment-menu">via link</a>. Only returned for Web Apps when launched from the attachment menu via link.<br><br>The value of the <code>start_param</code> parameter will also be passed in the GET-parameter <code>tgWebAppStartParam</code>, so the Web App can load the correct interface right away.</td>
|
<td><em>Optional.</em> The value of the <em>startattach</em> parameter, passed <a href="#adding-bots-to-the-attachment-menu">via link</a>. Only returned for Web Apps when launched from the attachment menu via link.<br><br>The value of the <code>start_param</code> parameter will also be passed in the GET-parameter <code>tgWebAppStartParam</code>, so the Web App can load the correct interface right away.</td>
|
||||||
|
@ -842,11 +889,11 @@ if (hex(HMAC_SHA256(data_check_string, secret_key)) == hash) {
|
||||||
<td><mark>Bot API 6.2+</mark> Occurrs when the opened popup is closed.<br><em>eventHandler</em> receives an object with the single field <em>button_id</em> – the value of the field <em>id</em> of the pressed button. If no buttons were pressed, the field <em>button_id</em> will be <em>null</em>.</td>
|
<td><mark>Bot API 6.2+</mark> Occurrs when the opened popup is closed.<br><em>eventHandler</em> receives an object with the single field <em>button_id</em> – the value of the field <em>id</em> of the pressed button. If no buttons were pressed, the field <em>button_id</em> will be <em>null</em>.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>qrTextReceived</code> <sup><mark>NEW</mark></sup></td>
|
<td><code>qrTextReceived</code></td>
|
||||||
<td><mark>Bot API 6.4+</mark> Occurs when the QR code scanner catches a code with text data.<br><em>eventHandler</em> receives an object with the single field <em>data</em> containing text data from the QR code.</td>
|
<td><mark>Bot API 6.4+</mark> Occurs when the QR code scanner catches a code with text data.<br><em>eventHandler</em> receives an object with the single field <em>data</em> containing text data from the QR code.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>clipboardTextReceived</code> <sup><mark>NEW</mark></sup></td>
|
<td><code>clipboardTextReceived</code></td>
|
||||||
<td><mark>Bot API 6.4+</mark> Occurrs when the <code>readTextFromClipboard</code> method is called.<br><em>eventHandler</em> receives an object with the single field <em>data</em> containing text data from the clipboard. If the clipboard contains non-text data, the field <em>data</em> will be an empty string. If the Web App has no access to the clipboard, the field <em>data</em> will be <em>null</em>.</td>
|
<td><mark>Bot API 6.4+</mark> Occurrs when the <code>readTextFromClipboard</code> method is called.<br><em>eventHandler</em> receives an object with the single field <em>data</em> containing text data from the clipboard. If the clipboard contains non-text data, the field <em>data</em> will be an empty string. If the Web App has no access to the clipboard, the field <em>data</em> will be <em>null</em>.</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
@ -140,7 +140,8 @@
|
||||||
<li>Bots never eat, sleep or complain (unless expressly programmed otherwise).</li>
|
<li>Bots never eat, sleep or complain (unless expressly programmed otherwise).</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h4><a class="anchor" name="bot-links" href="#bot-links"><i class="anchor-icon"></i></a>Bot Links</h4>
|
<h4><a class="anchor" name="bot-links" href="#bot-links"><i class="anchor-icon"></i></a>Bot Links</h4>
|
||||||
<p>Bot usernames normally require a ‘bot’ suffix, but some bots don’t have them – such as <a href="https://t.me/stickers">@stickers</a>, <a href="https://t.me/gif">@gif</a>, <a href="https://t.me/wiki">@wiki</a> or <a href="https://t.me/bing">@bing</a>. If you made a smooth and sleek bot and would like to remove the 'bot' part from its link, contact <a href="https://t.me/botsupport">@BotSupport</a>.</p>
|
<p>Bot usernames normally require a ‘bot’ suffix, but some bots don’t have them – such as <a href="https://t.me/stickers">@stickers</a>, <a href="https://t.me/gif">@gif</a>, <a href="https://t.me/wiki">@wiki</a> or <a href="https://t.me/bing">@bing</a>. </p>
|
||||||
|
<p>Anyone can <a href="https://telegram.org/blog/shareable-folders-custom-wallpapers#bot-links-and-telegram-premium-on-fragment">assign collectible usernames</a> to bots, including those without the 'bot' suffix.</p>
|
||||||
<h3><a class="anchor" name="how-do-i-create-a-bot" href="#how-do-i-create-a-bot"><i class="anchor-icon"></i></a>How Do I Create a Bot?</h3>
|
<h3><a class="anchor" name="how-do-i-create-a-bot" href="#how-do-i-create-a-bot"><i class="anchor-icon"></i></a>How Do I Create a Bot?</h3>
|
||||||
<p>Creating Telegram bots is super-easy, but you will need at least some skills in <strong>computer programming</strong>. </p>
|
<p>Creating Telegram bots is super-easy, but you will need at least some skills in <strong>computer programming</strong>. </p>
|
||||||
<p>Creating a bot is streamlined by Telegram’s Bot API, which gives the tools and framework required to integrate your code. To get started, message <a href="https://t.me/botfather">@BotFather</a> on Telegram to register your bot and receive its authentication token.</p>
|
<p>Creating a bot is streamlined by Telegram’s Bot API, which gives the tools and framework required to integrate your code. To get started, message <a href="https://t.me/botfather">@BotFather</a> on Telegram to register your bot and receive its authentication token.</p>
|
||||||
|
|
|
@ -55,6 +55,18 @@ To learn how to create…">
|
||||||
<p>Subscribe to <a href="https://t.me/botnews">@BotNews</a> to be the first to know about the latest updates and join the discussion in <a href="https://t.me/bottalk">@BotTalk</a></p>
|
<p>Subscribe to <a href="https://t.me/botnews">@BotNews</a> to be the first to know about the latest updates and join the discussion in <a href="https://t.me/bottalk">@BotTalk</a></p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<h3><a class="anchor" name="2023" href="#2023"><i class="anchor-icon"></i></a>2023</h3>
|
<h3><a class="anchor" name="2023" href="#2023"><i class="anchor-icon"></i></a>2023</h3>
|
||||||
|
<h4><a class="anchor" name="april-21-2023" href="#april-21-2023"><i class="anchor-icon"></i></a>April 21, 2023</h4>
|
||||||
|
<p><strong>Bot API 6.7</strong></p>
|
||||||
|
<ul>
|
||||||
|
<li>Added support for launching <a href="/bots/webapps">Web Apps</a> from inline query results by replacing the parameters <em>switch_pm_text</em> and <em>switch_pm_parameter</em> of the method <a href="/bots/api#answerinlinequery">answerInlineQuery</a> with the parameter <em>button</em> of type <a href="/bots/api#inlinequeryresultsbutton">InlineQueryResultsButton</a>.</li>
|
||||||
|
<li>Added the field <em>web_app_name</em> to the class <a href="/bots/api#writeaccessallowed">WriteAccessAllowed</a>.</li>
|
||||||
|
<li>Added the field <em>switch_inline_query_chosen_chat</em> of the type <a href="/bots/api#switchinlinequerychosenchat">SwitchInlineQueryChosenChat</a> to the class <a href="/bots/api#inlinekeyboardbutton">InlineKeyboardButton</a>, which allows bots to switch to inline mode in a chosen chat of the given type.</li>
|
||||||
|
<li>Added the field <em>via_chat_folder_invite_link</em> to the class <a href="/bots/api#chatmemberupdated">ChatMemberUpdated</a>.</li>
|
||||||
|
<li>Added the ability to set different bot names for different user languages using the method <a href="/bots/api#setmyname">setMyName</a>.</li>
|
||||||
|
<li>Added the ability to get the current bot name in the given language as the class <a href="/bots/api#botname">BotName</a> using the method <a href="/bots/api#getmyname">getMyName</a>.</li>
|
||||||
|
<li>Added the ability to change bot settings from the bot's profile in official Telegram apps, including the ability to set animated profile photos.</li>
|
||||||
|
<li>Added the ability to specify custom emoji entities using <a href="/bots/api#html-style">HTML</a> and <a href="/bots/api#markdownv2-style">MarkdownV2</a> formatting options for bots that purchased additional usernames on <a href="https://fragment.com">Fragment</a>.</li>
|
||||||
|
</ul>
|
||||||
<h4><a class="anchor" name="march-9-2023" href="#march-9-2023"><i class="anchor-icon"></i></a>March 9, 2023</h4>
|
<h4><a class="anchor" name="march-9-2023" href="#march-9-2023"><i class="anchor-icon"></i></a>March 9, 2023</h4>
|
||||||
<p><strong>Bot API 6.6</strong></p>
|
<p><strong>Bot API 6.6</strong></p>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
|
@ -53,6 +53,18 @@ To learn how to create…">
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p>Subscribe to <a href="https://t.me/botnews">@BotNews</a> to be the first to know about the latest updates and join the discussion in <a href="https://t.me/bottalk">@BotTalk</a></p>
|
<p>Subscribe to <a href="https://t.me/botnews">@BotNews</a> to be the first to know about the latest updates and join the discussion in <a href="https://t.me/bottalk">@BotTalk</a></p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
<h4><a class="anchor" name="april-21-2023" href="#april-21-2023"><i class="anchor-icon"></i></a>April 21, 2023</h4>
|
||||||
|
<p><strong>Bot API 6.7</strong></p>
|
||||||
|
<ul>
|
||||||
|
<li>Added support for launching <a href="/bots/webapps">Web Apps</a> from inline query results by replacing the parameters <em>switch_pm_text</em> and <em>switch_pm_parameter</em> of the method <a href="#answerinlinequery">answerInlineQuery</a> with the parameter <em>button</em> of type <a href="#inlinequeryresultsbutton">InlineQueryResultsButton</a>.</li>
|
||||||
|
<li>Added the field <em>web_app_name</em> to the class <a href="#writeaccessallowed">WriteAccessAllowed</a>.</li>
|
||||||
|
<li>Added the field <em>switch_inline_query_chosen_chat</em> of the type <a href="#switchinlinequerychosenchat">SwitchInlineQueryChosenChat</a> to the class <a href="#inlinekeyboardbutton">InlineKeyboardButton</a>, which allows bots to switch to inline mode in a chosen chat of the given type.</li>
|
||||||
|
<li>Added the field <em>via_chat_folder_invite_link</em> to the class <a href="#chatmemberupdated">ChatMemberUpdated</a>.</li>
|
||||||
|
<li>Added the ability to set different bot names for different user languages using the method <a href="#setmyname">setMyName</a>.</li>
|
||||||
|
<li>Added the ability to get the current bot name in the given language as the class <a href="#botname">BotName</a> using the method <a href="#getmyname">getMyName</a>.</li>
|
||||||
|
<li>Added the ability to change bot settings from the bot's profile in official Telegram apps, including the ability to set animated profile photos.</li>
|
||||||
|
<li>Added the ability to specify custom emoji entities using <a href="#html-style">HTML</a> and <a href="#markdownv2-style">MarkdownV2</a> formatting options for bots that purchased additional usernames on <a href="https://fragment.com">Fragment</a>.</li>
|
||||||
|
</ul>
|
||||||
<h4><a class="anchor" name="march-9-2023" href="#march-9-2023"><i class="anchor-icon"></i></a>March 9, 2023</h4>
|
<h4><a class="anchor" name="march-9-2023" href="#march-9-2023"><i class="anchor-icon"></i></a>March 9, 2023</h4>
|
||||||
<p><strong>Bot API 6.6</strong></p>
|
<p><strong>Bot API 6.6</strong></p>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -93,38 +105,6 @@ To learn how to create…">
|
||||||
<li>Added the parameter <em>use_independent_chat_permissions</em> to the methods <a href="#restrictchatmember">restrictChatMember</a> and <a href="#setchatpermissions">setChatPermissions</a>.</li>
|
<li>Added the parameter <em>use_independent_chat_permissions</em> to the methods <a href="#restrictchatmember">restrictChatMember</a> and <a href="#setchatpermissions">setChatPermissions</a>.</li>
|
||||||
<li>Added the field <em>user_chat_id</em> to the class <a href="#chatjoinrequest">ChatJoinRequest</a>.</li>
|
<li>Added the field <em>user_chat_id</em> to the class <a href="#chatjoinrequest">ChatJoinRequest</a>.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h4><a class="anchor" name="december-30-2022" href="#december-30-2022"><i class="anchor-icon"></i></a>December 30, 2022</h4>
|
|
||||||
<p><strong>Bot API 6.4</strong></p>
|
|
||||||
<ul>
|
|
||||||
<li>Added the field <em>is_persistent</em> to the class <a href="#replykeyboardmarkup">ReplyKeyboardMarkup</a>, allowing to control when the keyboard is shown.</li>
|
|
||||||
<li>Added the parameter <em>has_spoiler</em> to the methods <a href="#sendphoto">sendPhoto</a>, <a href="#sendvideo">sendVideo</a>, and <a href="#sendanimation">sendAnimation</a>.</li>
|
|
||||||
<li>Added the field <em>has_spoiler</em> to the classes <a href="#inputmediaphoto">InputMediaPhoto</a>, <a href="#inputmediavideo">InputMediaVideo</a>, and <a href="#inputmediaanimation">InputMediaAnimation</a>.</li>
|
|
||||||
<li>Added the field <em>has_media_spoiler</em> to the class <a href="#message">Message</a>.</li>
|
|
||||||
<li>The parameters <em>name</em> and <em>icon_custom_emoji_id</em> of the method <a href="#editforumtopic">editForumTopic</a> are now optional. If they are omitted, the existing values are kept.</li>
|
|
||||||
<li>Added the classes <a href="#forumtopicedited">ForumTopicEdited</a>, <a href="#generalforumtopichidden">GeneralForumTopicHidden</a>, <a href="#generalforumtopicunhidden">GeneralForumTopicUnhidden</a>, and <a href="#writeaccessallowed">WriteAccessAllowed</a> and the fields <em>forum_topic_edited</em>, <em>general_forum_topic_hidden</em>, <em>general_forum_topic_unhidden</em>, and <em>write_access_allowed</em> to the class <a href="#message">Message</a>.</li>
|
|
||||||
<li>Added the methods <a href="#editgeneralforumtopic">editGeneralForumTopic</a>, <a href="#closegeneralforumtopic">closeGeneralForumTopic</a>, <a href="#reopengeneralforumtopic">reopenGeneralForumTopic</a>, <a href="#hidegeneralforumtopic">hideGeneralForumTopic</a>, <a href="#unhidegeneralforumtopic">unhideGeneralForumTopic</a> for managing the General topic in forums.</li>
|
|
||||||
<li>Added the parameter <em>message_thread_id</em> to the method <a href="#sendchataction">sendChatAction</a> for sending chat actions to a specific message thread or a forum topic.</li>
|
|
||||||
<li>Added the field <em>has_hidden_members</em> to the class <a href="#chat">Chat</a>. Note that the method <a href="#getchatmember">getChatMember</a> is only guaranteed to work if the bot is an administrator in the chat.</li>
|
|
||||||
<li>Added the field <em>has_aggressive_anti_spam_enabled</em> to the class <a href="#chat">Chat</a>.</li>
|
|
||||||
<li>Added Web App events <em>qrTextReceived</em> and <em>clipboardTextReceived</em>.</li>
|
|
||||||
<li>Added the field <em>platform</em> to the class <a href="/bots/webapps#initializing-web-apps">WebApp</a>.</li>
|
|
||||||
<li>Added the methods <em>showScanQrPopup</em>, <em>closeScanQrPopup</em>, and <em>readTextFromClipboard</em> to the class <a href="/bots/webapps#initializing-web-apps">WebApp</a>.</li>
|
|
||||||
<li>Added the parameter <em>options</em> to the method <em>openLink</em> of the class <a href="/bots/webapps#initializing-web-apps">WebApp</a>.</li>
|
|
||||||
</ul>
|
|
||||||
<h4><a class="anchor" name="november-5-2022" href="#november-5-2022"><i class="anchor-icon"></i></a>November 5, 2022</h4>
|
|
||||||
<p><strong>Bot API 6.3</strong></p>
|
|
||||||
<ul>
|
|
||||||
<li>Added support for <a href="https://telegram.org/blog/topics-in-groups-collectible-usernames#topics-in-groups">Topics in Groups</a>.</li>
|
|
||||||
<li>Added the field <em>is_forum</em> to the class <a href="#chat">Chat</a>.</li>
|
|
||||||
<li>Added the fields <em>is_topic_message</em> and <em>message_thread_id</em> to the class <a href="#message">Message</a> to allow detection of messages belonging to a forum topic and their message thread identifier.</li>
|
|
||||||
<li>Added the classes <a href="#forumtopiccreated">ForumTopicCreated</a>, <a href="#forumtopicclosed">ForumTopicClosed</a>, and <a href="#forumtopicreopened">ForumTopicReopened</a> and the fields <em>forum_topic_created</em>, <em>forum_topic_closed</em>, and <em>forum_topic_reopened</em> to the class <a href="#message">Message</a>. Note that service messages about forum topic creation can't be deleted with the <a href="#deletemessage">deleteMessage</a> method.</li>
|
|
||||||
<li>Added the field <em>can_manage_topics</em> to the classes <a href="#chatadministratorrights">ChatAdministratorRights</a>, <a href="#chatpermissions">ChatPermissions</a>, <a href="#chatmemberadministrator">ChatMemberAdministrator</a>, and <a href="#chatmemberrestricted">ChatMemberRestricted</a>.</li>
|
|
||||||
<li>Added the parameter <em>can_manage_topics</em> to the method <a href="#promotechatmember">promoteChatMember</a>.</li>
|
|
||||||
<li>Added the methods <a href="#createforumtopic">createForumTopic</a>, <a href="#editforumtopic">editForumTopic</a>, <a href="#closeforumtopic">closeForumTopic</a>, <a href="#reopenforumtopic">reopenForumTopic</a>, <a href="#deleteforumtopic">deleteForumTopic</a>, <a href="#unpinallforumtopicmessages">unpinAllForumTopicMessages</a>, and <a href="#getforumtopiciconstickers">getForumTopicIconStickers</a> for forum topic management.</li>
|
|
||||||
<li>Added the parameter <em>message_thread_id</em> to the methods <a href="#sendmessage">sendMessage</a>, <a href="#sendphoto">sendPhoto</a>, <a href="#sendvideo">sendVideo</a>, <a href="#sendanimation">sendAnimation</a>, <a href="#sendaudio">sendAudio</a>, <a href="#senddocument">sendDocument</a>, <a href="#sendsticker">sendSticker</a>, <a href="#sendvideonote">sendVideoNote</a>, <a href="#sendvoice">sendVoice</a>, <a href="#sendlocation">sendLocation</a>, <a href="#sendvenue">sendVenue</a>, <a href="#sendcontact">sendContact</a>, <a href="#sendpoll">sendPoll</a>, <a href="#senddice">sendDice</a>, <a href="#sendinvoice">sendInvoice</a>, <a href="#sendgame">sendGame</a>, <a href="#sendmediagroup">sendMediaGroup</a>, <a href="#copymessage">copyMessage</a>, <a href="#forwardmessage">forwardMessage</a> to support sending of messages to a forum topic.</li>
|
|
||||||
<li>Added support for <a href="https://telegram.org/blog/topics-in-groups-collectible-usernames#collectible-usernames">Multiple Usernames</a> via the field <em>active_usernames</em> in the class <a href="#chat">Chat</a>.</li>
|
|
||||||
<li>Added the field <em>emoji_status_custom_emoji_id</em> to the class <a href="#chat">Chat</a>.</li>
|
|
||||||
</ul>
|
|
||||||
<p><strong><a href="/bots/api-changelog">See earlier changes »</a></strong></p>
|
<p><strong><a href="/bots/api-changelog">See earlier changes »</a></strong></p>
|
||||||
<h3><a class="anchor" name="authorizing-your-bot" href="#authorizing-your-bot"><i class="anchor-icon"></i></a>Authorizing your bot</h3>
|
<h3><a class="anchor" name="authorizing-your-bot" href="#authorizing-your-bot"><i class="anchor-icon"></i></a>Authorizing your bot</h3>
|
||||||
<p>Each bot is given a unique authentication token <a href="/bots/features#botfather">when it is created</a>. The token looks something like <code>123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11</code>, but we'll use simply <strong><token></strong> in this document instead. You can learn about obtaining tokens and generating new ones in <a href="/bots/features#botfather">this document</a>.</p>
|
<p>Each bot is given a unique authentication token <a href="/bots/features#botfather">when it is created</a>. The token looks something like <code>123456:ABC-DEF1234ghIkl-zyx57W2v1u123ew11</code>, but we'll use simply <strong><token></strong> in this document instead. You can learn about obtaining tokens and generating new ones in <a href="/bots/features#botfather">this document</a>.</p>
|
||||||
|
@ -1888,7 +1868,23 @@ To learn how to create…">
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<h4><a class="anchor" name="writeaccessallowed" href="#writeaccessallowed"><i class="anchor-icon"></i></a>WriteAccessAllowed</h4>
|
<h4><a class="anchor" name="writeaccessallowed" href="#writeaccessallowed"><i class="anchor-icon"></i></a>WriteAccessAllowed</h4>
|
||||||
<p>This object represents a service message about a user allowing a bot added to the attachment menu to write messages. Currently holds no information.</p>
|
<p>This object represents a service message about a user allowing a bot to write messages after adding the bot to the attachment menu or launching a Web App from a link.</p>
|
||||||
|
<table class="table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Field</th>
|
||||||
|
<th>Type</th>
|
||||||
|
<th>Description</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>web_app_name</td>
|
||||||
|
<td>String</td>
|
||||||
|
<td><em>Optional</em>. Name of the Web App which was launched from a link</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
<h4><a class="anchor" name="videochatscheduled" href="#videochatscheduled"><i class="anchor-icon"></i></a>VideoChatScheduled</h4>
|
<h4><a class="anchor" name="videochatscheduled" href="#videochatscheduled"><i class="anchor-icon"></i></a>VideoChatScheduled</h4>
|
||||||
<p>This object represents a service message about a video chat scheduled in the chat.</p>
|
<p>This object represents a service message about a video chat scheduled in the chat.</p>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
|
@ -2302,6 +2298,11 @@ To learn how to create…">
|
||||||
<td><em>Optional</em>. If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. May be empty, in which case only the bot's username will be inserted.<br><br>This offers a quick way for the user to open your bot in inline mode in the same chat - good for selecting something from multiple options.</td>
|
<td><em>Optional</em>. If set, pressing the button will insert the bot's username and the specified inline query in the current chat's input field. May be empty, in which case only the bot's username will be inserted.<br><br>This offers a quick way for the user to open your bot in inline mode in the same chat - good for selecting something from multiple options.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>switch_inline_query_chosen_chat</td>
|
||||||
|
<td><a href="#switchinlinequerychosenchat">SwitchInlineQueryChosenChat</a></td>
|
||||||
|
<td><em>Optional</em>. If set, pressing the button will prompt the user to select one of their chats of the specified type, open that chat and insert the bot's username and the specified inline query in the input field</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
<td>callback_game</td>
|
<td>callback_game</td>
|
||||||
<td><a href="#callbackgame">CallbackGame</a></td>
|
<td><a href="#callbackgame">CallbackGame</a></td>
|
||||||
<td><em>Optional</em>. Description of the game that will be launched when the user presses the button.<br><br><strong>NOTE:</strong> This type of button <strong>must</strong> always be the first button in the first row.</td>
|
<td><em>Optional</em>. Description of the game that will be launched when the user presses the button.<br><br><strong>NOTE:</strong> This type of button <strong>must</strong> always be the first button in the first row.</td>
|
||||||
|
@ -2354,6 +2355,44 @@ To learn how to create…">
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<h4><a class="anchor" name="switchinlinequerychosenchat" href="#switchinlinequerychosenchat"><i class="anchor-icon"></i></a>SwitchInlineQueryChosenChat</h4>
|
||||||
|
<p>This object represents an inline button that switches the current user to inline mode in a chosen chat, with an optional default inline query.</p>
|
||||||
|
<table class="table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Field</th>
|
||||||
|
<th>Type</th>
|
||||||
|
<th>Description</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>query</td>
|
||||||
|
<td>String</td>
|
||||||
|
<td><em>Optional</em>. The default inline query to be inserted in the input field. If left empty, only the bot's username will be inserted</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>allow_user_chats</td>
|
||||||
|
<td>Boolean</td>
|
||||||
|
<td><em>Optional</em>. True, if private chats with users can be chosen</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>allow_bot_chats</td>
|
||||||
|
<td>Boolean</td>
|
||||||
|
<td><em>Optional</em>. True, if private chats with bots can be chosen</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>allow_group_chats</td>
|
||||||
|
<td>Boolean</td>
|
||||||
|
<td><em>Optional</em>. True, if group and supergroup chats can be chosen</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>allow_channel_chats</td>
|
||||||
|
<td>Boolean</td>
|
||||||
|
<td><em>Optional</em>. True, if channel chats can be chosen</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
<h4><a class="anchor" name="callbackquery" href="#callbackquery"><i class="anchor-icon"></i></a>CallbackQuery</h4>
|
<h4><a class="anchor" name="callbackquery" href="#callbackquery"><i class="anchor-icon"></i></a>CallbackQuery</h4>
|
||||||
<p>This object represents an incoming callback query from a callback button in an <a href="/bots/features#inline-keyboards">inline keyboard</a>. If the button that originated the query was attached to a message sent by the bot, the field <em>message</em> will be present. If the button was attached to a message sent via the bot (in <a href="#inline-mode">inline mode</a>), the field <em>inline_message_id</em> will be present. Exactly one of the fields <em>data</em> or <em>game_short_name</em> will be present.</p>
|
<p>This object represents an incoming callback query from a callback button in an <a href="/bots/features#inline-keyboards">inline keyboard</a>. If the button that originated the query was attached to a message sent by the bot, the field <em>message</em> will be present. If the button was attached to a message sent via the bot (in <a href="#inline-mode">inline mode</a>), the field <em>inline_message_id</em> will be present. Exactly one of the fields <em>data</em> or <em>game_short_name</em> will be present.</p>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
|
@ -2959,6 +2998,11 @@ To learn how to create…">
|
||||||
<td><a href="#chatinvitelink">ChatInviteLink</a></td>
|
<td><a href="#chatinvitelink">ChatInviteLink</a></td>
|
||||||
<td><em>Optional</em>. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.</td>
|
<td><em>Optional</em>. Chat invite link, which was used by the user to join the chat; for joining by invite link events only.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>via_chat_folder_invite_link</td>
|
||||||
|
<td>Boolean</td>
|
||||||
|
<td><em>Optional</em>. True, if the user joined the chat via a chat folder invite link</td>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<h4><a class="anchor" name="chatjoinrequest" href="#chatjoinrequest"><i class="anchor-icon"></i></a>ChatJoinRequest</h4>
|
<h4><a class="anchor" name="chatjoinrequest" href="#chatjoinrequest"><i class="anchor-icon"></i></a>ChatJoinRequest</h4>
|
||||||
|
@ -3349,6 +3393,24 @@ To learn how to create…">
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<h4><a class="anchor" name="botname" href="#botname"><i class="anchor-icon"></i></a>BotName</h4>
|
||||||
|
<p>This object represents the bot's name.</p>
|
||||||
|
<table class="table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Field</th>
|
||||||
|
<th>Type</th>
|
||||||
|
<th>Description</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>name</td>
|
||||||
|
<td>String</td>
|
||||||
|
<td>The bot's name</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
<h4><a class="anchor" name="botdescription" href="#botdescription"><i class="anchor-icon"></i></a>BotDescription</h4>
|
<h4><a class="anchor" name="botdescription" href="#botdescription"><i class="anchor-icon"></i></a>BotDescription</h4>
|
||||||
<p>This object represents the bot's description.</p>
|
<p>This object represents the bot's description.</p>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
|
@ -3904,6 +3966,7 @@ __underline__
|
||||||
*bold _italic bold ~italic bold strikethrough ||italic bold strikethrough spoiler||~ __underline italic bold___ bold*
|
*bold _italic bold ~italic bold strikethrough ||italic bold strikethrough spoiler||~ __underline italic bold___ bold*
|
||||||
[inline URL](http://www.example.com/)
|
[inline URL](http://www.example.com/)
|
||||||
[inline mention of a user](tg://user?id=123456789)
|
[inline mention of a user](tg://user?id=123456789)
|
||||||
|
![<img class="emoji" src="//telegram.org/img/emoji/40/F09F918D.png" width="20" height="20" alt="👍" />](tg://emoji?id=5368324170671202286)
|
||||||
`inline fixed-width code`
|
`inline fixed-width code`
|
||||||
```
|
```
|
||||||
pre-formatted fixed-width code block
|
pre-formatted fixed-width code block
|
||||||
|
@ -3915,9 +3978,11 @@ pre-formatted fixed-width code block written in the Python programming language
|
||||||
<ul>
|
<ul>
|
||||||
<li>Any character with code between 1 and 126 inclusively can be escaped anywhere with a preceding '\' character, in which case it is treated as an ordinary character and not a part of the markup. This implies that '\' character usually must be escaped with a preceding '\' character.</li>
|
<li>Any character with code between 1 and 126 inclusively can be escaped anywhere with a preceding '\' character, in which case it is treated as an ordinary character and not a part of the markup. This implies that '\' character usually must be escaped with a preceding '\' character.</li>
|
||||||
<li>Inside <code>pre</code> and <code>code</code> entities, all '`' and '\' characters must be escaped with a preceding '\' character.</li>
|
<li>Inside <code>pre</code> and <code>code</code> entities, all '`' and '\' characters must be escaped with a preceding '\' character.</li>
|
||||||
<li>Inside <code>(...)</code> part of inline link definition, all ')' and '\' must be escaped with a preceding '\' character.</li>
|
<li>Inside the <code>(...)</code> part of the inline link and custom emoji definition, all ')' and '\' must be escaped with a preceding '\' character.</li>
|
||||||
<li>In all other places characters '_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!' must be escaped with the preceding character '\'.</li>
|
<li>In all other places characters '_', '*', '[', ']', '(', ')', '~', '`', '>', '#', '+', '-', '=', '|', '{', '}', '.', '!' must be escaped with the preceding character '\'.</li>
|
||||||
<li>In case of ambiguity between <code>italic</code> and <code>underline</code> entities <code>__</code> is always greadily treated from left to right as beginning or end of <code>underline</code> entity, so instead of <code>___italic underline___</code> use <code>___italic underline_\r__</code>, where <code>\r</code> is a character with code 13, which will be ignored.</li>
|
<li>In case of ambiguity between <code>italic</code> and <code>underline</code> entities <code>__</code> is always greadily treated from left to right as beginning or end of <code>underline</code> entity, so instead of <code>___italic underline___</code> use <code>___italic underline_\r__</code>, where <code>\r</code> is a character with code 13, which will be ignored.</li>
|
||||||
|
<li>A valid emoji must be provided as an alternative value for the custom emoji. The emoji will be shown instead of the custom emoji in places where a custom emoji cannot be displayed (e.g., system notifications) or if the message is forwarded by a non-premium user. It is recommended to use the emoji from the <strong>emoji</strong> field of the custom emoji <a href="#sticker">sticker</a>.</li>
|
||||||
|
<li>Custom emoji entities can only be used by bots that purchased additional usernames on <a href="https://fragment.com">Fragment</a>.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h6><a class="anchor" name="html-style" href="#html-style"><i class="anchor-icon"></i></a>HTML style</h6>
|
<h6><a class="anchor" name="html-style" href="#html-style"><i class="anchor-icon"></i></a>HTML style</h6>
|
||||||
<p>To use this mode, pass <em>HTML</em> in the <em>parse_mode</em> field. The following tags are currently supported:</p>
|
<p>To use this mode, pass <em>HTML</em> in the <em>parse_mode</em> field. The following tags are currently supported:</p>
|
||||||
|
@ -3929,6 +3994,7 @@ pre-formatted fixed-width code block written in the Python programming language
|
||||||
<b>bold <i>italic bold <s>italic bold strikethrough <span class="tg-spoiler">italic bold strikethrough spoiler</span></s> <u>underline italic bold</u></i> bold</b>
|
<b>bold <i>italic bold <s>italic bold strikethrough <span class="tg-spoiler">italic bold strikethrough spoiler</span></s> <u>underline italic bold</u></i> bold</b>
|
||||||
<a href="http://www.example.com/">inline URL</a>
|
<a href="http://www.example.com/">inline URL</a>
|
||||||
<a href="tg://user?id=123456789">inline mention of a user</a>
|
<a href="tg://user?id=123456789">inline mention of a user</a>
|
||||||
|
<tg-emoji emoji-id="5368324170671202286"><img class="emoji" src="//telegram.org/img/emoji/40/F09F918D.png" width="20" height="20" alt="👍" /></tg-emoji>
|
||||||
<code>inline fixed-width code</code>
|
<code>inline fixed-width code</code>
|
||||||
<pre>pre-formatted fixed-width code block</pre>
|
<pre>pre-formatted fixed-width code block</pre>
|
||||||
<pre><code class="language-python">pre-formatted fixed-width code block written in the Python programming language</code></pre></code></pre>
|
<pre><code class="language-python">pre-formatted fixed-width code block written in the Python programming language</code></pre></code></pre>
|
||||||
|
@ -3940,6 +4006,8 @@ pre-formatted fixed-width code block written in the Python programming language
|
||||||
<li>The API currently supports only the following named HTML entities: <code>&lt;</code>, <code>&gt;</code>, <code>&amp;</code> and <code>&quot;</code>.</li>
|
<li>The API currently supports only the following named HTML entities: <code>&lt;</code>, <code>&gt;</code>, <code>&amp;</code> and <code>&quot;</code>.</li>
|
||||||
<li>Use nested <code>pre</code> and <code>code</code> tags, to define programming language for <code>pre</code> entity.</li>
|
<li>Use nested <code>pre</code> and <code>code</code> tags, to define programming language for <code>pre</code> entity.</li>
|
||||||
<li>Programming language can't be specified for standalone <code>code</code> tags.</li>
|
<li>Programming language can't be specified for standalone <code>code</code> tags.</li>
|
||||||
|
<li>A valid emoji must be used as the content of the <code>tg-emoji</code> tag. The emoji will be shown instead of the custom emoji in places where a custom emoji cannot be displayed (e.g., system notifications) or if the message is forwarded by a non-premium user. It is recommended to use the emoji from the <strong>emoji</strong> field of the custom emoji <a href="#sticker">sticker</a>.</li>
|
||||||
|
<li>Custom emoji entities can only be used by bots that purchased additional usernames on <a href="https://fragment.com">Fragment</a>.</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h6><a class="anchor" name="markdown-style" href="#markdown-style"><i class="anchor-icon"></i></a>Markdown style</h6>
|
<h6><a class="anchor" name="markdown-style" href="#markdown-style"><i class="anchor-icon"></i></a>Markdown style</h6>
|
||||||
<p>This is a legacy mode, retained for backward compatibility. To use this mode, pass <em>Markdown</em> in the <em>parse_mode</em> field. Use the following syntax in your message:</p>
|
<p>This is a legacy mode, retained for backward compatibility. To use this mode, pass <em>Markdown</em> in the <em>parse_mode</em> field. Use the following syntax in your message:</p>
|
||||||
|
@ -6653,6 +6721,52 @@ pre-formatted fixed-width code block written in the Python programming language
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
<h4><a class="anchor" name="setmyname" href="#setmyname"><i class="anchor-icon"></i></a>setMyName</h4>
|
||||||
|
<p>Use this method to change the bot's name. Returns <em>True</em> on success.</p>
|
||||||
|
<table class="table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Parameter</th>
|
||||||
|
<th>Type</th>
|
||||||
|
<th>Required</th>
|
||||||
|
<th>Description</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>name</td>
|
||||||
|
<td>String</td>
|
||||||
|
<td>Optional</td>
|
||||||
|
<td>New bot name; 0-64 characters. Pass an empty string to remove the dedicated name for the given language.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>language_code</td>
|
||||||
|
<td>String</td>
|
||||||
|
<td>Optional</td>
|
||||||
|
<td>A two-letter ISO 639-1 language code. If empty, the name will be shown to all users for whose language there is no dedicated name.</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<h4><a class="anchor" name="getmyname" href="#getmyname"><i class="anchor-icon"></i></a>getMyName</h4>
|
||||||
|
<p>Use this method to get the current bot name for the given user language. Returns <a href="#botname">BotName</a> on success.</p>
|
||||||
|
<table class="table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Parameter</th>
|
||||||
|
<th>Type</th>
|
||||||
|
<th>Required</th>
|
||||||
|
<th>Description</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>language_code</td>
|
||||||
|
<td>String</td>
|
||||||
|
<td>Optional</td>
|
||||||
|
<td>A two-letter ISO 639-1 language code or an empty string</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
<h4><a class="anchor" name="setmydescription" href="#setmydescription"><i class="anchor-icon"></i></a>setMyDescription</h4>
|
<h4><a class="anchor" name="setmydescription" href="#setmydescription"><i class="anchor-icon"></i></a>setMyDescription</h4>
|
||||||
<p>Use this method to change the bot's description, which is shown in the chat with the bot if the chat is empty. Returns <em>True</em> on success.</p>
|
<p>Use this method to change the bot's description, which is shown in the chat with the bot if the chat is empty. Returns <em>True</em> on success.</p>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
|
@ -7946,7 +8060,7 @@ pre-formatted fixed-width code block written in the Python programming language
|
||||||
<td>is_personal</td>
|
<td>is_personal</td>
|
||||||
<td>Boolean</td>
|
<td>Boolean</td>
|
||||||
<td>Optional</td>
|
<td>Optional</td>
|
||||||
<td>Pass <em>True</em> if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query</td>
|
<td>Pass <em>True</em> if results may be cached on the server side only for the user that sent the query. By default, results may be returned to any user who sends the same query.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>next_offset</td>
|
<td>next_offset</td>
|
||||||
|
@ -7955,16 +8069,38 @@ pre-formatted fixed-width code block written in the Python programming language
|
||||||
<td>Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes.</td>
|
<td>Pass the offset that a client should send in the next query with the same text to receive more results. Pass an empty string if there are no more results or if you don't support pagination. Offset length can't exceed 64 bytes.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>switch_pm_text</td>
|
<td>button</td>
|
||||||
<td>String</td>
|
<td><a href="#inlinequeryresultsbutton">InlineQueryResultsButton</a></td>
|
||||||
<td>Optional</td>
|
<td>Optional</td>
|
||||||
<td>If passed, clients will display a button with specified text that switches the user to a private chat with the bot and sends the bot a start message with the parameter <em>switch_pm_parameter</em></td>
|
<td>A JSON-serialized object describing a button to be shown above inline query results</td>
|
||||||
|
</tr>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
<h4><a class="anchor" name="inlinequeryresultsbutton" href="#inlinequeryresultsbutton"><i class="anchor-icon"></i></a>InlineQueryResultsButton</h4>
|
||||||
|
<p>This object represents a button to be shown above inline query results. You <strong>must</strong> use exactly one of the optional fields.</p>
|
||||||
|
<table class="table">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Field</th>
|
||||||
|
<th>Type</th>
|
||||||
|
<th>Description</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>text</td>
|
||||||
|
<td>String</td>
|
||||||
|
<td>Label text on the button</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>switch_pm_parameter</td>
|
<td>web_app</td>
|
||||||
|
<td><a href="#webappinfo">WebAppInfo</a></td>
|
||||||
|
<td><em>Optional</em>. Description of the <a href="/bots/webapps">Web App</a> that will be launched when the user presses the button. The Web App will be able to switch back to the inline mode using the method <em>web_app_switch_inline_query</em> inside the Web App.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>start_parameter</td>
|
||||||
<td>String</td>
|
<td>String</td>
|
||||||
<td>Optional</td>
|
<td><em>Optional</em>. <a href="/bots/features#deep-linking">Deep-linking</a> parameter for the /start message sent to the bot when a user presses the button. 1-64 characters, only <code>A-Z</code>, <code>a-z</code>, <code>0-9</code>, <code>_</code> and <code>-</code> are allowed.<br><br><em>Example:</em> An inline bot that sends YouTube videos can ask the user to connect the bot to their YouTube account to adapt search results accordingly. To do this, it displays a 'Connect your YouTube account' button above the results, or even before showing any. The user presses the button, switches to a private chat with the bot and, in doing so, passes a start parameter that instructs the bot to return an OAuth link. Once done, the bot can offer a <a href="#inlinekeyboardmarkup"><em>switch_inline</em></a> button so that the user can easily return to the chat where they wanted to use the bot's inline capabilities.</td>
|
||||||
<td><a href="/bots/features#deep-linking">Deep-linking</a> parameter for the /start message sent to the bot when user presses the switch button. 1-64 characters, only <code>A-Z</code>, <code>a-z</code>, <code>0-9</code>, <code>_</code> and <code>-</code> are allowed.<br><br><em>Example:</em> An inline bot that sends YouTube videos can ask the user to connect the bot to their YouTube account to adapt search results accordingly. To do this, it displays a 'Connect your YouTube account' button above the results, or even before showing any. The user presses the button, switches to a private chat with the bot and, in doing so, passes a start parameter that instructs the bot to return an OAuth link. Once done, the bot can offer a <a href="#inlinekeyboardmarkup"><em>switch_inline</em></a> button so that the user can easily return to the chat where they wanted to use the bot's inline capabilities.</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -57,6 +57,12 @@
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<hr>
|
<hr>
|
||||||
<h3><a class="anchor" name="recent-changes" href="#recent-changes"><i class="anchor-icon"></i></a>Recent changes</h3>
|
<h3><a class="anchor" name="recent-changes" href="#recent-changes"><i class="anchor-icon"></i></a>Recent changes</h3>
|
||||||
|
<h4><a class="anchor" name="april-21-2023" href="#april-21-2023"><i class="anchor-icon"></i></a>April 21, 2023</h4>
|
||||||
|
<p><strong>Bot API 6.7</strong></p>
|
||||||
|
<ul>
|
||||||
|
<li>Added support for launching Web Apps from inline query results and from a direct link.</li>
|
||||||
|
<li>Added the method <em>switchInlineQuery</em> to the class <a href="#initializing-web-apps">WebApp</a>.</li>
|
||||||
|
</ul>
|
||||||
<h4><a class="anchor" name="december-30-2022" href="#december-30-2022"><i class="anchor-icon"></i></a>December 30, 2022</h4>
|
<h4><a class="anchor" name="december-30-2022" href="#december-30-2022"><i class="anchor-icon"></i></a>December 30, 2022</h4>
|
||||||
<p><strong>Bot API 6.4</strong></p>
|
<p><strong>Bot API 6.4</strong></p>
|
||||||
<ul>
|
<ul>
|
||||||
|
@ -105,9 +111,10 @@
|
||||||
</ul>
|
</ul>
|
||||||
<hr>
|
<hr>
|
||||||
<h3><a class="anchor" name="implementing-web-apps" href="#implementing-web-apps"><i class="anchor-icon"></i></a>Implementing Web Apps</h3>
|
<h3><a class="anchor" name="implementing-web-apps" href="#implementing-web-apps"><i class="anchor-icon"></i></a>Implementing Web Apps</h3>
|
||||||
<p>Telegram currently supports four different ways of launching Web Apps: from a <a href="#keyboard-button-web-apps">keyboard button</a>, from an <a href="#inline-button-web-apps">inline button</a>, from the <a href="#launching-web-apps-from-the-menu-button">bot menu button</a> – and even from the <a href="#launching-web-apps-from-the-attachment-menu">attachment menu</a>.</p>
|
<p>Telegram currently supports six different ways of launching Web Apps: from a <a href="#keyboard-button-web-apps">keyboard button</a>, from an <a href="#inline-button-web-apps">inline button</a>, from the <a href="#launching-web-apps-from-the-menu-button">bot menu button</a>, via <a href="#inline-mode-web-apps">inline mode</a>, from a <a href="#direct-link-web-apps">direct link</a> – and even from the <a href="#launching-web-apps-from-the-attachment-menu">attachment menu</a>.</p>
|
||||||
<div class="blog_image_wrap blog_medium_image_wrap">
|
<div class="blog_image_wrap blog_medium_image_wrap">
|
||||||
<a href="/file/464001702/1194c/mBQhTbIWqw8.451557/08727d5d763e24d750" target="_blank"><img src="/file/464001702/1194c/mBQhTbIWqw8.451557/08727d5d763e24d750" title="" alt="Types of buttons" srcset="/file/464001702/1194c/mBQhTbIWqw8.451557/08727d5d763e24d750 , 2x" /></a>
|
<a href="/file/464001702/1194c/mBQhTbIWqw8.451557/08727d5d763e24d750" target="_blank"><img src="/file/464001702/1194c/mBQhTbIWqw8.451557/08727d5d763e24d750" title="" alt="Types of buttons" srcset="/file/464001702/1194c/mBQhTbIWqw8.451557/08727d5d763e24d750 , 2x" /></a>
|
||||||
|
<a href="/file/464001478/10d6c/O_mVbT98rH0.737224/907d941d8219ec2ff2" target="_blank"><img src="/file/464001478/10d6c/O_mVbT98rH0.737224/907d941d8219ec2ff2" title="Types of modes" class="dev_page_image" /></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h4><a class="anchor" name="keyboard-button-web-apps" href="#keyboard-button-web-apps"><i class="anchor-icon"></i></a>Keyboard Button Web Apps</h4>
|
<h4><a class="anchor" name="keyboard-button-web-apps" href="#keyboard-button-web-apps"><i class="anchor-icon"></i></a>Keyboard Button Web Apps</h4>
|
||||||
|
@ -155,6 +162,31 @@
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p><a href="https://t.me/durgerkingbot">@DurgerKingBot</a> allows launching its Web App both from an inline button and from the menu button.</p>
|
<p><a href="https://t.me/durgerkingbot">@DurgerKingBot</a> allows launching its Web App both from an inline button and from the menu button.</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
<h4><a class="anchor" name="inline-mode-web-apps" href="#inline-mode-web-apps"><i class="anchor-icon"></i></a>Inline Mode Web Apps</h4>
|
||||||
|
<blockquote>
|
||||||
|
<p><strong>TL;DR:</strong> Web Apps launched via <strong>switch_web_app</strong> can be used anywhere in inline mode. Users can create content in a web interface and then seamlessly send it to the current chat via inline mode.</p>
|
||||||
|
</blockquote>
|
||||||
|
<p><sup><mark>NEW</mark></sup> You can use the <em>switch_web_app</em> parameter in the <a href="/bots/api#answerinlinequery">answerInlineQuery</a> method to display a special 'Switch to Web App' button either above or in place of the inline results. This button will <strong>open a Web App</strong> from the specified URL. Once done, you can call the <a href="#initializing-web-apps">Telegram.WebApp.switchInlineQuery</a> method to send the user back to inline mode.</p>
|
||||||
|
<p>Inline Web Apps have <strong>no access</strong> to the chat – they can't read messages or send new ones on behalf of the user. To send messages, the user must be redirected to <strong>inline mode</strong> and actively pick a result.</p>
|
||||||
|
<p><strong>Good for:</strong></p>
|
||||||
|
<ul>
|
||||||
|
<li>Fully-fledged web services and integrations in inline mode.</li>
|
||||||
|
</ul>
|
||||||
|
<h4><a class="anchor" name="direct-link-web-apps" href="#direct-link-web-apps"><i class="anchor-icon"></i></a>Direct Link Web Apps</h4>
|
||||||
|
<blockquote>
|
||||||
|
<p><strong>TL;DR:</strong> Web App Bots can be launched from a direct link in any chat. They support a <em>startapp</em> parameter and are aware of the current chat context.</p>
|
||||||
|
</blockquote>
|
||||||
|
<p><sup><mark>NEW</mark></sup> You can use direct links to <strong>open a Web App</strong> directly in the current chat. If a non-empty <em>startapp</em> parameter is included in the link, it will be passed to the Web App in the <em>start_param</em> field and in the GET parameter <em>tgWebAppStartParam</em>.</p>
|
||||||
|
<p>In this mode, Web Apps can use the <em>chat_type</em> and <em>chat_instance</em> parameters to keep track of the current chat context. This introduces support for <strong>concurrent</strong> and <strong>shared</strong> usage by multiple chat members – to create live whiteboards, group orders, multiplayer games and similar apps.</p>
|
||||||
|
<p>Web Apps opened from a direct link have <strong>no access</strong> to the chat – they can't read messages or send new ones on behalf of the user. To send messages, the user must be redirected to <strong>inline mode</strong> and actively pick a result.</p>
|
||||||
|
<p><strong>Examples</strong></p>
|
||||||
|
<p><code>https://t.me/botusername/appname</code><br><code>https://t.me/botusername/appname?startapp=command</code></p>
|
||||||
|
<p><strong>Good for:</strong></p>
|
||||||
|
<ul>
|
||||||
|
<li>Fully-fledged web services and integrations that any user can open in one tap.</li>
|
||||||
|
<li>Cooperative, multiplayer or teamwork-oriented services within a chat context.</li>
|
||||||
|
<li>The use cases are effectively <strong>unlimited</strong>.</li>
|
||||||
|
</ul>
|
||||||
<h4><a class="anchor" name="launching-web-apps-from-the-attachment-menu" href="#launching-web-apps-from-the-attachment-menu"><i class="anchor-icon"></i></a>Launching Web Apps from the Attachment Menu</h4>
|
<h4><a class="anchor" name="launching-web-apps-from-the-attachment-menu" href="#launching-web-apps-from-the-attachment-menu"><i class="anchor-icon"></i></a>Launching Web Apps from the Attachment Menu</h4>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p><strong>TL;DR:</strong> Web App Bots can request to be added directly to a user's attachment menu, allowing them to be quickly launched from any chat. To try this mode, open this <a href="https://t.me/durgerkingbot?startattach">attachment menu link</a> for <em>@DurgerKingBot</em>, then use the <img class="icon" src="/file/464001085/2/E4hNXSNQimQ.2503/bf6ffcab3cb3afd43d" alt="Attach"> menu in <strong>any type of chat</strong>.</p>
|
<p><strong>TL;DR:</strong> Web App Bots can request to be added directly to a user's attachment menu, allowing them to be quickly launched from any chat. To try this mode, open this <a href="https://t.me/durgerkingbot?startattach">attachment menu link</a> for <em>@DurgerKingBot</em>, then use the <img class="icon" src="/file/464001085/2/E4hNXSNQimQ.2503/bf6ffcab3cb3afd43d" alt="Attach"> menu in <strong>any type of chat</strong>.</p>
|
||||||
|
@ -198,7 +230,7 @@
|
||||||
<td>The version of the Bot API available in the user's Telegram app.</td>
|
<td>The version of the Bot API available in the user's Telegram app.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>platform <sup><mark>NEW</mark></sup></td>
|
<td>platform</td>
|
||||||
<td>String</td>
|
<td>String</td>
|
||||||
<td>The name of the platform of the user's Telegram app.</td>
|
<td>The name of the platform of the user's Telegram app.</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -298,6 +330,11 @@
|
||||||
<td>A method used to send data to the bot. When this method is called, a service message is sent to the bot containing the data <em>data</em> of the length up to 4096 bytes, and the Web App is closed. See the field <em>web_app_data</em> in the class <a href="/bots/api#message">Message</a>.<br><br><em>This method is only available for Web Apps launched via a <a href="#keyboard-button-web-apps">Keyboard button</a>.</em></td>
|
<td>A method used to send data to the bot. When this method is called, a service message is sent to the bot containing the data <em>data</em> of the length up to 4096 bytes, and the Web App is closed. See the field <em>web_app_data</em> in the class <a href="/bots/api#message">Message</a>.<br><br><em>This method is only available for Web Apps launched via a <a href="#keyboard-button-web-apps">Keyboard button</a>.</em></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>switchInlineQuery(query[, choose_chat_types]) <sup><mark>NEW</mark></sup></td>
|
||||||
|
<td>Function</td>
|
||||||
|
<td><mark>Bot API 6.7+</mark> A method that inserts the bot's username and the specified inline <em>query</em> in the current chat's input field. Query may be empty, in which case only the bot's username will be inserted. If an optional <em>choose_chat_types</em> parameter was passed, the client prompts the user to choose a specific chat, then opens that chat and inserts the bot's username and the specified inline query in the input field. You can specify which types of chats the user will be able to choose from. It can be one or more of the following types: <em>users</em>, <em>bots</em>, <em>groups</em>, <em>channels</em>.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
<td>openLink(url[, options])</td>
|
<td>openLink(url[, options])</td>
|
||||||
<td>Function</td>
|
<td>Function</td>
|
||||||
<td>A method that opens a link in an external browser. The Web App will <em>not</em> be closed.<br><mark>Bot API 6.4+</mark> If the optional <em>options</em> parameter is passed with the field <em>try_instant_view=true</em>, the link will be opened in <a href="https://instantview.telegram.org/">Instant View</a> mode if possible.<br><br><em>Note that this method can be called only in response to user interaction with the Web App interface (e.g. a click inside the Web App or on the main button)</em></td>
|
<td>A method that opens a link in an external browser. The Web App will <em>not</em> be closed.<br><mark>Bot API 6.4+</mark> If the optional <em>options</em> parameter is passed with the field <em>try_instant_view=true</em>, the link will be opened in <a href="https://instantview.telegram.org/">Instant View</a> mode if possible.<br><br><em>Note that this method can be called only in response to user interaction with the Web App interface (e.g. a click inside the Web App or on the main button)</em></td>
|
||||||
|
@ -328,17 +365,17 @@
|
||||||
<td><mark>Bot API 6.2+</mark> A method that shows <em>message</em> in a simple confirmation window with 'OK' and 'Cancel' buttons. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called when the popup is closed and the first argument will be a boolean indicating whether the user pressed the 'OK' button.</td>
|
<td><mark>Bot API 6.2+</mark> A method that shows <em>message</em> in a simple confirmation window with 'OK' and 'Cancel' buttons. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called when the popup is closed and the first argument will be a boolean indicating whether the user pressed the 'OK' button.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>showScanQrPopup(params[, callback]) <sup><mark>NEW</mark></sup></td>
|
<td>showScanQrPopup(params[, callback])</td>
|
||||||
<td>Function</td>
|
<td>Function</td>
|
||||||
<td><mark>Bot API 6.4+</mark> A method that shows a native popup for scanning a QR code described by the <em>params</em> argument of the type <a href="#scanqrpopupparams">ScanQrPopupParams</a>. The Web App will receive the <a href="#events-available-for-web-apps">event</a> <em>qrTextReceived</em> every time the scanner catches a code with text data. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called and the text from the QR code will be passed as the first argument. Returning <em>true</em> inside this callback function causes the popup to be closed.</td>
|
<td><mark>Bot API 6.4+</mark> A method that shows a native popup for scanning a QR code described by the <em>params</em> argument of the type <a href="#scanqrpopupparams">ScanQrPopupParams</a>. The Web App will receive the <a href="#events-available-for-web-apps">event</a> <em>qrTextReceived</em> every time the scanner catches a code with text data. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called and the text from the QR code will be passed as the first argument. Returning <em>true</em> inside this callback function causes the popup to be closed.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>closeScanQrPopup() <sup><mark>NEW</mark></sup></td>
|
<td>closeScanQrPopup()</td>
|
||||||
<td>Function</td>
|
<td>Function</td>
|
||||||
<td><mark>Bot API 6.4+</mark> A method that closes the native popup for scanning a QR code opened with the <em>showScanQrPopup</em> method. Run it if you received valid data in the <a href="#events-available-for-web-apps">event</a> <em>qrTextReceived</em>.</td>
|
<td><mark>Bot API 6.4+</mark> A method that closes the native popup for scanning a QR code opened with the <em>showScanQrPopup</em> method. Run it if you received valid data in the <a href="#events-available-for-web-apps">event</a> <em>qrTextReceived</em>.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>readTextFromClipboard([callback]) <sup><mark>NEW</mark></sup></td>
|
<td>readTextFromClipboard([callback])</td>
|
||||||
<td>Function</td>
|
<td>Function</td>
|
||||||
<td><mark>Bot API 6.4+</mark> A method that requests text from the clipboard. The Web App will receive the <a href="#events-available-for-web-apps">event</a> <em>clipboardTextReceived</em>. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called and the text from the clipboard will be passed as the first argument.<br><br><em>Note: this method can be called only for Web Apps launched from the attachment menu and only in response to a user interaction with the Web App interface (e.g. a click inside the Web App or on the main button).</em></td>
|
<td><mark>Bot API 6.4+</mark> A method that requests text from the clipboard. The Web App will receive the <a href="#events-available-for-web-apps">event</a> <em>clipboardTextReceived</em>. If an optional <em>callback</em> parameter was passed, the <em>callback</em> function will be called and the text from the clipboard will be passed as the first argument.<br><br><em>Note: this method can be called only for Web Apps launched from the attachment menu and only in response to a user interaction with the Web App interface (e.g. a click inside the Web App or on the main button).</em></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -440,7 +477,7 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<h4><a class="anchor" name="scanqrpopupparams" href="#scanqrpopupparams"><i class="anchor-icon"></i></a>ScanQrPopupParams</h4>
|
<h4><a class="anchor" name="scanqrpopupparams" href="#scanqrpopupparams"><i class="anchor-icon"></i></a>ScanQrPopupParams</h4>
|
||||||
<p><sup><mark>NEW</mark></sup> This object describes the native popup for scanning QR codes.</p>
|
<p>This object describes the native popup for scanning QR codes.</p>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -648,7 +685,7 @@
|
||||||
</table>
|
</table>
|
||||||
<p>All these methods return the HapticFeedback object so they can be chained.</p>
|
<p>All these methods return the HapticFeedback object so they can be chained.</p>
|
||||||
<h4><a class="anchor" name="webappinitdata" href="#webappinitdata"><i class="anchor-icon"></i></a>WebAppInitData</h4>
|
<h4><a class="anchor" name="webappinitdata" href="#webappinitdata"><i class="anchor-icon"></i></a>WebAppInitData</h4>
|
||||||
<p>This object contains data that is transferred to the Web App when it is opened. It is empty if the Web App was launched from a <a href="#keyboard-button-web-apps">keyboard button</a>.</p>
|
<p>This object contains data that is transferred to the Web App when it is opened. It is empty if the Web App was launched from a <a href="#keyboard-button-web-apps">keyboard button</a> or from <a href="#inline-mode-web-apps">inline mode</a>.</p>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
@ -679,6 +716,16 @@
|
||||||
<td><em>Optional.</em> An object containing data about the chat where the bot was launched via the attachment menu. Returned for supergroups, channels and group chats – only for Web Apps launched via the attachment menu.</td>
|
<td><em>Optional.</em> An object containing data about the chat where the bot was launched via the attachment menu. Returned for supergroups, channels and group chats – only for Web Apps launched via the attachment menu.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
<td>chat_type <sup><mark>NEW</mark></sup></td>
|
||||||
|
<td>String</td>
|
||||||
|
<td><em>Optional.</em> Type of the chat from which the Web App was opened. Can be either “sender” for a private chat with the user opening the link, “private”, “group”, “supergroup”, or “channel”. Returned only for Web Apps launched from direct links.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>chat_instance <sup><mark>NEW</mark></sup></td>
|
||||||
|
<td>String</td>
|
||||||
|
<td><em>Optional.</em> Global identifier, uniquely corresponding to the chat from which the Web App was opened. Returned only for Web Apps launched from a direct link.</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
<td>start_param</td>
|
<td>start_param</td>
|
||||||
<td>String</td>
|
<td>String</td>
|
||||||
<td><em>Optional.</em> The value of the <em>startattach</em> parameter, passed <a href="#adding-bots-to-the-attachment-menu">via link</a>. Only returned for Web Apps when launched from the attachment menu via link.<br><br>The value of the <code>start_param</code> parameter will also be passed in the GET-parameter <code>tgWebAppStartParam</code>, so the Web App can load the correct interface right away.</td>
|
<td><em>Optional.</em> The value of the <em>startattach</em> parameter, passed <a href="#adding-bots-to-the-attachment-menu">via link</a>. Only returned for Web Apps when launched from the attachment menu via link.<br><br>The value of the <code>start_param</code> parameter will also be passed in the GET-parameter <code>tgWebAppStartParam</code>, so the Web App can load the correct interface right away.</td>
|
||||||
|
@ -842,11 +889,11 @@ if (hex(HMAC_SHA256(data_check_string, secret_key)) == hash) {
|
||||||
<td><mark>Bot API 6.2+</mark> Occurrs when the opened popup is closed.<br><em>eventHandler</em> receives an object with the single field <em>button_id</em> – the value of the field <em>id</em> of the pressed button. If no buttons were pressed, the field <em>button_id</em> will be <em>null</em>.</td>
|
<td><mark>Bot API 6.2+</mark> Occurrs when the opened popup is closed.<br><em>eventHandler</em> receives an object with the single field <em>button_id</em> – the value of the field <em>id</em> of the pressed button. If no buttons were pressed, the field <em>button_id</em> will be <em>null</em>.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>qrTextReceived</code> <sup><mark>NEW</mark></sup></td>
|
<td><code>qrTextReceived</code></td>
|
||||||
<td><mark>Bot API 6.4+</mark> Occurs when the QR code scanner catches a code with text data.<br><em>eventHandler</em> receives an object with the single field <em>data</em> containing text data from the QR code.</td>
|
<td><mark>Bot API 6.4+</mark> Occurs when the QR code scanner catches a code with text data.<br><em>eventHandler</em> receives an object with the single field <em>data</em> containing text data from the QR code.</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>clipboardTextReceived</code> <sup><mark>NEW</mark></sup></td>
|
<td><code>clipboardTextReceived</code></td>
|
||||||
<td><mark>Bot API 6.4+</mark> Occurrs when the <code>readTextFromClipboard</code> method is called.<br><em>eventHandler</em> receives an object with the single field <em>data</em> containing text data from the clipboard. If the clipboard contains non-text data, the field <em>data</em> will be an empty string. If the Web App has no access to the clipboard, the field <em>data</em> will be <em>null</em>.</td>
|
<td><mark>Bot API 6.4+</mark> Occurrs when the <code>readTextFromClipboard</code> method is called.<br><em>eventHandler</em> receives an object with the single field <em>data</em> containing text data from the clipboard. If the clipboard contains non-text data, the field <em>data</em> will be an empty string. If the Web App has no access to the clipboard, the field <em>data</em> will be <em>null</em>.</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
|
@ -140,7 +140,8 @@
|
||||||
<li>Bots never eat, sleep or complain (unless expressly programmed otherwise).</li>
|
<li>Bots never eat, sleep or complain (unless expressly programmed otherwise).</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h4><a class="anchor" name="bot-links" href="#bot-links"><i class="anchor-icon"></i></a>Bot Links</h4>
|
<h4><a class="anchor" name="bot-links" href="#bot-links"><i class="anchor-icon"></i></a>Bot Links</h4>
|
||||||
<p>Bot usernames normally require a ‘bot’ suffix, but some bots don’t have them – such as <a href="https://t.me/stickers">@stickers</a>, <a href="https://t.me/gif">@gif</a>, <a href="https://t.me/wiki">@wiki</a> or <a href="https://t.me/bing">@bing</a>. If you made a smooth and sleek bot and would like to remove the 'bot' part from its link, contact <a href="https://t.me/botsupport">@BotSupport</a>.</p>
|
<p>Bot usernames normally require a ‘bot’ suffix, but some bots don’t have them – such as <a href="https://t.me/stickers">@stickers</a>, <a href="https://t.me/gif">@gif</a>, <a href="https://t.me/wiki">@wiki</a> or <a href="https://t.me/bing">@bing</a>. </p>
|
||||||
|
<p>Anyone can <a href="https://telegram.org/blog/shareable-folders-custom-wallpapers#bot-links-and-telegram-premium-on-fragment">assign collectible usernames</a> to bots, including those without the 'bot' suffix.</p>
|
||||||
<h3><a class="anchor" name="how-do-i-create-a-bot" href="#how-do-i-create-a-bot"><i class="anchor-icon"></i></a>How Do I Create a Bot?</h3>
|
<h3><a class="anchor" name="how-do-i-create-a-bot" href="#how-do-i-create-a-bot"><i class="anchor-icon"></i></a>How Do I Create a Bot?</h3>
|
||||||
<p>Creating Telegram bots is super-easy, but you will need at least some skills in <strong>computer programming</strong>. </p>
|
<p>Creating Telegram bots is super-easy, but you will need at least some skills in <strong>computer programming</strong>. </p>
|
||||||
<p>Creating a bot is streamlined by Telegram’s Bot API, which gives the tools and framework required to integrate your code. To get started, message <a href="https://t.me/botfather">@BotFather</a> on Telegram to register your bot and receive its authentication token.</p>
|
<p>Creating a bot is streamlined by Telegram’s Bot API, which gives the tools and framework required to integrate your code. To get started, message <a href="https://t.me/botfather">@BotFather</a> on Telegram to register your bot and receive its authentication token.</p>
|
||||||
|
|
|
@ -401,7 +401,7 @@ photo has_stickers:Bool minithumbnail:minithumbnail sizes:vector<photoSize> = Ph
|
||||||
|
|
||||||
//@description Describes a sticker
|
//@description Describes a sticker
|
||||||
//@id Unique sticker identifier within the set; 0 if none
|
//@id Unique sticker identifier within the set; 0 if none
|
||||||
//@set_id The identifier of the sticker set to which the sticker belongs; 0 if none
|
//@set_id Identifier of the sticker set to which the sticker belongs; 0 if none
|
||||||
//@width Sticker width; as defined by the sender
|
//@width Sticker width; as defined by the sender
|
||||||
//@height Sticker height; as defined by the sender
|
//@height Sticker height; as defined by the sender
|
||||||
//@emoji Emoji corresponding to the sticker
|
//@emoji Emoji corresponding to the sticker
|
||||||
|
@ -506,6 +506,22 @@ webApp short_name:string title:string description:string photo:photo animation:a
|
||||||
poll id:int64 question:string options:vector<pollOption> total_voter_count:int32 recent_voter_user_ids:vector<int53> is_anonymous:Bool type:PollType open_period:int32 close_date:int32 is_closed:Bool = Poll;
|
poll id:int64 question:string options:vector<pollOption> total_voter_count:int32 recent_voter_user_ids:vector<int53> is_anonymous:Bool type:PollType open_period:int32 close_date:int32 is_closed:Bool = Poll;
|
||||||
|
|
||||||
|
|
||||||
|
//@description Describes a chat background
|
||||||
|
//@id Unique background identifier
|
||||||
|
//@is_default True, if this is one of default backgrounds
|
||||||
|
//@is_dark True, if the background is dark and is recommended to be used with dark theme
|
||||||
|
//@name Unique background name
|
||||||
|
//@document Document with the background; may be null. Null only for filled backgrounds
|
||||||
|
//@type Type of the background
|
||||||
|
background id:int64 is_default:Bool is_dark:Bool name:string document:document type:BackgroundType = Background;
|
||||||
|
|
||||||
|
//@description Contains a list of backgrounds @backgrounds A list of backgrounds
|
||||||
|
backgrounds backgrounds:vector<background> = Backgrounds;
|
||||||
|
|
||||||
|
//@description Describes a background set for a specific chat @background The background @dark_theme_dimming Dimming of the background in dark themes, as a percentage; 0-100
|
||||||
|
chatBackground background:background dark_theme_dimming:int32 = ChatBackground;
|
||||||
|
|
||||||
|
|
||||||
//@description Describes a user profile photo
|
//@description Describes a user profile photo
|
||||||
//@id Photo identifier; 0 for an empty photo. Can be used to find a photo in a list of user profile photos
|
//@id Photo identifier; 0 for an empty photo. Can be used to find a photo in a list of user profile photos
|
||||||
//@small A small (160x160) user profile photo. The file can be downloaded only before the photo is changed
|
//@small A small (160x160) user profile photo. The file can be downloaded only before the photo is changed
|
||||||
|
@ -533,13 +549,14 @@ userTypeRegular = UserType;
|
||||||
userTypeDeleted = UserType;
|
userTypeDeleted = UserType;
|
||||||
|
|
||||||
//@description A bot (see https://core.telegram.org/bots)
|
//@description A bot (see https://core.telegram.org/bots)
|
||||||
|
//@can_be_edited True, if the bot is owned by the current user and can be edited using the methods toggleBotUsernameIsActive, reorderBotActiveUsernames, setBotProfilePhoto, setBotName, setBotInfoDescription, and setBotInfoShortDescription
|
||||||
//@can_join_groups True, if the bot can be invited to basic group and supergroup chats
|
//@can_join_groups True, if the bot can be invited to basic group and supergroup chats
|
||||||
//@can_read_all_group_messages True, if the bot can read all messages in basic group or supergroup chats and not just those addressed to the bot. In private and channel chats a bot can always read all messages
|
//@can_read_all_group_messages True, if the bot can read all messages in basic group or supergroup chats and not just those addressed to the bot. In private and channel chats a bot can always read all messages
|
||||||
//@is_inline True, if the bot supports inline queries
|
//@is_inline True, if the bot supports inline queries
|
||||||
//@inline_query_placeholder Placeholder for inline queries (displayed on the application input field)
|
//@inline_query_placeholder Placeholder for inline queries (displayed on the application input field)
|
||||||
//@need_location True, if the location of the user is expected to be sent with every inline query to this bot
|
//@need_location True, if the location of the user is expected to be sent with every inline query to this bot
|
||||||
//@can_be_added_to_attachment_menu True, if the bot can be added to attachment menu
|
//@can_be_added_to_attachment_menu True, if the bot can be added to attachment menu
|
||||||
userTypeBot can_join_groups:Bool can_read_all_group_messages:Bool is_inline:Bool inline_query_placeholder:string need_location:Bool can_be_added_to_attachment_menu:Bool = UserType;
|
userTypeBot can_be_edited:Bool can_join_groups:Bool can_read_all_group_messages:Bool is_inline:Bool inline_query_placeholder:string need_location:Bool can_be_added_to_attachment_menu:Bool = UserType;
|
||||||
|
|
||||||
//@description No information on the user besides the user identifier is available, yet this user has not been deleted. This object is extremely rare and must be handled like a deleted user. It is not possible to perform any actions on users of this type
|
//@description No information on the user besides the user identifier is available, yet this user has not been deleted. This object is extremely rare and must be handled like a deleted user. It is not possible to perform any actions on users of this type
|
||||||
userTypeUnknown = UserType;
|
userTypeUnknown = UserType;
|
||||||
|
@ -672,9 +689,9 @@ emojiStatuses emoji_statuses:vector<emojiStatus> = EmojiStatuses;
|
||||||
|
|
||||||
|
|
||||||
//@description Describes usernames assigned to a user, a supergroup, or a channel
|
//@description Describes usernames assigned to a user, a supergroup, or a channel
|
||||||
//@active_usernames List of active usernames; the first one must be shown as the primary username. The order of active usernames can be changed with reorderActiveUsernames or reorderSupergroupActiveUsernames
|
//@active_usernames List of active usernames; the first one must be shown as the primary username. The order of active usernames can be changed with reorderActiveUsernames, reorderBotActiveUsernames or reorderSupergroupActiveUsernames
|
||||||
//@disabled_usernames List of currently disabled usernames; the username can be activated with toggleUsernameIsActive/toggleSupergroupUsernameIsActive
|
//@disabled_usernames List of currently disabled usernames; the username can be activated with toggleUsernameIsActive, toggleBotUsernameIsActive, or toggleSupergroupUsernameIsActive
|
||||||
//@editable_username The active username, which can be changed with setUsername/setSupergroupUsername
|
//@editable_username The active username, which can be changed with setUsername or setSupergroupUsername
|
||||||
usernames active_usernames:vector<string> disabled_usernames:vector<string> editable_username:string = Usernames;
|
usernames active_usernames:vector<string> disabled_usernames:vector<string> editable_username:string = Usernames;
|
||||||
|
|
||||||
|
|
||||||
|
@ -711,7 +728,11 @@ user id:int53 first_name:string last_name:string usernames:usernames phone_numbe
|
||||||
//@commands List of the bot commands
|
//@commands List of the bot commands
|
||||||
//@default_group_administrator_rights Default administrator rights for adding the bot to basic group and supergroup chats; may be null
|
//@default_group_administrator_rights Default administrator rights for adding the bot to basic group and supergroup chats; may be null
|
||||||
//@default_channel_administrator_rights Default administrator rights for adding the bot to channels; may be null
|
//@default_channel_administrator_rights Default administrator rights for adding the bot to channels; may be null
|
||||||
botInfo short_description:string description:string photo:photo animation:animation menu_button:botMenuButton commands:vector<botCommand> default_group_administrator_rights:chatAdministratorRights default_channel_administrator_rights:chatAdministratorRights = BotInfo;
|
//@edit_commands_link The internal link, which can be used to edit bot commands; may be null
|
||||||
|
//@edit_description_link The internal link, which can be used to edit bot description; may be null
|
||||||
|
//@edit_description_media_link The internal link, which can be used to edit the photo or animation shown in the chat with the bot if the chat is empty; may be null
|
||||||
|
//@edit_settings_link The internal link, which can be used to edit bot settings; may be null
|
||||||
|
botInfo short_description:string description:string photo:photo animation:animation menu_button:botMenuButton commands:vector<botCommand> default_group_administrator_rights:chatAdministratorRights default_channel_administrator_rights:chatAdministratorRights edit_commands_link:InternalLinkType edit_description_link:InternalLinkType edit_description_media_link:InternalLinkType edit_settings_link:InternalLinkType = BotInfo;
|
||||||
|
|
||||||
//@description Contains full information about a user
|
//@description Contains full information about a user
|
||||||
//@personal_photo User profile photo set by the current user for the contact; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown.
|
//@personal_photo User profile photo set by the current user for the contact; may be null. If null and user.profile_photo is null, then the photo is empty; otherwise, it is unknown.
|
||||||
|
@ -865,8 +886,12 @@ chatInviteLinkCount user_id:int53 invite_link_count:int32 revoked_invite_link_co
|
||||||
//@description Contains a list of chat invite link counts @invite_link_counts List of invite link counts
|
//@description Contains a list of chat invite link counts @invite_link_counts List of invite link counts
|
||||||
chatInviteLinkCounts invite_link_counts:vector<chatInviteLinkCount> = ChatInviteLinkCounts;
|
chatInviteLinkCounts invite_link_counts:vector<chatInviteLinkCount> = ChatInviteLinkCounts;
|
||||||
|
|
||||||
//@description Describes a chat member joined a chat via an invite link @user_id User identifier @joined_chat_date Point in time (Unix timestamp) when the user joined the chat @approver_user_id User identifier of the chat administrator, approved user join request
|
//@description Describes a chat member joined a chat via an invite link
|
||||||
chatInviteLinkMember user_id:int53 joined_chat_date:int32 approver_user_id:int53 = ChatInviteLinkMember;
|
//@user_id User identifier
|
||||||
|
//@joined_chat_date Point in time (Unix timestamp) when the user joined the chat
|
||||||
|
//@via_chat_folder_invite_link True, if the user has joined the chat using an invite link for a chat folder
|
||||||
|
//@approver_user_id User identifier of the chat administrator, approved user join request
|
||||||
|
chatInviteLinkMember user_id:int53 joined_chat_date:int32 via_chat_folder_invite_link:Bool approver_user_id:int53 = ChatInviteLinkMember;
|
||||||
|
|
||||||
//@description Contains a list of chat members joined a chat via an invite link @total_count Approximate total number of chat members found @members List of chat members, joined a chat via an invite link
|
//@description Contains a list of chat members joined a chat via an invite link @total_count Approximate total number of chat members found @members List of chat members, joined a chat via an invite link
|
||||||
chatInviteLinkMembers total_count:int32 members:vector<chatInviteLinkMember> = ChatInviteLinkMembers;
|
chatInviteLinkMembers total_count:int32 members:vector<chatInviteLinkMember> = ChatInviteLinkMembers;
|
||||||
|
@ -922,7 +947,7 @@ basicGroupFullInfo photo:chatPhoto description:string creator_user_id:int53 memb
|
||||||
//@date Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member
|
//@date Point in time (Unix timestamp) when the current user joined, or the point in time when the supergroup or channel was created, in case the user is not a member
|
||||||
//@status Status of the current user in the supergroup or channel; custom title will always be empty
|
//@status Status of the current user in the supergroup or channel; custom title will always be empty
|
||||||
//@member_count Number of members in the supergroup or channel; 0 if unknown. Currently, it is guaranteed to be known only if the supergroup or channel was received
|
//@member_count Number of members in the supergroup or channel; 0 if unknown. Currently, it is guaranteed to be known only if the supergroup or channel was received
|
||||||
//-through searchPublicChats, searchChatsNearby, getInactiveSupergroupChats, getSuitableDiscussionChats, getGroupsInCommon, or getUserPrivacySettingRules
|
//-through searchPublicChats, searchChatsNearby, getInactiveSupergroupChats, getSuitableDiscussionChats, getGroupsInCommon, getUserPrivacySettingRules, or in chatFolderInviteLinkInfo.missing_chat_ids
|
||||||
//@has_linked_chat True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel
|
//@has_linked_chat True, if the channel has a discussion group, or the supergroup is the designated discussion group for a channel
|
||||||
//@has_location True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup
|
//@has_location True, if the supergroup is connected to a location, i.e. the supergroup is a location-based supergroup
|
||||||
//@sign_messages True, if messages sent to the channel need to contain information about the sender. This field is only applicable to channels
|
//@sign_messages True, if messages sent to the channel need to contain information about the sender. This field is only applicable to channels
|
||||||
|
@ -1289,14 +1314,17 @@ chatTypeSupergroup supergroup_id:int53 is_channel:Bool = ChatType;
|
||||||
chatTypeSecret secret_chat_id:int32 user_id:int53 = ChatType;
|
chatTypeSecret secret_chat_id:int32 user_id:int53 = ChatType;
|
||||||
|
|
||||||
|
|
||||||
//@description Represents a filter of user chats
|
//@description Represents an icon for a chat folder @name The chosen icon name for short folder representation; one of "All", "Unread", "Unmuted", "Bots", "Channels", "Groups", "Private", "Custom", "Setup", "Cat", "Crown",
|
||||||
//@title The title of the filter; 1-12 characters without line feeds
|
//-"Favorite", "Flower", "Game", "Home", "Love", "Mask", "Party", "Sport", "Study", "Trade", "Travel", "Work", "Airplane", "Book", "Light", "Like", "Money", "Note", "Palette"
|
||||||
//@icon_name The chosen icon name for short filter representation. If non-empty, must be one of "All", "Unread", "Unmuted", "Bots", "Channels", "Groups", "Private", "Custom", "Setup", "Cat", "Crown",
|
chatFolderIcon name:string = ChatFolderIcon;
|
||||||
//-"Favorite", "Flower", "Game", "Home", "Love", "Mask", "Party", "Sport", "Study", "Trade", "Travel", "Work", "Airplane", "Book", "Light", "Like", "Money", "Note", "Palette".
|
|
||||||
//-If empty, use getChatFilterDefaultIconName to get default icon name for the filter
|
//@description Represents a folder for user chats
|
||||||
//@pinned_chat_ids The chat identifiers of pinned chats in the filtered chat list. There can be up to getOption("chat_filter_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium
|
//@title The title of the folder; 1-12 characters without line feeds
|
||||||
//@included_chat_ids The chat identifiers of always included chats in the filtered chat list. There can be up to getOption("chat_filter_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium
|
//@icon The chosen icon for the chat folder; may be null. If null, use getChatFolderDefaultIconName to get default icon name for the folder
|
||||||
//@excluded_chat_ids The chat identifiers of always excluded chats in the filtered chat list. There can be up to getOption("chat_filter_chosen_chat_count_max") always excluded non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium
|
//@is_shareable True, if at least one link has been created for the folder
|
||||||
|
//@pinned_chat_ids The chat identifiers of pinned chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium
|
||||||
|
//@included_chat_ids The chat identifiers of always included chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") pinned and always included non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium
|
||||||
|
//@excluded_chat_ids The chat identifiers of always excluded chats in the folder. There can be up to getOption("chat_folder_chosen_chat_count_max") always excluded non-secret chats and the same number of secret chats, but the limit can be increased with Telegram Premium
|
||||||
//@exclude_muted True, if muted chats need to be excluded
|
//@exclude_muted True, if muted chats need to be excluded
|
||||||
//@exclude_read True, if read chats need to be excluded
|
//@exclude_read True, if read chats need to be excluded
|
||||||
//@exclude_archived True, if archived chats need to be excluded
|
//@exclude_archived True, if archived chats need to be excluded
|
||||||
|
@ -1305,20 +1333,35 @@ chatTypeSecret secret_chat_id:int32 user_id:int53 = ChatType;
|
||||||
//@include_bots True, if bots need to be included
|
//@include_bots True, if bots need to be included
|
||||||
//@include_groups True, if basic groups and supergroups need to be included
|
//@include_groups True, if basic groups and supergroups need to be included
|
||||||
//@include_channels True, if channels need to be included
|
//@include_channels True, if channels need to be included
|
||||||
chatFilter title:string icon_name:string pinned_chat_ids:vector<int53> included_chat_ids:vector<int53> excluded_chat_ids:vector<int53> exclude_muted:Bool exclude_read:Bool exclude_archived:Bool include_contacts:Bool include_non_contacts:Bool include_bots:Bool include_groups:Bool include_channels:Bool = ChatFilter;
|
chatFolder title:string icon:chatFolderIcon is_shareable:Bool pinned_chat_ids:vector<int53> included_chat_ids:vector<int53> excluded_chat_ids:vector<int53> exclude_muted:Bool exclude_read:Bool exclude_archived:Bool include_contacts:Bool include_non_contacts:Bool include_bots:Bool include_groups:Bool include_channels:Bool = ChatFolder;
|
||||||
|
|
||||||
//@description Contains basic information about a chat filter
|
//@description Contains basic information about a chat folder
|
||||||
//@id Unique chat filter identifier
|
//@id Unique chat folder identifier
|
||||||
//@title The title of the filter; 1-12 characters without line feeds
|
//@title The title of the folder; 1-12 characters without line feeds
|
||||||
//@icon_name The chosen or default icon name for short filter representation. One of "All", "Unread", "Unmuted", "Bots", "Channels", "Groups", "Private", "Custom", "Setup", "Cat", "Crown",
|
//@icon The chosen or default icon for the chat folder
|
||||||
//-"Favorite", "Flower", "Game", "Home", "Love", "Mask", "Party", "Sport", "Study", "Trade", "Travel", "Work", "Airplane", "Book", "Light", "Like", "Money", "Note", "Palette"
|
//@has_my_invite_links True, if the chat folder has invite links created by the current user
|
||||||
chatFilterInfo id:int32 title:string icon_name:string = ChatFilterInfo;
|
chatFolderInfo id:int32 title:string icon:chatFolderIcon has_my_invite_links:Bool = ChatFolderInfo;
|
||||||
|
|
||||||
//@description Describes a recommended chat filter @filter The chat filter @param_description Chat filter description
|
//@description Contains a chat folder invite link
|
||||||
recommendedChatFilter filter:chatFilter description:string = RecommendedChatFilter;
|
//@invite_link The chat folder invite link
|
||||||
|
//@name Name of the link
|
||||||
|
//@chat_ids Identifiers of chats, included in the link
|
||||||
|
chatFolderInviteLink invite_link:string name:string chat_ids:vector<int53> = ChatFolderInviteLink;
|
||||||
|
|
||||||
//@description Contains a list of recommended chat filters @chat_filters List of recommended chat filters
|
//@description Represents a list of chat folder invite links @invite_links List of the invite links
|
||||||
recommendedChatFilters chat_filters:vector<recommendedChatFilter> = RecommendedChatFilters;
|
chatFolderInviteLinks invite_links:vector<chatFolderInviteLink> = ChatFolderInviteLinks;
|
||||||
|
|
||||||
|
//@description Contains information about an invite link to a chat folder
|
||||||
|
//@chat_folder_info Basic information about the chat folder; chat folder identifier will be 0 if the user didn't have the chat folder yet
|
||||||
|
//@missing_chat_ids Identifiers of the chats from the link, which aren't added to the folder yet
|
||||||
|
//@added_chat_ids Identifiers of the chats from the link, which are added to the folder already
|
||||||
|
chatFolderInviteLinkInfo chat_folder_info:chatFolderInfo missing_chat_ids:vector<int53> added_chat_ids:vector<int53> = ChatFolderInviteLinkInfo;
|
||||||
|
|
||||||
|
//@description Describes a recommended chat folder @folder The chat folder @param_description Chat folder description
|
||||||
|
recommendedChatFolder folder:chatFolder description:string = RecommendedChatFolder;
|
||||||
|
|
||||||
|
//@description Contains a list of recommended chat folders @chat_folders List of recommended chat folders
|
||||||
|
recommendedChatFolders chat_folders:vector<recommendedChatFolder> = RecommendedChatFolders;
|
||||||
|
|
||||||
|
|
||||||
//@class ChatList @description Describes a list of chats
|
//@class ChatList @description Describes a list of chats
|
||||||
|
@ -1329,8 +1372,8 @@ chatListMain = ChatList;
|
||||||
//@description A list of chats usually located at the top of the main chat list. Unmuted chats are automatically moved from the Archive to the Main chat list when a new message arrives
|
//@description A list of chats usually located at the top of the main chat list. Unmuted chats are automatically moved from the Archive to the Main chat list when a new message arrives
|
||||||
chatListArchive = ChatList;
|
chatListArchive = ChatList;
|
||||||
|
|
||||||
//@description A list of chats belonging to a chat filter @chat_filter_id Chat filter identifier
|
//@description A list of chats added to a chat folder @chat_folder_id Chat folder identifier
|
||||||
chatListFilter chat_filter_id:int32 = ChatList;
|
chatListFolder chat_folder_id:int32 = ChatList;
|
||||||
|
|
||||||
//@description Contains a list of chat lists @chat_lists List of chat lists
|
//@description Contains a list of chat lists @chat_lists List of chat lists
|
||||||
chatLists chat_lists:vector<ChatList> = ChatLists;
|
chatLists chat_lists:vector<ChatList> = ChatLists;
|
||||||
|
@ -1395,6 +1438,7 @@ videoChat group_call_id:int32 has_participants:Bool default_participant_id:Messa
|
||||||
//@notification_settings Notification settings for the chat
|
//@notification_settings Notification settings for the chat
|
||||||
//@available_reactions Types of reaction, available in the chat
|
//@available_reactions Types of reaction, available in the chat
|
||||||
//@message_auto_delete_time Current message auto-delete or self-destruct timer setting for the chat, in seconds; 0 if disabled. Self-destruct timer in secret chats starts after the message or its content is viewed. Auto-delete timer in other chats starts from the send date
|
//@message_auto_delete_time Current message auto-delete or self-destruct timer setting for the chat, in seconds; 0 if disabled. Self-destruct timer in secret chats starts after the message or its content is viewed. Auto-delete timer in other chats starts from the send date
|
||||||
|
//@background Background set for the chat; may be null if none
|
||||||
//@theme_name If non-empty, name of a theme, set for the chat
|
//@theme_name If non-empty, name of a theme, set for the chat
|
||||||
//@action_bar Information about actions which must be possible to do through the chat action bar; may be null
|
//@action_bar Information about actions which must be possible to do through the chat action bar; may be null
|
||||||
//@video_chat Information about video chat of the chat
|
//@video_chat Information about video chat of the chat
|
||||||
|
@ -1402,7 +1446,7 @@ videoChat group_call_id:int32 has_participants:Bool default_participant_id:Messa
|
||||||
//@reply_markup_message_id Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat
|
//@reply_markup_message_id Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat
|
||||||
//@draft_message A draft of a message in the chat; may be null
|
//@draft_message A draft of a message in the chat; may be null
|
||||||
//@client_data Application-specific data associated with the chat. (For example, the chat scroll position or local chat notification settings can be stored here.) Persistent if the message database is used
|
//@client_data Application-specific data associated with the chat. (For example, the chat scroll position or local chat notification settings can be stored here.) Persistent if the message database is used
|
||||||
chat id:int53 type:ChatType title:string photo:chatPhotoInfo permissions:chatPermissions last_message:message positions:vector<chatPosition> message_sender_id:MessageSender has_protected_content:Bool is_translatable:Bool is_marked_as_unread:Bool is_blocked:Bool has_scheduled_messages:Bool can_be_deleted_only_for_self:Bool can_be_deleted_for_all_users:Bool can_be_reported:Bool default_disable_notification:Bool unread_count:int32 last_read_inbox_message_id:int53 last_read_outbox_message_id:int53 unread_mention_count:int32 unread_reaction_count:int32 notification_settings:chatNotificationSettings available_reactions:ChatAvailableReactions message_auto_delete_time:int32 theme_name:string action_bar:ChatActionBar video_chat:videoChat pending_join_requests:chatJoinRequestsInfo reply_markup_message_id:int53 draft_message:draftMessage client_data:string = Chat;
|
chat id:int53 type:ChatType title:string photo:chatPhotoInfo permissions:chatPermissions last_message:message positions:vector<chatPosition> message_sender_id:MessageSender has_protected_content:Bool is_translatable:Bool is_marked_as_unread:Bool is_blocked:Bool has_scheduled_messages:Bool can_be_deleted_only_for_self:Bool can_be_deleted_for_all_users:Bool can_be_reported:Bool default_disable_notification:Bool unread_count:int32 last_read_inbox_message_id:int53 last_read_outbox_message_id:int53 unread_mention_count:int32 unread_reaction_count:int32 notification_settings:chatNotificationSettings available_reactions:ChatAvailableReactions message_auto_delete_time:int32 background:chatBackground theme_name:string action_bar:ChatActionBar video_chat:videoChat pending_join_requests:chatJoinRequestsInfo reply_markup_message_id:int53 draft_message:draftMessage client_data:string = Chat;
|
||||||
|
|
||||||
//@description Represents a list of chats @total_count Approximate total number of chats found @chat_ids List of chat identifiers
|
//@description Represents a list of chats @total_count Approximate total number of chats found @chat_ids List of chat identifiers
|
||||||
chats total_count:int32 chat_ids:vector<int53> = Chats;
|
chats total_count:int32 chat_ids:vector<int53> = Chats;
|
||||||
|
@ -1518,8 +1562,8 @@ inlineKeyboardButtonTypeCallbackWithPassword data:bytes = InlineKeyboardButtonTy
|
||||||
//@description A button with a game that sends a callback query to a bot. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageGame
|
//@description A button with a game that sends a callback query to a bot. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageGame
|
||||||
inlineKeyboardButtonTypeCallbackGame = InlineKeyboardButtonType;
|
inlineKeyboardButtonTypeCallbackGame = InlineKeyboardButtonType;
|
||||||
|
|
||||||
//@description A button that forces an inline query to the bot to be inserted in the input field @query Inline query to be sent to the bot @in_current_chat True, if the inline query must be sent from the current chat
|
//@description A button that forces an inline query to the bot to be inserted in the input field @query Inline query to be sent to the bot @target_chat Target chat from which to send the inline query
|
||||||
inlineKeyboardButtonTypeSwitchInline query:string in_current_chat:Bool = InlineKeyboardButtonType;
|
inlineKeyboardButtonTypeSwitchInline query:string target_chat:TargetChat = InlineKeyboardButtonType;
|
||||||
|
|
||||||
//@description A button to buy something. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageInvoice
|
//@description A button to buy something. This button must be in the first column and row of the keyboard and can be attached only to a message with content of the type messageInvoice
|
||||||
inlineKeyboardButtonTypeBuy = InlineKeyboardButtonType;
|
inlineKeyboardButtonTypeBuy = InlineKeyboardButtonType;
|
||||||
|
@ -2520,6 +2564,9 @@ messagePinMessage message_id:int53 = MessageContent;
|
||||||
//@description A screenshot of a message in the chat has been taken
|
//@description A screenshot of a message in the chat has been taken
|
||||||
messageScreenshotTaken = MessageContent;
|
messageScreenshotTaken = MessageContent;
|
||||||
|
|
||||||
|
//@description A new background was set in the chat @old_background_message_id Identifier of the message with a previously set same background; 0 if none. Can be an identifier of a deleted message @background The new background
|
||||||
|
messageChatSetBackground old_background_message_id:int53 background:chatBackground = MessageContent;
|
||||||
|
|
||||||
//@description A theme in the chat has been changed @theme_name If non-empty, name of a new theme, set for the chat. Otherwise, chat theme was reset to the default one
|
//@description A theme in the chat has been changed @theme_name If non-empty, name of a new theme, set for the chat. Otherwise, chat theme was reset to the default one
|
||||||
messageChatSetTheme theme_name:string = MessageContent;
|
messageChatSetTheme theme_name:string = MessageContent;
|
||||||
|
|
||||||
|
@ -2573,11 +2620,14 @@ messagePaymentSuccessful invoice_chat_id:int53 invoice_message_id:int53 currency
|
||||||
messagePaymentSuccessfulBot currency:string total_amount:int53 is_recurring:Bool is_first_recurring:Bool invoice_payload:bytes shipping_option_id:string order_info:orderInfo telegram_payment_charge_id:string provider_payment_charge_id:string = MessageContent;
|
messagePaymentSuccessfulBot currency:string total_amount:int53 is_recurring:Bool is_first_recurring:Bool invoice_payload:bytes shipping_option_id:string order_info:orderInfo telegram_payment_charge_id:string provider_payment_charge_id:string = MessageContent;
|
||||||
|
|
||||||
//@description Telegram Premium was gifted to the user
|
//@description Telegram Premium was gifted to the user
|
||||||
|
//@gifter_user_id The identifier of a user that gifted Telegram Premium; 0 if the gift was anonymous
|
||||||
//@currency Currency for the paid amount
|
//@currency Currency for the paid amount
|
||||||
//@amount The paid amount, in the smallest units of the currency
|
//@amount The paid amount, in the smallest units of the currency
|
||||||
|
//@cryptocurrency Cryptocurrency used to pay for the gift; may be empty if none
|
||||||
|
//@cryptocurrency_amount The paid amount, in the smallest units of the cryptocurrency
|
||||||
//@month_count Number of month the Telegram Premium subscription will be active
|
//@month_count Number of month the Telegram Premium subscription will be active
|
||||||
//@sticker A sticker to be shown in the message; may be null if unknown
|
//@sticker A sticker to be shown in the message; may be null if unknown
|
||||||
messageGiftedPremium currency:string amount:int53 month_count:int32 sticker:sticker = MessageContent;
|
messageGiftedPremium gifter_user_id:int53 currency:string amount:int53 cryptocurrency:string cryptocurrency_amount:int64 month_count:int32 sticker:sticker = MessageContent;
|
||||||
|
|
||||||
//@description A contact has registered with Telegram
|
//@description A contact has registered with Telegram
|
||||||
messageContactRegistered = MessageContent;
|
messageContactRegistered = MessageContent;
|
||||||
|
@ -2597,7 +2647,7 @@ messageBotWriteAccessAllowed web_app:webApp = MessageContent;
|
||||||
//@description Data from a Web App has been sent to a bot @button_text Text of the keyboardButtonTypeWebApp button, which opened the Web App
|
//@description Data from a Web App has been sent to a bot @button_text Text of the keyboardButtonTypeWebApp button, which opened the Web App
|
||||||
messageWebAppDataSent button_text:string = MessageContent;
|
messageWebAppDataSent button_text:string = MessageContent;
|
||||||
|
|
||||||
//@description Data from a Web App has been received; for bots only @button_text Text of the keyboardButtonTypeWebApp button, which opened the Web App @data Received data
|
//@description Data from a Web App has been received; for bots only @button_text Text of the keyboardButtonTypeWebApp button, which opened the Web App @data The data
|
||||||
messageWebAppDataReceived button_text:string data:string = MessageContent;
|
messageWebAppDataReceived button_text:string data:string = MessageContent;
|
||||||
|
|
||||||
//@description Telegram Passport data has been sent to a bot @types List of Telegram Passport element types sent
|
//@description Telegram Passport data has been sent to a bot @types List of Telegram Passport element types sent
|
||||||
|
@ -3321,7 +3371,7 @@ speechRecognitionResultPending partial_text:string = SpeechRecognitionResult;
|
||||||
//@description The speech recognition successfully finished @text Recognized text
|
//@description The speech recognition successfully finished @text Recognized text
|
||||||
speechRecognitionResultText text:string = SpeechRecognitionResult;
|
speechRecognitionResultText text:string = SpeechRecognitionResult;
|
||||||
|
|
||||||
//@description The speech recognition failed @error Received error
|
//@description The speech recognition failed @error Recognition error
|
||||||
speechRecognitionResultError error:error = SpeechRecognitionResult;
|
speechRecognitionResultError error:error = SpeechRecognitionResult;
|
||||||
|
|
||||||
|
|
||||||
|
@ -3643,8 +3693,8 @@ chatEventPollStopped message:message = ChatEventAction;
|
||||||
//@description A new member joined the chat
|
//@description A new member joined the chat
|
||||||
chatEventMemberJoined = ChatEventAction;
|
chatEventMemberJoined = ChatEventAction;
|
||||||
|
|
||||||
//@description A new member joined the chat via an invite link @invite_link Invite link used to join the chat
|
//@description A new member joined the chat via an invite link @invite_link Invite link used to join the chat @via_chat_folder_invite_link True, if the user has joined the chat using an invite link for a chat folder
|
||||||
chatEventMemberJoinedByInviteLink invite_link:chatInviteLink = ChatEventAction;
|
chatEventMemberJoinedByInviteLink invite_link:chatInviteLink via_chat_folder_invite_link:Bool = ChatEventAction;
|
||||||
|
|
||||||
//@description A new member was accepted to the chat by an administrator @approver_user_id User identifier of the chat administrator, approved user join request @invite_link Invite link used to join the chat; may be null
|
//@description A new member was accepted to the chat by an administrator @approver_user_id User identifier of the chat administrator, approved user join request @invite_link Invite link used to join the chat; may be null
|
||||||
chatEventMemberJoinedByRequest approver_user_id:int53 invite_link:chatInviteLink = ChatEventAction;
|
chatEventMemberJoinedByRequest approver_user_id:int53 invite_link:chatInviteLink = ChatEventAction;
|
||||||
|
@ -3845,11 +3895,11 @@ premiumLimitTypeSavedAnimationCount = PremiumLimitType;
|
||||||
//@description The maximum number of favorite stickers
|
//@description The maximum number of favorite stickers
|
||||||
premiumLimitTypeFavoriteStickerCount = PremiumLimitType;
|
premiumLimitTypeFavoriteStickerCount = PremiumLimitType;
|
||||||
|
|
||||||
//@description The maximum number of chat filters
|
//@description The maximum number of chat folders
|
||||||
premiumLimitTypeChatFilterCount = PremiumLimitType;
|
premiumLimitTypeChatFolderCount = PremiumLimitType;
|
||||||
|
|
||||||
//@description The maximum number of pinned and always included, or always excluded chats in a chat filter
|
//@description The maximum number of pinned and always included, or always excluded chats in a chat folder
|
||||||
premiumLimitTypeChatFilterChosenChatCount = PremiumLimitType;
|
premiumLimitTypeChatFolderChosenChatCount = PremiumLimitType;
|
||||||
|
|
||||||
//@description The maximum number of pinned chats in the archive chat list
|
//@description The maximum number of pinned chats in the archive chat list
|
||||||
premiumLimitTypePinnedArchivedChatCount = PremiumLimitType;
|
premiumLimitTypePinnedArchivedChatCount = PremiumLimitType;
|
||||||
|
@ -3860,6 +3910,12 @@ premiumLimitTypeCaptionLength = PremiumLimitType;
|
||||||
//@description The maximum length of the user's bio
|
//@description The maximum length of the user's bio
|
||||||
premiumLimitTypeBioLength = PremiumLimitType;
|
premiumLimitTypeBioLength = PremiumLimitType;
|
||||||
|
|
||||||
|
//@description The maximum number of invite links for a chat folder
|
||||||
|
premiumLimitTypeChatFolderInviteLinkCount = PremiumLimitType;
|
||||||
|
|
||||||
|
//@description The maximum number of added shareable chat folders
|
||||||
|
premiumLimitTypeShareableChatFolderCount = PremiumLimitType;
|
||||||
|
|
||||||
|
|
||||||
//@class PremiumFeature @description Describes a feature available to Premium users
|
//@class PremiumFeature @description Describes a feature available to Premium users
|
||||||
|
|
||||||
|
@ -4033,19 +4089,6 @@ backgroundTypePattern fill:BackgroundFill intensity:int32 is_inverted:Bool is_mo
|
||||||
backgroundTypeFill fill:BackgroundFill = BackgroundType;
|
backgroundTypeFill fill:BackgroundFill = BackgroundType;
|
||||||
|
|
||||||
|
|
||||||
//@description Describes a chat background
|
|
||||||
//@id Unique background identifier
|
|
||||||
//@is_default True, if this is one of default backgrounds
|
|
||||||
//@is_dark True, if the background is dark and is recommended to be used with dark theme
|
|
||||||
//@name Unique background name
|
|
||||||
//@document Document with the background; may be null. Null only for filled backgrounds
|
|
||||||
//@type Type of the background
|
|
||||||
background id:int64 is_default:Bool is_dark:Bool name:string document:document type:BackgroundType = Background;
|
|
||||||
|
|
||||||
//@description Contains a list of backgrounds @backgrounds A list of backgrounds
|
|
||||||
backgrounds backgrounds:vector<background> = Backgrounds;
|
|
||||||
|
|
||||||
|
|
||||||
//@class InputBackground @description Contains information about background to set
|
//@class InputBackground @description Contains information about background to set
|
||||||
|
|
||||||
//@description A background from a local file
|
//@description A background from a local file
|
||||||
|
@ -4055,6 +4098,9 @@ inputBackgroundLocal background:InputFile = InputBackground;
|
||||||
//@description A background from the server @background_id The background identifier
|
//@description A background from the server @background_id The background identifier
|
||||||
inputBackgroundRemote background_id:int64 = InputBackground;
|
inputBackgroundRemote background_id:int64 = InputBackground;
|
||||||
|
|
||||||
|
//@description A background previously set in the chat; for chat backgrounds only @message_id Identifier of the message with the background
|
||||||
|
inputBackgroundPrevious message_id:int53 = InputBackground;
|
||||||
|
|
||||||
|
|
||||||
//@description Describes theme settings
|
//@description Describes theme settings
|
||||||
//@accent_color Theme accent color in ARGB format
|
//@accent_color Theme accent color in ARGB format
|
||||||
|
@ -4233,6 +4279,9 @@ pushMessageContentChatChangePhoto = PushMessageContent;
|
||||||
//@description A chat title was edited @title New chat title
|
//@description A chat title was edited @title New chat title
|
||||||
pushMessageContentChatChangeTitle title:string = PushMessageContent;
|
pushMessageContentChatChangeTitle title:string = PushMessageContent;
|
||||||
|
|
||||||
|
//@description A chat background was edited @is_same True, if the set background is the same as the background of the current user
|
||||||
|
pushMessageContentChatSetBackground is_same:Bool = PushMessageContent;
|
||||||
|
|
||||||
//@description A chat theme was edited @theme_name If non-empty, name of a new theme, set for the chat. Otherwise, the chat theme was reset to the default one
|
//@description A chat theme was edited @theme_name If non-empty, name of a new theme, set for the chat. Otherwise, the chat theme was reset to the default one
|
||||||
pushMessageContentChatSetTheme theme_name:string = PushMessageContent;
|
pushMessageContentChatSetTheme theme_name:string = PushMessageContent;
|
||||||
|
|
||||||
|
@ -4628,6 +4677,12 @@ internalLinkTypeBotStartInGroup bot_username:string start_parameter:string admin
|
||||||
//@description The link is a link to the change phone number section of the app
|
//@description The link is a link to the change phone number section of the app
|
||||||
internalLinkTypeChangePhoneNumber = InternalLinkType;
|
internalLinkTypeChangePhoneNumber = InternalLinkType;
|
||||||
|
|
||||||
|
//@description The link is an invite link to a chat folder. Call checkChatFolderInviteLink with the given invite link to process the link @invite_link Internal representation of the invite link
|
||||||
|
internalLinkTypeChatFolderInvite invite_link:string = InternalLinkType;
|
||||||
|
|
||||||
|
//@description The link is a link to the folder section of the app settings
|
||||||
|
internalLinkTypeChatFolderSettings = InternalLinkType;
|
||||||
|
|
||||||
//@description The link is a chat invite link. Call checkChatInviteLink with the given invite link to process the link @invite_link Internal representation of the invite link
|
//@description The link is a chat invite link. Call checkChatInviteLink with the given invite link to process the link @invite_link Internal representation of the invite link
|
||||||
internalLinkTypeChatInvite invite_link:string = InternalLinkType;
|
internalLinkTypeChatInvite invite_link:string = InternalLinkType;
|
||||||
|
|
||||||
|
@ -4637,9 +4692,6 @@ internalLinkTypeDefaultMessageAutoDeleteTimerSettings = InternalLinkType;
|
||||||
//@description The link is a link to the edit profile section of the app settings
|
//@description The link is a link to the edit profile section of the app settings
|
||||||
internalLinkTypeEditProfileSettings = InternalLinkType;
|
internalLinkTypeEditProfileSettings = InternalLinkType;
|
||||||
|
|
||||||
//@description The link is a link to the filter section of the app settings
|
|
||||||
internalLinkTypeFilterSettings = InternalLinkType;
|
|
||||||
|
|
||||||
//@description The link is a link to a game. Call searchPublicChat with the given bot username, check that the user is a bot, ask the current user to select a chat to send the game, and then call sendMessage with inputMessageGame
|
//@description The link is a link to a game. Call searchPublicChat with the given bot username, check that the user is a bot, ask the current user to select a chat to send the game, and then call sendMessage with inputMessageGame
|
||||||
//@bot_username Username of the bot that owns the game
|
//@bot_username Username of the bot that owns the game
|
||||||
//@game_short_name Short name of the game
|
//@game_short_name Short name of the game
|
||||||
|
@ -5328,6 +5380,9 @@ updateChatPendingJoinRequests chat_id:int53 pending_join_requests:chatJoinReques
|
||||||
//@reply_markup_message_id Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat
|
//@reply_markup_message_id Identifier of the message from which reply markup needs to be used; 0 if there is no default custom reply markup in the chat
|
||||||
updateChatReplyMarkup chat_id:int53 reply_markup_message_id:int53 = Update;
|
updateChatReplyMarkup chat_id:int53 reply_markup_message_id:int53 = Update;
|
||||||
|
|
||||||
|
//@description The chat background was changed @chat_id Chat identifier @background The new chat background; may be null if background was reset to default
|
||||||
|
updateChatBackground chat_id:int53 background:chatBackground = Update;
|
||||||
|
|
||||||
//@description The chat theme was changed @chat_id Chat identifier @theme_name The new name of the chat theme; may be empty if theme was reset to default
|
//@description The chat theme was changed @chat_id Chat identifier @theme_name The new name of the chat theme; may be empty if theme was reset to default
|
||||||
updateChatTheme chat_id:int53 theme_name:string = Update;
|
updateChatTheme chat_id:int53 theme_name:string = Update;
|
||||||
|
|
||||||
|
@ -5358,8 +5413,8 @@ updateChatIsBlocked chat_id:int53 is_blocked:Bool = Update;
|
||||||
//@description A chat's has_scheduled_messages field has changed @chat_id Chat identifier @has_scheduled_messages New value of has_scheduled_messages
|
//@description A chat's has_scheduled_messages field has changed @chat_id Chat identifier @has_scheduled_messages New value of has_scheduled_messages
|
||||||
updateChatHasScheduledMessages chat_id:int53 has_scheduled_messages:Bool = Update;
|
updateChatHasScheduledMessages chat_id:int53 has_scheduled_messages:Bool = Update;
|
||||||
|
|
||||||
//@description The list of chat filters or a chat filter has changed @chat_filters The new list of chat filters @main_chat_list_position Position of the main chat list among chat filters, 0-based
|
//@description The list of chat folders or a chat folder has changed @chat_folders The new list of chat folders @main_chat_list_position Position of the main chat list among chat folders, 0-based
|
||||||
updateChatFilters chat_filters:vector<chatFilterInfo> main_chat_list_position:int32 = Update;
|
updateChatFolders chat_folders:vector<chatFolderInfo> main_chat_list_position:int32 = Update;
|
||||||
|
|
||||||
//@description The number of online group members has changed. This update with non-zero number of online group members is sent only for currently opened chats.
|
//@description The number of online group members has changed. This update with non-zero number of online group members is sent only for currently opened chats.
|
||||||
//-There is no guarantee that it will be sent just after the number of online users has changed
|
//-There is no guarantee that it will be sent just after the number of online users has changed
|
||||||
|
@ -5645,9 +5700,10 @@ updatePollAnswer poll_id:int64 user_id:int53 option_ids:vector<int32> = Update;
|
||||||
//@actor_user_id Identifier of the user, changing the rights
|
//@actor_user_id Identifier of the user, changing the rights
|
||||||
//@date Point in time (Unix timestamp) when the user rights was changed
|
//@date Point in time (Unix timestamp) when the user rights was changed
|
||||||
//@invite_link If user has joined the chat using an invite link, the invite link; may be null
|
//@invite_link If user has joined the chat using an invite link, the invite link; may be null
|
||||||
|
//@via_chat_folder_invite_link True, if the user has joined the chat using an invite link for a chat folder
|
||||||
//@old_chat_member Previous chat member
|
//@old_chat_member Previous chat member
|
||||||
//@new_chat_member New chat member
|
//@new_chat_member New chat member
|
||||||
updateChatMember chat_id:int53 actor_user_id:int53 date:int32 invite_link:chatInviteLink old_chat_member:chatMember new_chat_member:chatMember = Update;
|
updateChatMember chat_id:int53 actor_user_id:int53 date:int32 invite_link:chatInviteLink via_chat_folder_invite_link:Bool old_chat_member:chatMember new_chat_member:chatMember = Update;
|
||||||
|
|
||||||
//@description A user sent a join request to a chat; for bots only
|
//@description A user sent a join request to a chat; for bots only
|
||||||
//@chat_id Chat identifier
|
//@chat_id Chat identifier
|
||||||
|
@ -5901,7 +5957,7 @@ getMessage chat_id:int53 message_id:int53 = Message;
|
||||||
getMessageLocally chat_id:int53 message_id:int53 = Message;
|
getMessageLocally chat_id:int53 message_id:int53 = Message;
|
||||||
|
|
||||||
//@description Returns information about a message that is replied by a given message. Also, returns the pinned message, the game message, the invoice message, and the topic creation message for messages
|
//@description Returns information about a message that is replied by a given message. Also, returns the pinned message, the game message, the invoice message, and the topic creation message for messages
|
||||||
//-of the types messagePinMessage, messageGameScore, messagePaymentSuccessful, and topic messages without replied message respectively
|
//-of the types messagePinMessage, messageGameScore, messagePaymentSuccessful, messageChatSetBackground and topic messages without replied message respectively
|
||||||
//@chat_id Identifier of the chat the message belongs to
|
//@chat_id Identifier of the chat the message belongs to
|
||||||
//@message_id Identifier of the reply message
|
//@message_id Identifier of the reply message
|
||||||
getRepliedMessage chat_id:int53 message_id:int53 = Message;
|
getRepliedMessage chat_id:int53 message_id:int53 = Message;
|
||||||
|
@ -6547,7 +6603,7 @@ shareChatWithBot chat_id:int53 message_id:int53 button_id:int32 shared_chat_id:i
|
||||||
|
|
||||||
|
|
||||||
//@description Sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires
|
//@description Sends an inline query to a bot and returns its results. Returns an error with code 502 if the bot fails to answer the query before the query timeout expires
|
||||||
//@bot_user_id The identifier of the target bot
|
//@bot_user_id Identifier of the target bot
|
||||||
//@chat_id Identifier of the chat where the query was sent
|
//@chat_id Identifier of the chat where the query was sent
|
||||||
//@user_location Location of the user; pass null if unknown or the bot doesn't need user's location
|
//@user_location Location of the user; pass null if unknown or the bot doesn't need user's location
|
||||||
//@query Text of the query
|
//@query Text of the query
|
||||||
|
@ -6589,7 +6645,7 @@ getWebAppUrl bot_user_id:int53 url:string theme:themeParameters application_name
|
||||||
//@description Sends data received from a keyboardButtonTypeWebApp Web App to a bot
|
//@description Sends data received from a keyboardButtonTypeWebApp Web App to a bot
|
||||||
//@bot_user_id Identifier of the target bot
|
//@bot_user_id Identifier of the target bot
|
||||||
//@button_text Text of the keyboardButtonTypeWebApp button, which opened the Web App
|
//@button_text Text of the keyboardButtonTypeWebApp button, which opened the Web App
|
||||||
//@data Received data
|
//@data The data
|
||||||
sendWebAppData bot_user_id:int53 button_text:string data:string = Ok;
|
sendWebAppData bot_user_id:int53 button_text:string data:string = Ok;
|
||||||
|
|
||||||
//@description Informs TDLib that a Web App is being opened from attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button.
|
//@description Informs TDLib that a Web App is being opened from attachment menu, a botMenuButton button, an internalLinkTypeAttachmentMenuBot link, or an inlineKeyboardButtonTypeWebApp button.
|
||||||
|
@ -6762,26 +6818,65 @@ getChatListsToAddChat chat_id:int53 = ChatLists;
|
||||||
//@chat_list The chat list. Use getChatListsToAddChat to get suitable chat lists
|
//@chat_list The chat list. Use getChatListsToAddChat to get suitable chat lists
|
||||||
addChatToList chat_id:int53 chat_list:ChatList = Ok;
|
addChatToList chat_id:int53 chat_list:ChatList = Ok;
|
||||||
|
|
||||||
//@description Returns information about a chat filter by its identifier @chat_filter_id Chat filter identifier
|
//@description Returns information about a chat folder by its identifier @chat_folder_id Chat folder identifier
|
||||||
getChatFilter chat_filter_id:int32 = ChatFilter;
|
getChatFolder chat_folder_id:int32 = ChatFolder;
|
||||||
|
|
||||||
//@description Creates new chat filter. Returns information about the created chat filter. There can be up to getOption("chat_filter_count_max") chat filters, but the limit can be increased with Telegram Premium @filter Chat filter
|
//@description Creates new chat folder. Returns information about the created chat folder. There can be up to getOption("chat_folder_count_max") chat folders, but the limit can be increased with Telegram Premium @folder The new chat folder
|
||||||
createChatFilter filter:chatFilter = ChatFilterInfo;
|
createChatFolder folder:chatFolder = ChatFolderInfo;
|
||||||
|
|
||||||
//@description Edits existing chat filter. Returns information about the edited chat filter @chat_filter_id Chat filter identifier @filter The edited chat filter
|
//@description Edits existing chat folder. Returns information about the edited chat folder @chat_folder_id Chat folder identifier @folder The edited chat folder
|
||||||
editChatFilter chat_filter_id:int32 filter:chatFilter = ChatFilterInfo;
|
editChatFolder chat_folder_id:int32 folder:chatFolder = ChatFolderInfo;
|
||||||
|
|
||||||
//@description Deletes existing chat filter @chat_filter_id Chat filter identifier
|
//@description Deletes existing chat folder @chat_folder_id Chat folder identifier @leave_chat_ids Identifiers of the chats to leave. The chats must be pinned or always included in the folder
|
||||||
deleteChatFilter chat_filter_id:int32 = Ok;
|
deleteChatFolder chat_folder_id:int32 leave_chat_ids:vector<int53> = Ok;
|
||||||
|
|
||||||
//@description Changes the order of chat filters @chat_filter_ids Identifiers of chat filters in the new correct order @main_chat_list_position Position of the main chat list among chat filters, 0-based. Can be non-zero only for Premium users
|
//@description Returns identifiers of pinned or always included chats from a chat folder, which are suggested to be left when the chat folder is deleted @chat_folder_id Chat folder identifier
|
||||||
reorderChatFilters chat_filter_ids:vector<int32> main_chat_list_position:int32 = Ok;
|
getChatFolderChatsToLeave chat_folder_id:int32 = Chats;
|
||||||
|
|
||||||
//@description Returns recommended chat filters for the current user
|
//@description Changes the order of chat folders @chat_folder_ids Identifiers of chat folders in the new correct order @main_chat_list_position Position of the main chat list among chat folders, 0-based. Can be non-zero only for Premium users
|
||||||
getRecommendedChatFilters = RecommendedChatFilters;
|
reorderChatFolders chat_folder_ids:vector<int32> main_chat_list_position:int32 = Ok;
|
||||||
|
|
||||||
//@description Returns default icon name for a filter. Can be called synchronously @filter Chat filter
|
//@description Returns recommended chat folders for the current user
|
||||||
getChatFilterDefaultIconName filter:chatFilter = Text;
|
getRecommendedChatFolders = RecommendedChatFolders;
|
||||||
|
|
||||||
|
//@description Returns default icon name for a folder. Can be called synchronously @folder Chat folder
|
||||||
|
getChatFolderDefaultIconName folder:chatFolder = ChatFolderIcon;
|
||||||
|
|
||||||
|
//@description Returns identifiers of chats from a chat folder, suitable for adding to a chat folder invite link @chat_folder_id Chat folder identifier
|
||||||
|
getChatsForChatFolderInviteLink chat_folder_id:int32 = Chats;
|
||||||
|
|
||||||
|
//@description Creates a new invite link for a chat folder. A link can be created for a chat folder if it has only pinned and included chats
|
||||||
|
//@chat_folder_id Chat folder identifier
|
||||||
|
//@name Name of the link; 0-32 characters
|
||||||
|
//@chat_ids Identifiers of chats to be accessible by the invite link. Use getChatsForChatFolderInviteLink to get suitable chats. Basic groups will be automatically converted to supergroups before link creation
|
||||||
|
createChatFolderInviteLink chat_folder_id:int32 name:string chat_ids:vector<int53> = ChatFolderInviteLink;
|
||||||
|
|
||||||
|
//@description Returns invite links created by the current user for a shareable chat folder @chat_folder_id Chat folder identifier
|
||||||
|
getChatFolderInviteLinks chat_folder_id:int32 = ChatFolderInviteLinks;
|
||||||
|
|
||||||
|
//@description Edits an invite link for a chat folder
|
||||||
|
//@chat_folder_id Chat folder identifier
|
||||||
|
//@invite_link Invite link to be edited
|
||||||
|
//@name New name of the link; 0-32 characters
|
||||||
|
//@chat_ids New identifiers of chats to be accessible by the invite link. Use getChatsForChatFolderInviteLink to get suitable chats. Basic groups will be automatically converted to supergroups before link editing
|
||||||
|
editChatFolderInviteLink chat_folder_id:int32 invite_link:string name:string chat_ids:vector<int53> = ChatFolderInviteLink;
|
||||||
|
|
||||||
|
//@description Deletes an invite link for a chat folder
|
||||||
|
//@chat_folder_id Chat folder identifier
|
||||||
|
//@invite_link Invite link to be deleted
|
||||||
|
deleteChatFolderInviteLink chat_folder_id:int32 invite_link:string = Ok;
|
||||||
|
|
||||||
|
//@description Checks the validity of an invite link for a chat folder and returns information about the corresponding chat folder @invite_link Invite link to be checked
|
||||||
|
checkChatFolderInviteLink invite_link:string = ChatFolderInviteLinkInfo;
|
||||||
|
|
||||||
|
//@description Adds a chat folder by an invite link @invite_link Invite link for the chat folder @chat_ids Identifiers of the chats added to the chat folder. The chats are automatically joined if they aren't joined yet
|
||||||
|
addChatFolderByInviteLink invite_link:string chat_ids:vector<int53> = Ok;
|
||||||
|
|
||||||
|
//@description Returns new chats added to a shareable chat folder by its owner. The method must be called at most once in getOption("chat_folder_new_chats_update_period") for the given chat folder @chat_folder_id Chat folder identifier
|
||||||
|
getChatFolderNewChats chat_folder_id:int32 = Chats;
|
||||||
|
|
||||||
|
//@description Process new chats added to a shareable chat folder by its owner @chat_folder_id Chat folder identifier @added_chat_ids Identifiers of the new chats, which are added to the chat folder. The chats are automatically joined if they aren't joined yet
|
||||||
|
processChatFolderNewChats chat_folder_id:int32 added_chat_ids:vector<int53> = Ok;
|
||||||
|
|
||||||
|
|
||||||
//@description Changes the chat title. Supported only for basic groups, supergroups and channels. Requires can_change_info administrator right
|
//@description Changes the chat title. Supported only for basic groups, supergroups and channels. Requires can_change_info administrator right
|
||||||
|
@ -6805,6 +6900,13 @@ setChatMessageAutoDeleteTime chat_id:int53 message_auto_delete_time:int32 = Ok;
|
||||||
//@permissions New non-administrator members permissions in the chat
|
//@permissions New non-administrator members permissions in the chat
|
||||||
setChatPermissions chat_id:int53 permissions:chatPermissions = Ok;
|
setChatPermissions chat_id:int53 permissions:chatPermissions = Ok;
|
||||||
|
|
||||||
|
//@description Changes the background in a specific chat. Supported only in private and secret chats with non-deleted users
|
||||||
|
//@chat_id Chat identifier
|
||||||
|
//@background The input background to use; pass null to create a new filled background or to remove the current background
|
||||||
|
//@type Background type; pass null to remove the current background
|
||||||
|
//@dark_theme_dimming Dimming of the background in dark themes, as a percentage; 0-100
|
||||||
|
setChatBackground chat_id:int53 background:InputBackground type:BackgroundType dark_theme_dimming:int32 = Ok;
|
||||||
|
|
||||||
//@description Changes the chat theme. Supported only in private and secret chats @chat_id Chat identifier @theme_name Name of the new chat theme; pass an empty string to return the default theme
|
//@description Changes the chat theme. Supported only in private and secret chats @chat_id Chat identifier @theme_name Name of the new chat theme; pass an empty string to return the default theme
|
||||||
setChatTheme chat_id:int53 theme_name:string = Ok;
|
setChatTheme chat_id:int53 theme_name:string = Ok;
|
||||||
|
|
||||||
|
@ -6964,6 +7066,9 @@ toggleChatIsPinned chat_list:ChatList chat_id:int53 is_pinned:Bool = Ok;
|
||||||
//@description Changes the order of pinned chats @chat_list Chat list in which to change the order of pinned chats @chat_ids The new list of pinned chats
|
//@description Changes the order of pinned chats @chat_list Chat list in which to change the order of pinned chats @chat_ids The new list of pinned chats
|
||||||
setPinnedChats chat_list:ChatList chat_ids:vector<int53> = Ok;
|
setPinnedChats chat_list:ChatList chat_ids:vector<int53> = Ok;
|
||||||
|
|
||||||
|
//@description Traverse all chats in a chat list and marks all messages in the chats as read @chat_list Chat list in which to mark all chats as read
|
||||||
|
readChatList chat_list:ChatList = Ok;
|
||||||
|
|
||||||
|
|
||||||
//@description Returns information about a bot that can be added to attachment menu @bot_user_id Bot's user identifier
|
//@description Returns information about a bot that can be added to attachment menu @bot_user_id Bot's user identifier
|
||||||
getAttachmentMenuBot bot_user_id:int53 = AttachmentMenuBot;
|
getAttachmentMenuBot bot_user_id:int53 = AttachmentMenuBot;
|
||||||
|
@ -7620,23 +7725,50 @@ setDefaultGroupAdministratorRights default_group_administrator_rights:chatAdmini
|
||||||
setDefaultChannelAdministratorRights default_channel_administrator_rights:chatAdministratorRights = Ok;
|
setDefaultChannelAdministratorRights default_channel_administrator_rights:chatAdministratorRights = Ok;
|
||||||
|
|
||||||
|
|
||||||
//@description Sets the text shown in the chat with the bot if the chat is empty; bots only
|
//@description Sets the name of a bot. Can be called only if userTypeBot.can_be_edited == true
|
||||||
|
//@bot_user_id Identifier of the target bot
|
||||||
|
//@language_code A two-letter ISO 639-1 language code. If empty, the description will be shown to all users, for which language there are no dedicated description
|
||||||
|
//@name New bot's name on the specified language; 0-64 characters; must be non-empty if language code is empty
|
||||||
|
setBotName bot_user_id:int53 language_code:string name:string = Ok;
|
||||||
|
|
||||||
|
//@description Returns the name of a bot in the given language. Can be called only if userTypeBot.can_be_edited == true
|
||||||
|
//@bot_user_id Identifier of the target bot
|
||||||
|
//@language_code A two-letter ISO 639-1 language code or an empty string
|
||||||
|
getBotName bot_user_id:int53 language_code:string = Text;
|
||||||
|
|
||||||
|
//@description Changes a profile photo for a bot @bot_user_id Identifier of the target bot @photo Profile photo to set; pass null to delete the chat photo
|
||||||
|
setBotProfilePhoto bot_user_id:int53 photo:InputChatPhoto = Ok;
|
||||||
|
|
||||||
|
//@description Changes active state for a username of a bot. The editable username can't be disabled. May return an error with a message "USERNAMES_ACTIVE_TOO_MUCH" if the maximum number of active usernames has been reached. Can be called only if userTypeBot.can_be_edited == true
|
||||||
|
//@bot_user_id Identifier of the target bot
|
||||||
|
//@username The username to change
|
||||||
|
//@is_active Pass true to activate the username; pass false to disable it
|
||||||
|
toggleBotUsernameIsActive bot_user_id:int53 username:string is_active:Bool = Ok;
|
||||||
|
|
||||||
|
//@description Changes order of active usernames of a bot. Can be called only if userTypeBot.can_be_edited == true @bot_user_id Identifier of the target bot @usernames The new order of active usernames. All currently active usernames must be specified
|
||||||
|
reorderActiveBotUsernames bot_user_id:int53 usernames:vector<string> = Ok;
|
||||||
|
|
||||||
|
//@description Sets the text shown in the chat with a bot if the chat is empty. Can be called only if userTypeBot.can_be_edited == true
|
||||||
|
//@bot_user_id Identifier of the target bot
|
||||||
//@language_code A two-letter ISO 639-1 language code. If empty, the description will be shown to all users, for which language there are no dedicated description
|
//@language_code A two-letter ISO 639-1 language code. If empty, the description will be shown to all users, for which language there are no dedicated description
|
||||||
//@param_description New bot's description on the specified language
|
//@param_description New bot's description on the specified language
|
||||||
setBotInfoDescription language_code:string description:string = Ok;
|
setBotInfoDescription bot_user_id:int53 language_code:string description:string = Ok;
|
||||||
|
|
||||||
//@description Returns the text shown in the chat with the bot if the chat is empty in the given language; bots only
|
//@description Returns the text shown in the chat with a bot if the chat is empty in the given language. Can be called only if userTypeBot.can_be_edited == true
|
||||||
|
//@bot_user_id Identifier of the target bot
|
||||||
//@language_code A two-letter ISO 639-1 language code or an empty string
|
//@language_code A two-letter ISO 639-1 language code or an empty string
|
||||||
getBotInfoDescription language_code:string = Text;
|
getBotInfoDescription bot_user_id:int53 language_code:string = Text;
|
||||||
|
|
||||||
//@description Sets the text shown on the bot's profile page and sent together with the link when users share the bot; bots only
|
//@description Sets the text shown on a bot's profile page and sent together with the link when users share the bot. Can be called only if userTypeBot.can_be_edited == true
|
||||||
|
//@bot_user_id Identifier of the target bot
|
||||||
//@language_code A two-letter ISO 639-1 language code. If empty, the short description will be shown to all users, for which language there are no dedicated description
|
//@language_code A two-letter ISO 639-1 language code. If empty, the short description will be shown to all users, for which language there are no dedicated description
|
||||||
//@short_description New bot's short description on the specified language
|
//@short_description New bot's short description on the specified language
|
||||||
setBotInfoShortDescription language_code:string short_description:string = Ok;
|
setBotInfoShortDescription bot_user_id:int53 language_code:string short_description:string = Ok;
|
||||||
|
|
||||||
//@description Returns the text shown on the bot's profile page and sent together with the link when users share the bot in the given language; bots only
|
//@description Returns the text shown on a bot's profile page and sent together with the link when users share the bot in the given language. Can be called only if userTypeBot.can_be_edited == true
|
||||||
|
//@bot_user_id Identifier of the target bot
|
||||||
//@language_code A two-letter ISO 639-1 language code or an empty string
|
//@language_code A two-letter ISO 639-1 language code or an empty string
|
||||||
getBotInfoShortDescription language_code:string = Text;
|
getBotInfoShortDescription bot_user_id:int53 language_code:string = Text;
|
||||||
|
|
||||||
|
|
||||||
//@description Returns all active sessions of the current user
|
//@description Returns all active sessions of the current user
|
||||||
|
@ -7798,7 +7930,7 @@ getBackgroundUrl name:string type:BackgroundType = HttpUrl;
|
||||||
searchBackground name:string = Background;
|
searchBackground name:string = Background;
|
||||||
|
|
||||||
//@description Changes the background selected by the user; adds background to the list of installed backgrounds
|
//@description Changes the background selected by the user; adds background to the list of installed backgrounds
|
||||||
//@background The input background to use; pass null to create a new filled backgrounds or to remove the current background
|
//@background The input background to use; pass null to create a new filled background or to remove the current background
|
||||||
//@type Background type; pass null to use the default type of the remote background or to remove the current background
|
//@type Background type; pass null to use the default type of the remote background or to remove the current background
|
||||||
//@for_dark_theme Pass true if the background is changed for a dark theme
|
//@for_dark_theme Pass true if the background is changed for a dark theme
|
||||||
setBackground background:InputBackground type:BackgroundType for_dark_theme:Bool = Background;
|
setBackground background:InputBackground type:BackgroundType for_dark_theme:Bool = Background;
|
||||||
|
|
|
@ -101,7 +101,7 @@ storage.fileMp4#b3cea0e4 = storage.FileType;
|
||||||
storage.fileWebp#1081464c = storage.FileType;
|
storage.fileWebp#1081464c = storage.FileType;
|
||||||
|
|
||||||
userEmpty#d3bc4b7a id:long = User;
|
userEmpty#d3bc4b7a id:long = User;
|
||||||
user#8f97c628 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true fake:flags.26?true bot_attach_menu:flags.27?true premium:flags.28?true attach_menu_enabled:flags.29?true flags2:# id:long access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector<RestrictionReason> bot_inline_placeholder:flags.19?string lang_code:flags.22?string emoji_status:flags.30?EmojiStatus usernames:flags2.0?Vector<Username> = User;
|
user#8f97c628 flags:# self:flags.10?true contact:flags.11?true mutual_contact:flags.12?true deleted:flags.13?true bot:flags.14?true bot_chat_history:flags.15?true bot_nochats:flags.16?true verified:flags.17?true restricted:flags.18?true min:flags.20?true bot_inline_geo:flags.21?true support:flags.23?true scam:flags.24?true apply_min_photo:flags.25?true fake:flags.26?true bot_attach_menu:flags.27?true premium:flags.28?true attach_menu_enabled:flags.29?true flags2:# bot_can_edit:flags2.1?true id:long access_hash:flags.0?long first_name:flags.1?string last_name:flags.2?string username:flags.3?string phone:flags.4?string photo:flags.5?UserProfilePhoto status:flags.6?UserStatus bot_info_version:flags.14?int restriction_reason:flags.18?Vector<RestrictionReason> bot_inline_placeholder:flags.19?string lang_code:flags.22?string emoji_status:flags.30?EmojiStatus usernames:flags2.0?Vector<Username> = User;
|
||||||
|
|
||||||
userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto;
|
userProfilePhotoEmpty#4f11bae1 = UserProfilePhoto;
|
||||||
userProfilePhoto#82d1f706 flags:# has_video:flags.0?true personal:flags.2?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = UserProfilePhoto;
|
userProfilePhoto#82d1f706 flags:# has_video:flags.0?true personal:flags.2?true photo_id:long stripped_thumb:flags.1?bytes dc_id:int = UserProfilePhoto;
|
||||||
|
@ -182,11 +182,13 @@ messageActionSetChatTheme#aa786345 emoticon:string = MessageAction;
|
||||||
messageActionChatJoinedByRequest#ebbca3cb = MessageAction;
|
messageActionChatJoinedByRequest#ebbca3cb = MessageAction;
|
||||||
messageActionWebViewDataSentMe#47dd8079 text:string data:string = MessageAction;
|
messageActionWebViewDataSentMe#47dd8079 text:string data:string = MessageAction;
|
||||||
messageActionWebViewDataSent#b4c38cb5 text:string = MessageAction;
|
messageActionWebViewDataSent#b4c38cb5 text:string = MessageAction;
|
||||||
messageActionGiftPremium#aba0f5c6 currency:string amount:long months:int = MessageAction;
|
messageActionGiftPremium#c83d6aec flags:# currency:string amount:long months:int crypto_currency:flags.0?string crypto_amount:flags.0?long = MessageAction;
|
||||||
messageActionTopicCreate#d999256 flags:# title:string icon_color:int icon_emoji_id:flags.0?long = MessageAction;
|
messageActionTopicCreate#d999256 flags:# title:string icon_color:int icon_emoji_id:flags.0?long = MessageAction;
|
||||||
messageActionTopicEdit#c0944820 flags:# title:flags.0?string icon_emoji_id:flags.1?long closed:flags.2?Bool hidden:flags.3?Bool = MessageAction;
|
messageActionTopicEdit#c0944820 flags:# title:flags.0?string icon_emoji_id:flags.1?long closed:flags.2?Bool hidden:flags.3?Bool = MessageAction;
|
||||||
messageActionSuggestProfilePhoto#57de635e photo:Photo = MessageAction;
|
messageActionSuggestProfilePhoto#57de635e photo:Photo = MessageAction;
|
||||||
messageActionRequestedPeer#fe77345d button_id:int peer:Peer = MessageAction;
|
messageActionRequestedPeer#fe77345d button_id:int peer:Peer = MessageAction;
|
||||||
|
messageActionSetChatWallPaper#bc44a927 wallpaper:WallPaper = MessageAction;
|
||||||
|
messageActionSetSameChatWallPaper#c0787d6d wallpaper:WallPaper = MessageAction;
|
||||||
|
|
||||||
dialog#d58a08c6 flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int unread_reactions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int ttl_period:flags.5?int = Dialog;
|
dialog#d58a08c6 flags:# pinned:flags.2?true unread_mark:flags.3?true peer:Peer top_message:int read_inbox_max_id:int read_outbox_max_id:int unread_count:int unread_mentions_count:int unread_reactions_count:int notify_settings:PeerNotifySettings pts:flags.0?int draft:flags.1?DraftMessage folder_id:flags.4?int ttl_period:flags.5?int = Dialog;
|
||||||
dialogFolder#71bd134c flags:# pinned:flags.2?true folder:Folder peer:Peer top_message:int unread_muted_peers_count:int unread_unmuted_peers_count:int unread_muted_messages_count:int unread_unmuted_messages_count:int = Dialog;
|
dialogFolder#71bd134c flags:# pinned:flags.2?true folder:Folder peer:Peer top_message:int unread_muted_peers_count:int unread_unmuted_peers_count:int unread_muted_messages_count:int unread_unmuted_messages_count:int = Dialog;
|
||||||
|
@ -238,7 +240,7 @@ inputReportReasonFake#f5ddd6e7 = ReportReason;
|
||||||
inputReportReasonIllegalDrugs#a8eb2be = ReportReason;
|
inputReportReasonIllegalDrugs#a8eb2be = ReportReason;
|
||||||
inputReportReasonPersonalDetails#9ec7863d = ReportReason;
|
inputReportReasonPersonalDetails#9ec7863d = ReportReason;
|
||||||
|
|
||||||
userFull#f8d32aed flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights premium_gifts:flags.19?Vector<PremiumGiftOption> = UserFull;
|
userFull#93eadb53 flags:# blocked:flags.0?true phone_calls_available:flags.4?true phone_calls_private:flags.5?true can_pin_message:flags.7?true has_scheduled:flags.12?true video_calls_available:flags.13?true voice_messages_forbidden:flags.20?true translations_disabled:flags.23?true id:long about:flags.1?string settings:PeerSettings personal_photo:flags.21?Photo profile_photo:flags.2?Photo fallback_photo:flags.22?Photo notify_settings:PeerNotifySettings bot_info:flags.3?BotInfo pinned_msg_id:flags.6?int common_chats_count:int folder_id:flags.11?int ttl_period:flags.14?int theme_emoticon:flags.15?string private_forward_name:flags.16?string bot_group_admin_rights:flags.17?ChatAdminRights bot_broadcast_admin_rights:flags.18?ChatAdminRights premium_gifts:flags.19?Vector<PremiumGiftOption> wallpaper:flags.24?WallPaper = UserFull;
|
||||||
|
|
||||||
contact#145ade0b user_id:long mutual:Bool = Contact;
|
contact#145ade0b user_id:long mutual:Bool = Contact;
|
||||||
|
|
||||||
|
@ -376,7 +378,7 @@ updateGroupCallParticipants#f2ebdb4e call:InputGroupCall participants:Vector<Gro
|
||||||
updateGroupCall#14b24500 chat_id:long call:GroupCall = Update;
|
updateGroupCall#14b24500 chat_id:long call:GroupCall = Update;
|
||||||
updatePeerHistoryTTL#bb9bb9a5 flags:# peer:Peer ttl_period:flags.0?int = Update;
|
updatePeerHistoryTTL#bb9bb9a5 flags:# peer:Peer ttl_period:flags.0?int = Update;
|
||||||
updateChatParticipant#d087663a flags:# chat_id:long date:int actor_id:long user_id:long prev_participant:flags.0?ChatParticipant new_participant:flags.1?ChatParticipant invite:flags.2?ExportedChatInvite qts:int = Update;
|
updateChatParticipant#d087663a flags:# chat_id:long date:int actor_id:long user_id:long prev_participant:flags.0?ChatParticipant new_participant:flags.1?ChatParticipant invite:flags.2?ExportedChatInvite qts:int = Update;
|
||||||
updateChannelParticipant#985d3abb flags:# channel_id:long date:int actor_id:long user_id:long prev_participant:flags.0?ChannelParticipant new_participant:flags.1?ChannelParticipant invite:flags.2?ExportedChatInvite qts:int = Update;
|
updateChannelParticipant#985d3abb flags:# via_chatlist:flags.3?true channel_id:long date:int actor_id:long user_id:long prev_participant:flags.0?ChannelParticipant new_participant:flags.1?ChannelParticipant invite:flags.2?ExportedChatInvite qts:int = Update;
|
||||||
updateBotStopped#c4870a49 user_id:long date:int stopped:Bool qts:int = Update;
|
updateBotStopped#c4870a49 user_id:long date:int stopped:Bool qts:int = Update;
|
||||||
updateGroupCallConnection#b783982 flags:# presentation:flags.0?true params:DataJSON = Update;
|
updateGroupCallConnection#b783982 flags:# presentation:flags.0?true params:DataJSON = Update;
|
||||||
updateBotCommands#4d712f2e peer:Peer bot_id:long commands:Vector<BotCommand> = Update;
|
updateBotCommands#4d712f2e peer:Peer bot_id:long commands:Vector<BotCommand> = Update;
|
||||||
|
@ -606,7 +608,7 @@ keyboardButtonUrl#258aff05 text:string url:string = KeyboardButton;
|
||||||
keyboardButtonCallback#35bbdb6b flags:# requires_password:flags.0?true text:string data:bytes = KeyboardButton;
|
keyboardButtonCallback#35bbdb6b flags:# requires_password:flags.0?true text:string data:bytes = KeyboardButton;
|
||||||
keyboardButtonRequestPhone#b16a6c29 text:string = KeyboardButton;
|
keyboardButtonRequestPhone#b16a6c29 text:string = KeyboardButton;
|
||||||
keyboardButtonRequestGeoLocation#fc796b3f text:string = KeyboardButton;
|
keyboardButtonRequestGeoLocation#fc796b3f text:string = KeyboardButton;
|
||||||
keyboardButtonSwitchInline#568a748 flags:# same_peer:flags.0?true text:string query:string = KeyboardButton;
|
keyboardButtonSwitchInline#93b9fbb5 flags:# same_peer:flags.0?true text:string query:string peer_types:flags.1?Vector<InlineQueryPeerType> = KeyboardButton;
|
||||||
keyboardButtonGame#50f41ccf text:string = KeyboardButton;
|
keyboardButtonGame#50f41ccf text:string = KeyboardButton;
|
||||||
keyboardButtonBuy#afd93fbb text:string = KeyboardButton;
|
keyboardButtonBuy#afd93fbb text:string = KeyboardButton;
|
||||||
keyboardButtonUrlAuth#10b78d29 flags:# text:string fwd_text:flags.0?string url:string button_id:int = KeyboardButton;
|
keyboardButtonUrlAuth#10b78d29 flags:# text:string fwd_text:flags.0?string url:string button_id:int = KeyboardButton;
|
||||||
|
@ -950,7 +952,7 @@ channelAdminLogEventActionDiscardGroupCall#db9f9140 call:InputGroupCall = Channe
|
||||||
channelAdminLogEventActionParticipantMute#f92424d2 participant:GroupCallParticipant = ChannelAdminLogEventAction;
|
channelAdminLogEventActionParticipantMute#f92424d2 participant:GroupCallParticipant = ChannelAdminLogEventAction;
|
||||||
channelAdminLogEventActionParticipantUnmute#e64429c0 participant:GroupCallParticipant = ChannelAdminLogEventAction;
|
channelAdminLogEventActionParticipantUnmute#e64429c0 participant:GroupCallParticipant = ChannelAdminLogEventAction;
|
||||||
channelAdminLogEventActionToggleGroupCallSetting#56d6a247 join_muted:Bool = ChannelAdminLogEventAction;
|
channelAdminLogEventActionToggleGroupCallSetting#56d6a247 join_muted:Bool = ChannelAdminLogEventAction;
|
||||||
channelAdminLogEventActionParticipantJoinByInvite#5cdada77 invite:ExportedChatInvite = ChannelAdminLogEventAction;
|
channelAdminLogEventActionParticipantJoinByInvite#fe9fc158 flags:# via_chatlist:flags.0?true invite:ExportedChatInvite = ChannelAdminLogEventAction;
|
||||||
channelAdminLogEventActionExportedInviteDelete#5a50fca4 invite:ExportedChatInvite = ChannelAdminLogEventAction;
|
channelAdminLogEventActionExportedInviteDelete#5a50fca4 invite:ExportedChatInvite = ChannelAdminLogEventAction;
|
||||||
channelAdminLogEventActionExportedInviteRevoke#410a134e invite:ExportedChatInvite = ChannelAdminLogEventAction;
|
channelAdminLogEventActionExportedInviteRevoke#410a134e invite:ExportedChatInvite = ChannelAdminLogEventAction;
|
||||||
channelAdminLogEventActionExportedInviteEdit#e90ebb59 prev_invite:ExportedChatInvite new_invite:ExportedChatInvite = ChannelAdminLogEventAction;
|
channelAdminLogEventActionExportedInviteEdit#e90ebb59 prev_invite:ExportedChatInvite new_invite:ExportedChatInvite = ChannelAdminLogEventAction;
|
||||||
|
@ -1218,6 +1220,7 @@ payments.bankCardData#3e24e573 title:string open_urls:Vector<BankCardOpenUrl> =
|
||||||
|
|
||||||
dialogFilter#7438f7e8 flags:# contacts:flags.0?true non_contacts:flags.1?true groups:flags.2?true broadcasts:flags.3?true bots:flags.4?true exclude_muted:flags.11?true exclude_read:flags.12?true exclude_archived:flags.13?true id:int title:string emoticon:flags.25?string pinned_peers:Vector<InputPeer> include_peers:Vector<InputPeer> exclude_peers:Vector<InputPeer> = DialogFilter;
|
dialogFilter#7438f7e8 flags:# contacts:flags.0?true non_contacts:flags.1?true groups:flags.2?true broadcasts:flags.3?true bots:flags.4?true exclude_muted:flags.11?true exclude_read:flags.12?true exclude_archived:flags.13?true id:int title:string emoticon:flags.25?string pinned_peers:Vector<InputPeer> include_peers:Vector<InputPeer> exclude_peers:Vector<InputPeer> = DialogFilter;
|
||||||
dialogFilterDefault#363293ae = DialogFilter;
|
dialogFilterDefault#363293ae = DialogFilter;
|
||||||
|
dialogFilterChatlist#d64a04a8 flags:# has_my_invites:flags.26?true id:int title:string emoticon:flags.25?string pinned_peers:Vector<InputPeer> include_peers:Vector<InputPeer> = DialogFilter;
|
||||||
|
|
||||||
dialogFilterSuggested#77744d4a filter:DialogFilter description:string = DialogFilterSuggested;
|
dialogFilterSuggested#77744d4a filter:DialogFilter description:string = DialogFilterSuggested;
|
||||||
|
|
||||||
|
@ -1289,6 +1292,7 @@ inlineQueryPeerTypePM#833c0fac = InlineQueryPeerType;
|
||||||
inlineQueryPeerTypeChat#d766c50a = InlineQueryPeerType;
|
inlineQueryPeerTypeChat#d766c50a = InlineQueryPeerType;
|
||||||
inlineQueryPeerTypeMegagroup#5ec4be43 = InlineQueryPeerType;
|
inlineQueryPeerTypeMegagroup#5ec4be43 = InlineQueryPeerType;
|
||||||
inlineQueryPeerTypeBroadcast#6334ee9a = InlineQueryPeerType;
|
inlineQueryPeerTypeBroadcast#6334ee9a = InlineQueryPeerType;
|
||||||
|
inlineQueryPeerTypeBotPM#e3b2d0c = InlineQueryPeerType;
|
||||||
|
|
||||||
messages.historyImport#1662af0b id:long = messages.HistoryImport;
|
messages.historyImport#1662af0b id:long = messages.HistoryImport;
|
||||||
|
|
||||||
|
@ -1296,7 +1300,7 @@ messages.historyImportParsed#5e0fb7b9 flags:# pm:flags.0?true group:flags.1?true
|
||||||
|
|
||||||
messages.affectedFoundMessages#ef8d3e6c pts:int pts_count:int offset:int messages:Vector<int> = messages.AffectedFoundMessages;
|
messages.affectedFoundMessages#ef8d3e6c pts:int pts_count:int offset:int messages:Vector<int> = messages.AffectedFoundMessages;
|
||||||
|
|
||||||
chatInviteImporter#8c5adfd9 flags:# requested:flags.0?true user_id:long date:int about:flags.2?string approved_by:flags.1?long = ChatInviteImporter;
|
chatInviteImporter#8c5adfd9 flags:# requested:flags.0?true via_chatlist:flags.3?true user_id:long date:int about:flags.2?string approved_by:flags.1?long = ChatInviteImporter;
|
||||||
|
|
||||||
messages.exportedChatInvites#bdc62dcc count:int invites:Vector<ExportedChatInvite> users:Vector<User> = messages.ExportedChatInvites;
|
messages.exportedChatInvites#bdc62dcc count:int invites:Vector<ExportedChatInvite> users:Vector<User> = messages.ExportedChatInvites;
|
||||||
|
|
||||||
|
@ -1515,6 +1519,21 @@ inlineBotWebView#b57295d5 text:string url:string = InlineBotWebView;
|
||||||
|
|
||||||
readParticipantDate#4a4ff172 user_id:long date:int = ReadParticipantDate;
|
readParticipantDate#4a4ff172 user_id:long date:int = ReadParticipantDate;
|
||||||
|
|
||||||
|
inputChatlistDialogFilter#f3e0da33 filter_id:int = InputChatlist;
|
||||||
|
|
||||||
|
exportedChatlistInvite#c5181ac flags:# title:string url:string peers:Vector<Peer> = ExportedChatlistInvite;
|
||||||
|
|
||||||
|
chatlists.exportedChatlistInvite#10e6e3a6 filter:DialogFilter invite:ExportedChatlistInvite = chatlists.ExportedChatlistInvite;
|
||||||
|
|
||||||
|
chatlists.exportedInvites#10ab6dc7 invites:Vector<ExportedChatlistInvite> chats:Vector<Chat> users:Vector<User> = chatlists.ExportedInvites;
|
||||||
|
|
||||||
|
chatlists.chatlistInviteAlready#fa87f659 filter_id:int missing_peers:Vector<Peer> already_peers:Vector<Peer> chats:Vector<Chat> users:Vector<User> = chatlists.ChatlistInvite;
|
||||||
|
chatlists.chatlistInvite#1dcd839d flags:# title:string emoticon:flags.0?string peers:Vector<Peer> chats:Vector<Chat> users:Vector<User> = chatlists.ChatlistInvite;
|
||||||
|
|
||||||
|
chatlists.chatlistUpdates#93bd878d missing_peers:Vector<Peer> chats:Vector<Chat> users:Vector<User> = chatlists.ChatlistUpdates;
|
||||||
|
|
||||||
|
bots.botInfo#e8a775b0 name:string about:string description:string = bots.BotInfo;
|
||||||
|
|
||||||
---functions---
|
---functions---
|
||||||
|
|
||||||
invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
|
invokeAfterMsg#cb9f372d {X:Type} msg_id:long query:!X = X;
|
||||||
|
@ -1597,7 +1616,7 @@ account.getContactSignUpNotification#9f07c728 = Bool;
|
||||||
account.setContactSignUpNotification#cff43f61 silent:Bool = Bool;
|
account.setContactSignUpNotification#cff43f61 silent:Bool = Bool;
|
||||||
account.getNotifyExceptions#53577479 flags:# compare_sound:flags.1?true peer:flags.0?InputNotifyPeer = Updates;
|
account.getNotifyExceptions#53577479 flags:# compare_sound:flags.1?true peer:flags.0?InputNotifyPeer = Updates;
|
||||||
account.getWallPaper#fc8ddbea wallpaper:InputWallPaper = WallPaper;
|
account.getWallPaper#fc8ddbea wallpaper:InputWallPaper = WallPaper;
|
||||||
account.uploadWallPaper#dd853661 file:InputFile mime_type:string settings:WallPaperSettings = WallPaper;
|
account.uploadWallPaper#e39a8f03 flags:# for_chat:flags.0?true file:InputFile mime_type:string settings:WallPaperSettings = WallPaper;
|
||||||
account.saveWallPaper#6c5a5b37 wallpaper:InputWallPaper unsave:Bool settings:WallPaperSettings = Bool;
|
account.saveWallPaper#6c5a5b37 wallpaper:InputWallPaper unsave:Bool settings:WallPaperSettings = Bool;
|
||||||
account.installWallPaper#feed5769 wallpaper:InputWallPaper settings:WallPaperSettings = Bool;
|
account.installWallPaper#feed5769 wallpaper:InputWallPaper settings:WallPaperSettings = Bool;
|
||||||
account.resetWallPapers#bb3b9804 = Bool;
|
account.resetWallPapers#bb3b9804 = Bool;
|
||||||
|
@ -1851,13 +1870,14 @@ messages.searchCustomEmoji#2c11c0d7 emoticon:string hash:long = EmojiList;
|
||||||
messages.togglePeerTranslations#e47cb579 flags:# disabled:flags.0?true peer:InputPeer = Bool;
|
messages.togglePeerTranslations#e47cb579 flags:# disabled:flags.0?true peer:InputPeer = Bool;
|
||||||
messages.getBotApp#34fdc5c3 app:InputBotApp hash:long = messages.BotApp;
|
messages.getBotApp#34fdc5c3 app:InputBotApp hash:long = messages.BotApp;
|
||||||
messages.requestAppWebView#8c5a3b3c flags:# write_allowed:flags.0?true peer:InputPeer app:InputBotApp start_param:flags.1?string theme_params:flags.2?DataJSON platform:string = AppWebViewResult;
|
messages.requestAppWebView#8c5a3b3c flags:# write_allowed:flags.0?true peer:InputPeer app:InputBotApp start_param:flags.1?string theme_params:flags.2?DataJSON platform:string = AppWebViewResult;
|
||||||
|
messages.setChatWallPaper#8ffacae1 flags:# peer:InputPeer wallpaper:flags.0?InputWallPaper settings:flags.2?WallPaperSettings id:flags.1?int = Updates;
|
||||||
|
|
||||||
updates.getState#edd4882a = updates.State;
|
updates.getState#edd4882a = updates.State;
|
||||||
updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference;
|
updates.getDifference#25939651 flags:# pts:int pts_total_limit:flags.0?int date:int qts:int = updates.Difference;
|
||||||
updates.getChannelDifference#3173d78 flags:# force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference;
|
updates.getChannelDifference#3173d78 flags:# force:flags.0?true channel:InputChannel filter:ChannelMessagesFilter pts:int limit:int = updates.ChannelDifference;
|
||||||
|
|
||||||
photos.updateProfilePhoto#1c3d5956 flags:# fallback:flags.0?true id:InputPhoto = photos.Photo;
|
photos.updateProfilePhoto#9e82039 flags:# fallback:flags.0?true bot:flags.1?InputUser id:InputPhoto = photos.Photo;
|
||||||
photos.uploadProfilePhoto#93c9a51 flags:# fallback:flags.3?true file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double video_emoji_markup:flags.4?VideoSize = photos.Photo;
|
photos.uploadProfilePhoto#388a3b5 flags:# fallback:flags.3?true bot:flags.5?InputUser file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double video_emoji_markup:flags.4?VideoSize = photos.Photo;
|
||||||
photos.deletePhotos#87cf7f2f id:Vector<InputPhoto> = Vector<long>;
|
photos.deletePhotos#87cf7f2f id:Vector<InputPhoto> = Vector<long>;
|
||||||
photos.getUserPhotos#91cd32a8 user_id:InputUser offset:int max_id:long limit:int = photos.Photos;
|
photos.getUserPhotos#91cd32a8 user_id:InputUser offset:int max_id:long limit:int = photos.Photos;
|
||||||
photos.uploadContactProfilePhoto#e14c4a71 flags:# suggest:flags.3?true save:flags.4?true user_id:InputUser file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double video_emoji_markup:flags.5?VideoSize = photos.Photo;
|
photos.uploadContactProfilePhoto#e14c4a71 flags:# suggest:flags.3?true save:flags.4?true user_id:InputUser file:flags.0?InputFile video:flags.1?InputFile video_start_ts:flags.2?double video_emoji_markup:flags.5?VideoSize = photos.Photo;
|
||||||
|
@ -1960,8 +1980,10 @@ bots.setBotMenuButton#4504d54f user_id:InputUser button:BotMenuButton = Bool;
|
||||||
bots.getBotMenuButton#9c60eb28 user_id:InputUser = BotMenuButton;
|
bots.getBotMenuButton#9c60eb28 user_id:InputUser = BotMenuButton;
|
||||||
bots.setBotBroadcastDefaultAdminRights#788464e1 admin_rights:ChatAdminRights = Bool;
|
bots.setBotBroadcastDefaultAdminRights#788464e1 admin_rights:ChatAdminRights = Bool;
|
||||||
bots.setBotGroupDefaultAdminRights#925ec9ea admin_rights:ChatAdminRights = Bool;
|
bots.setBotGroupDefaultAdminRights#925ec9ea admin_rights:ChatAdminRights = Bool;
|
||||||
bots.setBotInfo#a365df7a flags:# lang_code:string about:flags.0?string description:flags.1?string = Bool;
|
bots.setBotInfo#10cf3123 flags:# bot:flags.2?InputUser lang_code:string name:flags.3?string about:flags.0?string description:flags.1?string = Bool;
|
||||||
bots.getBotInfo#75ec12e6 lang_code:string = Vector<string>;
|
bots.getBotInfo#dcd914fd flags:# bot:flags.0?InputUser lang_code:string = bots.BotInfo;
|
||||||
|
bots.reorderUsernames#9709b1c2 bot:InputUser order:Vector<string> = Bool;
|
||||||
|
bots.toggleUsername#53ca973 bot:InputUser username:string active:Bool = Bool;
|
||||||
|
|
||||||
payments.getPaymentForm#37148dbb flags:# invoice:InputInvoice theme_params:flags.0?DataJSON = payments.PaymentForm;
|
payments.getPaymentForm#37148dbb flags:# invoice:InputInvoice theme_params:flags.0?DataJSON = payments.PaymentForm;
|
||||||
payments.getPaymentReceipt#2478d1cc peer:InputPeer msg_id:int = payments.PaymentReceipt;
|
payments.getPaymentReceipt#2478d1cc peer:InputPeer msg_id:int = payments.PaymentReceipt;
|
||||||
|
@ -2025,10 +2047,21 @@ langpack.getLanguages#42c6978f lang_pack:string = Vector<LangPackLanguage>;
|
||||||
langpack.getLanguage#6a596502 lang_pack:string lang_code:string = LangPackLanguage;
|
langpack.getLanguage#6a596502 lang_pack:string lang_code:string = LangPackLanguage;
|
||||||
|
|
||||||
folders.editPeerFolders#6847d0ab folder_peers:Vector<InputFolderPeer> = Updates;
|
folders.editPeerFolders#6847d0ab folder_peers:Vector<InputFolderPeer> = Updates;
|
||||||
folders.deleteFolder#1c295881 folder_id:int = Updates;
|
|
||||||
|
|
||||||
stats.getBroadcastStats#ab42441a flags:# dark:flags.0?true channel:InputChannel = stats.BroadcastStats;
|
stats.getBroadcastStats#ab42441a flags:# dark:flags.0?true channel:InputChannel = stats.BroadcastStats;
|
||||||
stats.loadAsyncGraph#621d5fa0 flags:# token:string x:flags.0?long = StatsGraph;
|
stats.loadAsyncGraph#621d5fa0 flags:# token:string x:flags.0?long = StatsGraph;
|
||||||
stats.getMegagroupStats#dcdf8607 flags:# dark:flags.0?true channel:InputChannel = stats.MegagroupStats;
|
stats.getMegagroupStats#dcdf8607 flags:# dark:flags.0?true channel:InputChannel = stats.MegagroupStats;
|
||||||
stats.getMessagePublicForwards#5630281b channel:InputChannel msg_id:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages;
|
stats.getMessagePublicForwards#5630281b channel:InputChannel msg_id:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages;
|
||||||
stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats;
|
stats.getMessageStats#b6e0a3f5 flags:# dark:flags.0?true channel:InputChannel msg_id:int = stats.MessageStats;
|
||||||
|
|
||||||
|
chatlists.exportChatlistInvite#8472478e chatlist:InputChatlist title:string peers:Vector<InputPeer> = chatlists.ExportedChatlistInvite;
|
||||||
|
chatlists.deleteExportedInvite#719c5c5e chatlist:InputChatlist slug:string = Bool;
|
||||||
|
chatlists.editExportedInvite#653db63d flags:# chatlist:InputChatlist slug:string title:flags.1?string peers:flags.2?Vector<InputPeer> = ExportedChatlistInvite;
|
||||||
|
chatlists.getExportedInvites#ce03da83 chatlist:InputChatlist = chatlists.ExportedInvites;
|
||||||
|
chatlists.checkChatlistInvite#41c10fff slug:string = chatlists.ChatlistInvite;
|
||||||
|
chatlists.joinChatlistInvite#a6b1e39a slug:string peers:Vector<InputPeer> = Updates;
|
||||||
|
chatlists.getChatlistUpdates#89419521 chatlist:InputChatlist = chatlists.ChatlistUpdates;
|
||||||
|
chatlists.joinChatlistUpdates#e089f8f5 chatlist:InputChatlist peers:Vector<InputPeer> = Updates;
|
||||||
|
chatlists.hideChatlistUpdates#66e486fb chatlist:InputChatlist = Bool;
|
||||||
|
chatlists.getLeaveChatlistSuggestions#fdbcd714 chatlist:InputChatlist = Vector<Peer>;
|
||||||
|
chatlists.leaveChatlist#74fae13a chatlist:InputChatlist peers:Vector<InputPeer> = Updates;
|
||||||
|
|
|
@ -45,7 +45,14 @@
|
||||||
<div class="tl_blog_list_page_wrap">
|
<div class="tl_blog_list_page_wrap">
|
||||||
<h2 class="tl_blog_list_header">Telegram News</h2>
|
<h2 class="tl_blog_list_header">Telegram News</h2>
|
||||||
<div class="tl_blog_list_cards_wrap">
|
<div class="tl_blog_list_cards_wrap">
|
||||||
<a class="dev_blog_card_link_wrap" href="/tour/quizbot"><div class="dev_blog_card_wrap">
|
<a class="dev_blog_card_link_wrap" href="/tour/chat-folders"><div class="dev_blog_card_wrap">
|
||||||
|
|
||||||
|
<div class="dev_blog_card_alltext_wrap">
|
||||||
|
<h4 class="dev_blog_card_title">Shareable Chat Folders</h4>
|
||||||
|
<div class="dev_blog_card_lead">Any user can easily create a custom chat folder with up to 200 chats — and share it with friends, coworkers or followers by sending a single link. With just one tap, the recipient…</div>
|
||||||
|
</div>
|
||||||
|
<div class="dev_blog_card_date">Apr 21, 2023</div>
|
||||||
|
</div></a><a class="dev_blog_card_link_wrap" href="/tour/quizbot"><div class="dev_blog_card_wrap">
|
||||||
<img class="dev_blog_card_image" src="https://telegram.org/file/464001802/1/fwR7FzJKx2g.142023/3262deaf7701aed468" />
|
<img class="dev_blog_card_image" src="https://telegram.org/file/464001802/1/fwR7FzJKx2g.142023/3262deaf7701aed468" />
|
||||||
<div class="dev_blog_card_alltext_wrap">
|
<div class="dev_blog_card_alltext_wrap">
|
||||||
<h4 class="dev_blog_card_title">Quizzes</h4>
|
<h4 class="dev_blog_card_title">Quizzes</h4>
|
||||||
|
|
|
@ -48,7 +48,10 @@
|
||||||
<div class="side_blog">
|
<div class="side_blog">
|
||||||
<a href="/tour" class="side_blog_header">More Features</a>
|
<a href="/tour" class="side_blog_header">More Features</a>
|
||||||
<div class="side_blog_entries">
|
<div class="side_blog_entries">
|
||||||
<a href="/tour/quizbot" class="side_blog_entry side_tour_entry">
|
<a href="/tour/chat-folders" class="side_blog_entry side_tour_entry">
|
||||||
|
|
||||||
|
<div class="side_blog_title">Shareable Chat Folders</div>
|
||||||
|
</a><a href="/tour/quizbot" class="side_blog_entry side_tour_entry">
|
||||||
|
|
||||||
<div class="side_blog_title">Quizzes</div>
|
<div class="side_blog_title">Quizzes</div>
|
||||||
</a><a href="/tour/groups" class="side_blog_entry side_tour_entry">
|
</a><a href="/tour/groups" class="side_blog_entry side_tour_entry">
|
||||||
|
@ -226,7 +229,14 @@ Add extra emphasis and information to messages with <b>bold</b>, <i>italic</i> o
|
||||||
<a href="/blog">Other News</a>
|
<a href="/blog">Other News</a>
|
||||||
</h3>
|
</h3>
|
||||||
<div class="tl_main_recent_news_cards clearfix">
|
<div class="tl_main_recent_news_cards clearfix">
|
||||||
<a class="dev_blog_card_link_wrap" href="/tour/quizbot"><div class="dev_blog_card_wrap">
|
<a class="dev_blog_card_link_wrap" href="/tour/chat-folders"><div class="dev_blog_card_wrap">
|
||||||
|
|
||||||
|
<div class="dev_blog_card_alltext_wrap">
|
||||||
|
<h4 class="dev_blog_card_title">Shareable Chat Folders</h4>
|
||||||
|
<div class="dev_blog_card_lead">Any user can easily create a custom chat folder with up to 200 chats — and share it with friends, coworkers or followers by sending a single link. With just one tap, the recipient…</div>
|
||||||
|
</div>
|
||||||
|
<div class="dev_blog_card_date">Apr 21, 2023</div>
|
||||||
|
</div></a><a class="dev_blog_card_link_wrap" href="/tour/quizbot"><div class="dev_blog_card_wrap">
|
||||||
<img class="dev_blog_card_image" src="https://telegram.org/file/464001802/1/fwR7FzJKx2g.142023/3262deaf7701aed468" />
|
<img class="dev_blog_card_image" src="https://telegram.org/file/464001802/1/fwR7FzJKx2g.142023/3262deaf7701aed468" />
|
||||||
<div class="dev_blog_card_alltext_wrap">
|
<div class="dev_blog_card_alltext_wrap">
|
||||||
<h4 class="dev_blog_card_title">Quizzes</h4>
|
<h4 class="dev_blog_card_title">Quizzes</h4>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<meta property="og:image" content="https://telegram.org/file/464001621/11999/1OdERg5Vqnw.33767.png/2bf1bdacebea98176e">
|
<meta property="og:image" content="https://telegram.org/file/464001621/11999/1OdERg5Vqnw.33767.png/2bf1bdacebea98176e">
|
||||||
<meta property="og:site_name" content="Telegram">
|
<meta property="og:site_name" content="Telegram">
|
||||||
<meta property="og:description" content="">
|
<meta property="og:description" content="">
|
||||||
<meta name="twitter:card" content="summary_large_image" /><meta name="twitter:image" content="https://telegram.org/file/464001621/11999/1OdERg5Vqnw.33767.png/2bf1bdacebea98176e" />
|
<meta property="article:published_time" content="2023-04-21T11:27:36+00:00"><meta name="twitter:card" content="summary_large_image" /><meta name="twitter:image" content="https://telegram.org/file/464001621/11999/1OdERg5Vqnw.33767.png/2bf1bdacebea98176e" />
|
||||||
<meta property="fb:app_id" content="254098051407226">
|
<meta property="fb:app_id" content="254098051407226">
|
||||||
<meta property="vk:app_id" content="3782569">
|
<meta property="vk:app_id" content="3782569">
|
||||||
<meta name="apple-itunes-app" content="app-id=686449807">
|
<meta name="apple-itunes-app" content="app-id=686449807">
|
||||||
|
@ -48,7 +48,10 @@
|
||||||
<div class="side_blog">
|
<div class="side_blog">
|
||||||
<a href="/tour" class="side_blog_header">More Features</a>
|
<a href="/tour" class="side_blog_header">More Features</a>
|
||||||
<div class="side_blog_entries">
|
<div class="side_blog_entries">
|
||||||
<a href="/tour/quizbot" class="side_blog_entry side_tour_entry">
|
<a href="/tour/chat-folders" class="side_blog_entry side_tour_entry">
|
||||||
|
|
||||||
|
<div class="side_blog_title">Shareable Chat Folders</div>
|
||||||
|
</a><a href="/tour/quizbot" class="side_blog_entry side_tour_entry">
|
||||||
|
|
||||||
<div class="side_blog_title">Quizzes</div>
|
<div class="side_blog_title">Quizzes</div>
|
||||||
</a><a href="/tour/groups" class="side_blog_entry side_tour_entry">
|
</a><a href="/tour/groups" class="side_blog_entry side_tour_entry">
|
||||||
|
@ -69,7 +72,7 @@
|
||||||
<picture class="dev_page_tgsticker blog_side_image js-tgsticker_image" style="width:160px;"><div style="padding-top:100%"></div><source type="application/x-tgsticker" srcset="/file/464001621/11998/tm6YigZKvsE.15704/e2b92ac8517b16d635"><img src="/file/464001621/11999/1OdERg5Vqnw.33767.png/2bf1bdacebea98176e" /></picture>
|
<picture class="dev_page_tgsticker blog_side_image js-tgsticker_image" style="width:160px;"><div style="padding-top:100%"></div><source type="application/x-tgsticker" srcset="/file/464001621/11998/tm6YigZKvsE.15704/e2b92ac8517b16d635"><img src="/file/464001621/11999/1OdERg5Vqnw.33767.png/2bf1bdacebea98176e" /></picture>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p>Any user can easily create a custom <a href="https://telegram.org/blog/folders">chat folder</a> with up to <strong>200</strong> chats — and share it with friends, coworkers or followers by sending a <strong>single link</strong>. With just one tap, the recipient can conveniently join <strong>every group and channel</strong> in the folder.</p>
|
<p>Any user can easily create a custom <a href="https://telegram.org/blog/shareable-folders-custom-wallpapers">chat folder</a> with up to <strong>200</strong> chats — and share it with friends, coworkers or followers by sending a <strong>single link</strong>. With just one tap, the recipient can conveniently join <strong>every group and channel</strong> in the folder.</p>
|
||||||
<p>This unlocks a seamless <strong>onboarding process</strong> for companies, enables journalists and experts to rapidly share <strong>lists of curated news sources and communities</strong>, and more.</p>
|
<p>This unlocks a seamless <strong>onboarding process</strong> for companies, enables journalists and experts to rapidly share <strong>lists of curated news sources and communities</strong>, and more.</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="#creating-chat-folders">Creating Chat Folders</a></li>
|
<li><a href="#creating-chat-folders">Creating Chat Folders</a></li>
|
||||||
|
|
|
@ -48,7 +48,10 @@
|
||||||
<div class="side_blog">
|
<div class="side_blog">
|
||||||
<a href="/tour" class="side_blog_header">More Features</a>
|
<a href="/tour" class="side_blog_header">More Features</a>
|
||||||
<div class="side_blog_entries">
|
<div class="side_blog_entries">
|
||||||
<a href="/tour/quizbot" class="side_blog_entry side_tour_entry">
|
<a href="/tour/chat-folders" class="side_blog_entry side_tour_entry">
|
||||||
|
|
||||||
|
<div class="side_blog_title">Shareable Chat Folders</div>
|
||||||
|
</a><a href="/tour/quizbot" class="side_blog_entry side_tour_entry">
|
||||||
|
|
||||||
<div class="side_blog_title">Quizzes</div>
|
<div class="side_blog_title">Quizzes</div>
|
||||||
</a><a href="/tour/groups" class="side_blog_entry side_tour_entry">
|
</a><a href="/tour/groups" class="side_blog_entry side_tour_entry">
|
||||||
|
@ -174,7 +177,14 @@
|
||||||
<a href="/blog">Other News</a>
|
<a href="/blog">Other News</a>
|
||||||
</h3>
|
</h3>
|
||||||
<div class="tl_main_recent_news_cards clearfix">
|
<div class="tl_main_recent_news_cards clearfix">
|
||||||
<a class="dev_blog_card_link_wrap" href="/tour/quizbot"><div class="dev_blog_card_wrap">
|
<a class="dev_blog_card_link_wrap" href="/tour/chat-folders"><div class="dev_blog_card_wrap">
|
||||||
|
|
||||||
|
<div class="dev_blog_card_alltext_wrap">
|
||||||
|
<h4 class="dev_blog_card_title">Shareable Chat Folders</h4>
|
||||||
|
<div class="dev_blog_card_lead">Any user can easily create a custom chat folder with up to 200 chats — and share it with friends, coworkers or followers by sending a single link. With just one tap, the recipient…</div>
|
||||||
|
</div>
|
||||||
|
<div class="dev_blog_card_date">Apr 21, 2023</div>
|
||||||
|
</div></a><a class="dev_blog_card_link_wrap" href="/tour/quizbot"><div class="dev_blog_card_wrap">
|
||||||
<img class="dev_blog_card_image" src="https://telegram.org/file/464001802/1/fwR7FzJKx2g.142023/3262deaf7701aed468" />
|
<img class="dev_blog_card_image" src="https://telegram.org/file/464001802/1/fwR7FzJKx2g.142023/3262deaf7701aed468" />
|
||||||
<div class="dev_blog_card_alltext_wrap">
|
<div class="dev_blog_card_alltext_wrap">
|
||||||
<h4 class="dev_blog_card_title">Quizzes</h4>
|
<h4 class="dev_blog_card_title">Quizzes</h4>
|
||||||
|
|
|
@ -48,7 +48,10 @@
|
||||||
<div class="side_blog">
|
<div class="side_blog">
|
||||||
<a href="/tour" class="side_blog_header">More Features</a>
|
<a href="/tour" class="side_blog_header">More Features</a>
|
||||||
<div class="side_blog_entries">
|
<div class="side_blog_entries">
|
||||||
<a href="/tour/quizbot" class="side_blog_entry side_tour_entry">
|
<a href="/tour/chat-folders" class="side_blog_entry side_tour_entry">
|
||||||
|
|
||||||
|
<div class="side_blog_title">Shareable Chat Folders</div>
|
||||||
|
</a><a href="/tour/quizbot" class="side_blog_entry side_tour_entry">
|
||||||
|
|
||||||
<div class="side_blog_title">Quizzes</div>
|
<div class="side_blog_title">Quizzes</div>
|
||||||
</a><a href="/tour/groups" class="side_blog_entry side_tour_entry">
|
</a><a href="/tour/groups" class="side_blog_entry side_tour_entry">
|
||||||
|
@ -123,7 +126,14 @@
|
||||||
<a href="/blog">Other News</a>
|
<a href="/blog">Other News</a>
|
||||||
</h3>
|
</h3>
|
||||||
<div class="tl_main_recent_news_cards clearfix">
|
<div class="tl_main_recent_news_cards clearfix">
|
||||||
<a class="dev_blog_card_link_wrap" href="/tour/groups"><div class="dev_blog_card_wrap">
|
<a class="dev_blog_card_link_wrap" href="/tour/chat-folders"><div class="dev_blog_card_wrap">
|
||||||
|
|
||||||
|
<div class="dev_blog_card_alltext_wrap">
|
||||||
|
<h4 class="dev_blog_card_title">Shareable Chat Folders</h4>
|
||||||
|
<div class="dev_blog_card_lead">Any user can easily create a custom chat folder with up to 200 chats — and share it with friends, coworkers or followers by sending a single link. With just one tap, the recipient…</div>
|
||||||
|
</div>
|
||||||
|
<div class="dev_blog_card_date">Apr 21, 2023</div>
|
||||||
|
</div></a><a class="dev_blog_card_link_wrap" href="/tour/groups"><div class="dev_blog_card_wrap">
|
||||||
<img class="dev_blog_card_image" src="https://telegram.org/img/tl_card_coordinate.gif" />
|
<img class="dev_blog_card_image" src="https://telegram.org/img/tl_card_coordinate.gif" />
|
||||||
<div class="dev_blog_card_alltext_wrap">
|
<div class="dev_blog_card_alltext_wrap">
|
||||||
<h4 class="dev_blog_card_title">Group Chats on Telegram</h4>
|
<h4 class="dev_blog_card_title">Group Chats on Telegram</h4>
|
||||||
|
|
|
@ -48,7 +48,10 @@
|
||||||
<div class="side_blog">
|
<div class="side_blog">
|
||||||
<a href="/tour" class="side_blog_header">More Features</a>
|
<a href="/tour" class="side_blog_header">More Features</a>
|
||||||
<div class="side_blog_entries">
|
<div class="side_blog_entries">
|
||||||
<a href="/tour/quizbot" class="side_blog_entry side_tour_entry">
|
<a href="/tour/chat-folders" class="side_blog_entry side_tour_entry">
|
||||||
|
|
||||||
|
<div class="side_blog_title">Shareable Chat Folders</div>
|
||||||
|
</a><a href="/tour/quizbot" class="side_blog_entry side_tour_entry">
|
||||||
|
|
||||||
<div class="side_blog_title">Quizzes</div>
|
<div class="side_blog_title">Quizzes</div>
|
||||||
</a><a href="/tour/groups" class="side_blog_entry side_tour_entry">
|
</a><a href="/tour/groups" class="side_blog_entry side_tour_entry">
|
||||||
|
@ -124,7 +127,14 @@
|
||||||
<a href="/blog">Other News</a>
|
<a href="/blog">Other News</a>
|
||||||
</h3>
|
</h3>
|
||||||
<div class="tl_main_recent_news_cards clearfix">
|
<div class="tl_main_recent_news_cards clearfix">
|
||||||
<a class="dev_blog_card_link_wrap" href="/tour/quizbot"><div class="dev_blog_card_wrap">
|
<a class="dev_blog_card_link_wrap" href="/tour/chat-folders"><div class="dev_blog_card_wrap">
|
||||||
|
|
||||||
|
<div class="dev_blog_card_alltext_wrap">
|
||||||
|
<h4 class="dev_blog_card_title">Shareable Chat Folders</h4>
|
||||||
|
<div class="dev_blog_card_lead">Any user can easily create a custom chat folder with up to 200 chats — and share it with friends, coworkers or followers by sending a single link. With just one tap, the recipient…</div>
|
||||||
|
</div>
|
||||||
|
<div class="dev_blog_card_date">Apr 21, 2023</div>
|
||||||
|
</div></a><a class="dev_blog_card_link_wrap" href="/tour/quizbot"><div class="dev_blog_card_wrap">
|
||||||
<img class="dev_blog_card_image" src="https://telegram.org/file/464001802/1/fwR7FzJKx2g.142023/3262deaf7701aed468" />
|
<img class="dev_blog_card_image" src="https://telegram.org/file/464001802/1/fwR7FzJKx2g.142023/3262deaf7701aed468" />
|
||||||
<div class="dev_blog_card_alltext_wrap">
|
<div class="dev_blog_card_alltext_wrap">
|
||||||
<h4 class="dev_blog_card_title">Quizzes</h4>
|
<h4 class="dev_blog_card_title">Quizzes</h4>
|
||||||
|
|
Loading…
Reference in a new issue