mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-11-29 03:33:09 +01:00
Update content of files
This commit is contained in:
parent
8bd49e7908
commit
16ec394265
15 changed files with 127 additions and 102 deletions
|
@ -137,9 +137,9 @@ The same should happen when clicking on <a href="/constructor/keyboardButtonGame
|
|||
<li><code>message</code> if specified, a message that should be shown in a non-blocking toast notification</li>
|
||||
<li><code>alert</code> indicates whether the <code>message</code> should be shown as a dismissible prompt, instead of a simple toast notification</li>
|
||||
<li><code>has_url</code> Whether an URL is present</li>
|
||||
<li><code>url</code> if specified, the client should open the URL, without showing a confirmation prompt. <br> This is safe and allowed, because here, bots can only return: <ul>
|
||||
<li>URLs to themselves with added query parameters (<code>t.me/bot?start=aaa</code>)</li>
|
||||
<li>URLs to a valid game, if the bot has manually configured games, and the clicked button was a <a href="/constructor/keyboardButtonGame">keyboardButtonGame</a>. </li>
|
||||
<li><code>url</code> if specified, the client should open the URL, without showing a confirmation prompt. <br> This is safe and allowed, because here bots can only return: <ul>
|
||||
<li><a href="/api/links#bot-links">Deep links to themselves »</a></li>
|
||||
<li><a href="/api/links#game-links">Deep links to a valid game they own »</a>, if the bot has manually configured games, and the clicked button was a <a href="/constructor/keyboardButtonGame">keyboardButtonGame</a>. </li>
|
||||
</ul>
|
||||
</li>
|
||||
<li><code>native_ui</code> whether to open game URLs in a WebView or in native UI.</li>
|
||||
|
|
|
@ -154,7 +154,7 @@
|
|||
<li>Added <a href="/constructor/attachMenuPeerTypeBroadcast">attachMenuPeerTypeBroadcast</a> - The bot attachment menu entry is available in channels</li>
|
||||
<li>Added <a href="/constructor/chatInvitePublicJoinRequests">chatInvitePublicJoinRequests</a> - Used in updates and in the channel log to indicate when a user is requesting to join or has joined a <a href="/api/discussion#requiring-users-to-join-the-group">discussion group</a></li>
|
||||
<li>Added <a href="/constructor/inputInvoiceMessage">inputInvoiceMessage</a> - An invoice contained in a <a href="/constructor/messageMediaInvoice">messageMediaInvoice</a> message.</li>
|
||||
<li>Added <a href="/constructor/inputInvoiceSlug">inputInvoiceSlug</a> - An invoice slug taken from a t.me/invoice/<slug> link or from the <a href="/api/config#client-configuration"><code>premium_invoice_slug</code> app config parameter »</a></slug></li>
|
||||
<li>Added <a href="/constructor/inputInvoiceSlug">inputInvoiceSlug</a> - An invoice slug taken from an <a href="/api/links#invoice-links">invoice deep link</a> or from the <a href="/api/config#client-configuration"><code>premium_invoice_slug</code> app config parameter »</a></li>
|
||||
<li>Added <a href="/constructor/payments.exportedInvoice">payments.exportedInvoice</a> - Exported invoice</li>
|
||||
<li>Added <a href="/constructor/updateTranscribedAudio">updateTranscribedAudio</a> - A pending transcription initiated with <a href="/method/messages.transcribeAudio">messages.transcribeAudio</a> was updated.</li>
|
||||
<li>Added <a href="/constructor/messages.transcribedAudio">messages.transcribedAudio</a> - Transcribed text from a voice message</li>
|
||||
|
@ -231,6 +231,7 @@
|
|||
<a href="/method/payments.canPurchasePremium">payments.canPurchasePremium</a>#aa6a90c8 = <a href="/type/Bool">Bool</a>;<br>
|
||||
<a href="/method/help.getPremiumPromo">help.getPremiumPromo</a>#b81b93d4 = <a href="/type/help.PremiumPromo">help.PremiumPromo</a>;<br></code></pre></div>
|
||||
<h3><a class="anchor" href="#layer-142" id="layer-142" name="layer-142"><i class="anchor-icon"></i></a><a href="/schema?layer=142">Layer 142</a></h3>
|
||||
<p>Allow TCP WebRTC connections.</p>
|
||||
<h4><a class="anchor" href="#schema-changes" id="schema-changes" name="schema-changes"><i class="anchor-icon"></i></a>Schema changes</h4>
|
||||
<h5><a class="anchor" href="#changed-constructors" id="changed-constructors" name="changed-constructors"><i class="anchor-icon"></i></a>Changed Constructors</h5>
|
||||
<ul>
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
<li><code>http://t.me/path?query</code></li>
|
||||
<li><code>https://t.me/path?query</code></li>
|
||||
</ul>
|
||||
<p>Where <code>t.me</code> can also be <code>telegram.me</code> or <code>telegram.dog</code>.</p>
|
||||
<p>Where <code>t.me</code> can also be <code>telegram.me</code>, <code>telegram.dog</code>, and the domain specified in the <code>me_url_prefix</code> field of the global <a href="/constructor/config">configuration</a>, obtainable using <a href="/method/help.getConfig">help.getConfig</a>.</p>
|
||||
<p><code>tg:</code> link syntax examples: </p>
|
||||
<ul>
|
||||
<li><code>tg:path?query</code></li>
|
||||
|
@ -61,9 +61,9 @@
|
|||
<p>The <code>#fragment</code> part is always ignored when parsing links. </p>
|
||||
<h3><a class="anchor" href="#public-username-links" id="public-username-links" name="public-username-links"><i class="anchor-icon"></i></a>Public username links</h3>
|
||||
<p>Used to link to public users, groups and channels, see <a href="/api/invites#public-usernames">here for more info on how to handle them »</a>. </p>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/<username></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://resolve?domain=<username></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -85,9 +85,9 @@
|
|||
<p>Note that <a href="#message-links">message links</a> have the same syntax, with extra parameters. </p>
|
||||
<h3><a class="anchor" href="#phone-number-links" id="phone-number-links" name="phone-number-links"><i class="anchor-icon"></i></a>Phone number links</h3>
|
||||
<p>Used to link to public and private users by their phone number. </p>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/+<phone_number></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://resolve?phone=<phone_number></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -109,11 +109,11 @@
|
|||
<p>Note that <a href="#message-links">chat invite links</a> have the same syntax, but <code><phone_number></code> is not a valid phone number. </p>
|
||||
<h3><a class="anchor" href="#chat-invite-links" id="chat-invite-links" name="chat-invite-links"><i class="anchor-icon"></i></a>Chat invite links</h3>
|
||||
<p>Used to invite users to private groups and channels, see <a href="/api/invites#invite-links">here for more info on how to generate such links »</a>. </p>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/+<hash></code></pre>
|
||||
<p>t.me syntax (legacy):</p>
|
||||
<p><code>t.me</code> syntax (legacy):</p>
|
||||
<pre><code>t.me/joinchat/<hash></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://join?invite=<hash></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -134,13 +134,13 @@
|
|||
</table>
|
||||
<h3><a class="anchor" href="#message-links" id="message-links" name="message-links"><i class="anchor-icon"></i></a>Message links</h3>
|
||||
<p>Used to link to specific messages in public or private groups and channels. </p>
|
||||
<p>t.me syntax (public links): </p>
|
||||
<p><code>t.me</code> syntax (public links): </p>
|
||||
<pre><code>t.me/<username>/<id>?single&thread=<thread_id>&comment=<message_id>&t=<media_timestamp></code></pre>
|
||||
<p>t.me syntax (private links): </p>
|
||||
<p><code>t.me</code> syntax (private links): </p>
|
||||
<pre><code>t.me/c/<channel>/<id>?single&thread=<thread_id>&comment=<message_id>&t=<media_timestamp></code></pre>
|
||||
<p>tg: syntax (public links):</p>
|
||||
<p><code>tg:</code> syntax (public links):</p>
|
||||
<pre><code>tg://resolve?domain=<username>&post=<id>&single&thread=<thread>&comment=<comment>&t=<media_timestamp></code></pre>
|
||||
<p>tg: syntax (private links):</p>
|
||||
<p><code>tg:</code> syntax (private links):</p>
|
||||
<pre><code>tg://privatepost?channel=<channelid>&post=<id>&single&thread=<thread>&comment=<comment>&t=<media_timestamp></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -192,44 +192,44 @@
|
|||
<h3><a class="anchor" href="#settings-links" id="settings-links" name="settings-links"><i class="anchor-icon"></i></a>Settings links</h3>
|
||||
<h4><a class="anchor" href="#settings-link" id="settings-link" name="settings-link"><i class="anchor-icon"></i></a>Settings link</h4>
|
||||
<p>Used to bring the user to the app settings. </p>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://settings</code></pre>
|
||||
<p>No parameters.</p>
|
||||
<h4><a class="anchor" href="#change-phone-number-link" id="change-phone-number-link" name="change-phone-number-link"><i class="anchor-icon"></i></a>Change phone number link</h4>
|
||||
<p>Used to bring the user to the phone number modification page, invoking <a href="/method/account.sendChangePhoneCode">account.sendChangePhoneCode</a> and <a href="/method/account.changePhone">account.changePhone</a>.</p>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://settings/change_number</code></pre>
|
||||
<p>No parameters.</p>
|
||||
<h4><a class="anchor" href="#active-sessions-link" id="active-sessions-link" name="active-sessions-link"><i class="anchor-icon"></i></a>Active sessions link</h4>
|
||||
<p>Used to bring the user to the active sessions page, calling <a href="/method/account.getAuthorizations">account.getAuthorizations</a>. </p>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://settings/devices</code></pre>
|
||||
<p>No parameters.</p>
|
||||
<h4><a class="anchor" href="#folder-settings-link" id="folder-settings-link" name="folder-settings-link"><i class="anchor-icon"></i></a>Folder settings link</h4>
|
||||
<p>Used to bring the user to the <a href="/api/folders">folder settings</a>. </p>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://settings/folders</code></pre>
|
||||
<p>No parameters.</p>
|
||||
<h4><a class="anchor" href="#language-settings-link" id="language-settings-link" name="language-settings-link"><i class="anchor-icon"></i></a>Language settings link</h4>
|
||||
<p>Used to bring the user to the language settings. </p>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://settings/language</code></pre>
|
||||
<p>No parameters.</p>
|
||||
<h4><a class="anchor" href="#privacy-and-security-settings-link" id="privacy-and-security-settings-link" name="privacy-and-security-settings-link"><i class="anchor-icon"></i></a>Privacy and security settings link</h4>
|
||||
<p>Used to bring the user to the privacy and security settings. </p>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://settings/privacy</code></pre>
|
||||
<p>No parameters.</p>
|
||||
<h4><a class="anchor" href="#theme-settings-link" id="theme-settings-link" name="theme-settings-link"><i class="anchor-icon"></i></a>Theme settings link</h4>
|
||||
<p>Used to bring the user to the theme settings section of the app. </p>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://settings/theme</code></pre>
|
||||
<p>No parameters.</p>
|
||||
<h3><a class="anchor" href="#login-code-link" id="login-code-link" name="login-code-link"><i class="anchor-icon"></i></a>Login code link</h3>
|
||||
<p>Contains the phone number verification code to use during <a href="/api/auth">user authorization »</a>. </p>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/login/<code></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://login?code=<code></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -252,9 +252,9 @@
|
|||
<p>Used to share and install chat backgrounds (wallpapers): see <a href="/api/wallpapers">here for more info on the various wallpaper and fill types »</a>. </p>
|
||||
<h4><a class="anchor" href="#image-wallpapers" id="image-wallpapers" name="image-wallpapers"><i class="anchor-icon"></i></a><a href="/api/wallpapers#image-wallpapers">Image wallpapers</a></h4>
|
||||
<p>Used for <a href="/api/wallpapers#image-wallpapers">image-based wallpapers »</a>. </p>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/bg/<slug>?mode=<mode></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://bg?slug=<slug>&mode=<mode></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -280,9 +280,9 @@
|
|||
</table>
|
||||
<h4><a class="anchor" href="#solid-fill-wallpapers" id="solid-fill-wallpapers" name="solid-fill-wallpapers"><i class="anchor-icon"></i></a>Solid fill wallpapers</h4>
|
||||
<p>Used for <a href="/api/wallpapers#fill-wallpapers">fill wallpapers »</a> with a <a href="/api/wallpapers#solid-fill">solid fill »</a>. </p>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/bg/<hex_color></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://bg?color=<hex_color></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -303,9 +303,9 @@
|
|||
</table>
|
||||
<h4><a class="anchor" href="#gradient-fill-wallpapers" id="gradient-fill-wallpapers" name="gradient-fill-wallpapers"><i class="anchor-icon"></i></a>Gradient fill wallpapers</h4>
|
||||
<p>Used for <a href="/api/wallpapers#fill-wallpapers">fill wallpapers »</a> with a <a href="/api/wallpapers#gradient-fill">gradient fill »</a>. </p>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/bg/<top_color>-<bottom_color>?rotation=<rotation></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://bg?gradient=<top_color>-<bottom_color>&rotation=<rotation></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -336,10 +336,10 @@
|
|||
</table>
|
||||
<h4><a class="anchor" href="#freeform-gradient-fill-wallpapers" id="freeform-gradient-fill-wallpapers" name="freeform-gradient-fill-wallpapers"><i class="anchor-icon"></i></a>Freeform gradient fill wallpapers</h4>
|
||||
<p>Used for <a href="/api/wallpapers#fill-wallpapers">fill wallpapers »</a> with a <a href="/api/wallpapers#freeform-gradient-fill">freeform gradient fill »</a>. </p>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/bg/<hex_color1>~<hex_color2>~<hex_color3>
|
||||
t.me/bg/<hex_color1>~<hex_color2>~<hex_color3>~<hex_color4></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://bg?gradient=<hex_color1>~<hex_color2>~<hex_color3>
|
||||
tg://bg?gradient=<hex_color1>~<hex_color2>~<hex_color3>~<hex_color4></code></pre>
|
||||
<p>Parameters:</p>
|
||||
|
@ -376,9 +376,9 @@ tg://bg?gradient=<hex_color1>~<hex_color2>~<hex_color3>~<he
|
|||
</table>
|
||||
<h4><a class="anchor" href="#solid-pattern-wallpapers" id="solid-pattern-wallpapers" name="solid-pattern-wallpapers"><i class="anchor-icon"></i></a>Solid pattern wallpapers</h4>
|
||||
<p>Used for <a href="/api/wallpapers#pattern-wallpapers">pattern wallpapers »</a> with a <a href="/api/wallpapers#solid-fill">solid fill »</a>. </p>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/bg/<slug>?intensity=<intensity>&bg_color=<bg_color>&mode=<mode></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://bg?slug=<slug>&intensity=<intensity>&bg_color=<bg_color>&mode=<mode></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -414,9 +414,9 @@ tg://bg?gradient=<hex_color1>~<hex_color2>~<hex_color3>~<he
|
|||
</table>
|
||||
<h4><a class="anchor" href="#gradient-pattern-wallpapers" id="gradient-pattern-wallpapers" name="gradient-pattern-wallpapers"><i class="anchor-icon"></i></a>Gradient pattern wallpapers</h4>
|
||||
<p>Used for <a href="/api/wallpapers#pattern-wallpapers">pattern wallpapers »</a> with a <a href="/api/wallpapers#gradient-fill">gradient fill »</a>. </p>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/bg/<slug>?intensity=<intensity>&bg_color=<top_color>-<bottom_color>&rotation=<rotation>&mode=<mode></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://bg?slug=<slug>&intensity=<intensity>&bg_color=<top_color>-<bottom_color>&rotation=<rotation>&mode=<mode></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -462,10 +462,10 @@ tg://bg?gradient=<hex_color1>~<hex_color2>~<hex_color3>~<he
|
|||
</table>
|
||||
<h4><a class="anchor" href="#freeform-gradient-pattern-wallpapers" id="freeform-gradient-pattern-wallpapers" name="freeform-gradient-pattern-wallpapers"><i class="anchor-icon"></i></a>Freeform gradient pattern wallpapers</h4>
|
||||
<p>Used for <a href="/api/wallpapers#pattern-wallpapers">pattern wallpapers »</a> with a <a href="/api/wallpapers#freeform-gradient-fill">freeform gradient fill »</a>. </p>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/bg/<slug>?intensity=<intensity>&bg_color=<hex_color1>~<hex_color2>~<hex_color3>&mode=<mode>
|
||||
t.me/bg/<slug>?intensity=<intensity>&bg_color=<hex_color1>~<hex_color2>~<hex_color3>~<hex_color4>&mode=<mode></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://bg?slug=<slug>&intensity=<intensity>&bg_color=<hex_color1>~<hex_color2>~<hex_color3>&mode=<mode>
|
||||
tg://bg?slug=<slug>&intensity=<intensity>&bg_color=<hex_color1>~<hex_color2>~<hex_color3>~<hex_color4>&mode=<mode></code></pre>
|
||||
<p>Parameters:</p>
|
||||
|
@ -517,9 +517,9 @@ tg://bg?slug=<slug>&intensity=<intensity>&bg_color=<hex_c
|
|||
</table>
|
||||
<h3><a class="anchor" href="#bot-links" id="bot-links" name="bot-links"><i class="anchor-icon"></i></a>Bot links</h3>
|
||||
<p>Used to link to bots.</p>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/<bot_username>?start=<parameter></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://resolve?domain=<bot_username>&start=<parameter></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -568,15 +568,15 @@ Then, for group links:</p>
|
|||
<li>If the bot is already an admin of the channel, combine existing admin rights with the admin rights in <code>admin</code></li>
|
||||
<li>Add the bot as admin/modify admin permissions to the new rights</li>
|
||||
</ul>
|
||||
<p>t.me syntax (groups):</p>
|
||||
<p><code>t.me</code> syntax (groups):</p>
|
||||
<pre><code>t.me/<bot_username>?startgroup=<parameter>&admin=<permissions>
|
||||
t.me/<bot_username>?startgroup&admin=<permissions></code></pre>
|
||||
<p>tg: syntax (groups):</p>
|
||||
<p><code>tg:</code> syntax (groups):</p>
|
||||
<pre><code>tg://resolve?domain=<bot_username>&startgroup=<parameter>&admin=<permissions>
|
||||
tg://resolve?domain=<bot_username>&startgroup&admin=<permissions></code></pre>
|
||||
<p>t.me syntax (channels):</p>
|
||||
<p><code>t.me</code> syntax (channels):</p>
|
||||
<pre><code>t.me/<bot_username>?startchannel&admin=<permissions></code></pre>
|
||||
<p>tg: syntax (channels):</p>
|
||||
<p><code>tg:</code> syntax (channels):</p>
|
||||
<pre><code>tg://resolve?domain=<bot_username>&startchannel&admin=<permissions></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -613,9 +613,9 @@ tg://resolve?domain=<bot_username>&startgroup&admin=<permission
|
|||
<li>Bring up a dialog selection prompt</li>
|
||||
<li>Send the game to the selected dialog using an <a href="/constructor/inputMediaGame">inputMediaGame</a> with an <a href="/constructor/inputGameShortName">inputGameShortName</a> as specified in the <a href="/api/bots/games#sending-a-game">game docs</a>. </li>
|
||||
</ul>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/<bot_username>?game=<short_name></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://resolve?domain=<bot_username>&game=<short_name></code></pre>
|
||||
<p>Parameters: </p>
|
||||
<table class="table">
|
||||
|
@ -640,10 +640,10 @@ tg://resolve?domain=<bot_username>&startgroup&admin=<permission
|
|||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#invoice-links" id="invoice-links" name="invoice-links"><i class="anchor-icon"></i></a>Invoice links</h3>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/invoice/<slug>
|
||||
t.me/$<slug></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://invoice?slug=<slug></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -664,9 +664,9 @@ t.me/$<slug></code></pre>
|
|||
</table>
|
||||
<h3><a class="anchor" href="#language-pack-links" id="language-pack-links" name="language-pack-links"><i class="anchor-icon"></i></a>Language pack links</h3>
|
||||
<p>Used to import custom language packs using <a href="/method/langpack.getLangPack">langpack.getLangPack</a>.</p>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/setlanguage/<slug></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://setlanguage?lang=<slug></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -694,10 +694,10 @@ These links should be handled as follows: </p>
|
|||
<li>Append a newline to the text field</li>
|
||||
<li>Append and select the <code>text</code>, if present</li>
|
||||
</ul>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/share?url=<url>
|
||||
t.me/share/url?url=<url>&text=<text></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://msg_url?url=<url>
|
||||
tg://msg_url?url=<url>&text=<text></code></pre>
|
||||
<p>Parameters:</p>
|
||||
|
@ -723,16 +723,16 @@ tg://msg_url?url=<url>&text=<text></code></pre>
|
|||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#telegram-passport-links" id="telegram-passport-links" name="telegram-passport-links"><i class="anchor-icon"></i></a>Telegram Passport links</h3>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/passport?bot_id=<bot_user_id>&scope=<scope>&public_key=<public_key>&nonce=<nonce></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://resolve?domain=telegrampassport&bot_id=<bot_user_id>&scope=<scope>&public_key=<public_key>&nonce=<nonce></code></pre>
|
||||
<h3><a class="anchor" href="#phone-confirmation-links" id="phone-confirmation-links" name="phone-confirmation-links"><i class="anchor-icon"></i></a>Phone confirmation links</h3>
|
||||
<p>Different from <a href="#login-code-links">login code links</a>.<br>
|
||||
These links are used to confirm ownership of the phone number, to prevent account deletion: see <a href="/api/account-deletion">the account deletion docs for more info on how to handle them »</a>.</p>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/confirmphone?phone=<phone>&hash=<hash></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://confirmphone?phone=<phone>&hash=<hash></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -758,7 +758,7 @@ These links are used to confirm ownership of the phone number, to prevent accoun
|
|||
</table>
|
||||
<h3><a class="anchor" href="#premium-referrer-links" id="premium-referrer-links" name="premium-referrer-links"><i class="anchor-icon"></i></a>Premium referrer links</h3>
|
||||
<p>Used by official apps to show the <a href="/api/premium">Telegram Premium</a> subscription page. </p>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://premium_offer?ref=<referrer></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -781,9 +781,9 @@ These links are used to confirm ownership of the phone number, to prevent accoun
|
|||
<p>Used to share a proxy server that can be used to connect to Telegram. </p>
|
||||
<h4><a class="anchor" href="#mtproxy-links" id="mtproxy-links" name="mtproxy-links"><i class="anchor-icon"></i></a>MTProxy links</h4>
|
||||
<p>Used for <a href="/mtproto/mtproto-transports#transport-obfuscation">MTProxies »</a>.</p>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/proxy?server=<server>&port=<port>&secret=<secret></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://proxy?server=<server>&port=<port>&secret=<secret></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -814,9 +814,9 @@ These links are used to confirm ownership of the phone number, to prevent accoun
|
|||
</table>
|
||||
<h4><a class="anchor" href="#socks5-proxy-links" id="socks5-proxy-links" name="socks5-proxy-links"><i class="anchor-icon"></i></a>Socks5 proxy links</h4>
|
||||
<p>Used for socks5 proxies.</p>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/socks?server=<server>&port=<port>&user=<user>&pass=<pass></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://socks?server=<server>&port=<port>&user=<user>&pass=<pass></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -852,7 +852,7 @@ These links are used to confirm ownership of the phone number, to prevent accoun
|
|||
</table>
|
||||
<h3><a class="anchor" href="#qr-code-login-links" id="qr-code-login-links" name="qr-code-login-links"><i class="anchor-icon"></i></a>QR code login links</h3>
|
||||
<p>Used by <a href="/api/qr-login">QR code login</a>.</p>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://login?token=<base64encodedtoken></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -873,9 +873,9 @@ These links are used to confirm ownership of the phone number, to prevent accoun
|
|||
</table>
|
||||
<h3><a class="anchor" href="#stickerset-links" id="stickerset-links" name="stickerset-links"><i class="anchor-icon"></i></a>Stickerset links</h3>
|
||||
<p>Used to import stickersets:</p>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/addstickers/<name></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://addstickers?set=<name></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -896,9 +896,9 @@ These links are used to confirm ownership of the phone number, to prevent accoun
|
|||
</table>
|
||||
<h3><a class="anchor" href="#custom-emoji-stickerset-links" id="custom-emoji-stickerset-links" name="custom-emoji-stickerset-links"><i class="anchor-icon"></i></a>Custom emoji stickerset links</h3>
|
||||
<p>Used to import custom emoji stickersets:</p>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/addemoji/<name></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://addemoji?set=<name></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -918,9 +918,9 @@ These links are used to confirm ownership of the phone number, to prevent accoun
|
|||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#theme-links" id="theme-links" name="theme-links"><i class="anchor-icon"></i></a>Theme links</h3>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/addtheme/<name></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://addtheme?slug=<name></code></pre>
|
||||
<p>Parameters:</p>
|
||||
<table class="table">
|
||||
|
@ -942,14 +942,14 @@ These links are used to confirm ownership of the phone number, to prevent accoun
|
|||
<h3><a class="anchor" href="#voice-chatvideo-chatlivestream-links" id="voice-chatvideo-chatlivestream-links" name="voice-chatvideo-chatlivestream-links"><i class="anchor-icon"></i></a>Voice chat/Video chat/Livestream links</h3>
|
||||
<p>Used to join voice chats and video chats in groups, and livestreams in channels.<br>
|
||||
Such links are generated using <a href="/method/phone.exportGroupCallInvite">phone.exportGroupCallInvite</a>. </p>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/<username>?voicechat
|
||||
t.me/<username>?voicechat=<invite_hash>
|
||||
t.me/<username>?videochat
|
||||
t.me/<username>?videochat=<invite_hash>
|
||||
t.me/<username>?livestream
|
||||
t.me/<username>?livestream=<invite_hash></code></pre>
|
||||
<p>tg: syntax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://resolve?domain=<username>&voicechat
|
||||
tg://resolve?domain=<username>&voicechat=<invite_hash>
|
||||
tg://resolve?domain=<username>&videochat
|
||||
|
@ -974,14 +974,14 @@ tg://resolve?domain=<username>&livestream=<invite_hash></code></
|
|||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#bot-attachment-menu-links" id="bot-attachment-menu-links" name="bot-attachment-menu-links"><i class="anchor-icon"></i></a>Bot attachment menu links</h3>
|
||||
<p>t.me syntax:</p>
|
||||
<p><code>t.me</code> syntax:</p>
|
||||
<pre><code>t.me/<username>?attach=<bot_username>
|
||||
t.me/<username>?attach=<bot_username>&startattach=<start_parameter>
|
||||
t.me/<bot_username>?startattach&choose=users+bots+groups+channels
|
||||
t.me/<bot_username>?startattach=<start_parameter>&choose=users+bots+groups+channels
|
||||
t.me/+<phone_number>?attach=<bot_username>
|
||||
t.me/+<phone_number>?attach=<bot_username>&startattach=<start_parameter></code></pre>
|
||||
<p>tg: synax:</p>
|
||||
<p><code>tg:</code> syntax:</p>
|
||||
<pre><code>tg://resolve?domain=<username>&attach=<bot_username>
|
||||
tg://resolve?domain=<username>&attach=<bot_username>&startattach=<start_parameter>
|
||||
tg://resolve?domain=<bot_username>&startattach&choose=users+bots+groups+channels
|
||||
|
@ -989,7 +989,7 @@ tg://resolve?domain=<bot_username>&startattach=<start_parameter>
|
|||
tg://resolve?phone=<phone_number>&attach=<bot_username>
|
||||
tg://resolve?phone=<phone_number>&attach=<bot_username>&startattach=<start_parameter></code></pre>
|
||||
<h3><a class="anchor" href="#unsupported-links" id="unsupported-links" name="unsupported-links"><i class="anchor-icon"></i></a>Unsupported links</h3>
|
||||
<p>If a client encounters a tg: link type not listed on this page, <a href="/method/help.getDeepLinkInfo">help.getDeepLinkInfo</a> should be invoked with just the <code>path</code> component of the link. </p>
|
||||
<p>If a client encounters a <code>tg:</code> link type not listed on this page, <a href="/method/help.getDeepLinkInfo">help.getDeepLinkInfo</a> should be invoked with just the <code>path</code> component of the link. </p>
|
||||
<p>Schema:</p>
|
||||
<pre><code><a href='/constructor/help.deepLinkInfoEmpty'>help.deepLinkInfoEmpty</a>#66afa166 = <a href='/type/help.DeepLinkInfo'>help.DeepLinkInfo</a>;
|
||||
<a href='/constructor/help.deepLinkInfo'>help.deepLinkInfo</a>#6a4ee832 flags:<a href='/type/%23'>#</a> update_app:flags.0?<a href='/constructor/true'>true</a> message:<a href='/type/string'>string</a> entities:flags.1?<a href='/type/Vector%20t'>Vector</a><<a href='/type/MessageEntity'>MessageEntity</a>> = <a href='/type/help.DeepLinkInfo'>help.DeepLinkInfo</a>;
|
||||
|
|
|
@ -274,7 +274,7 @@
|
|||
<tr>
|
||||
<td><strong>me_url_prefix</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td>The domain to use to parse in-app links.<br>For example t.me indicates that t.me/username links should parsed to @username, t.me/addsticker/name should be parsed to the appropriate stickerset and so on...</td>
|
||||
<td>The domain to use to parse <a href="/api/links">deep links »</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>autoupdate_url_prefix</strong></td>
|
||||
|
@ -353,6 +353,8 @@
|
|||
<h4><a class="anchor" href="#top-peer-rating" id="top-peer-rating" name="top-peer-rating"><i class="anchor-icon"></i></a><a href="/api/top-rating">Top peer rating</a></h4>
|
||||
<p>If enabled, the rating of top peers indicates the relevance of a frequently used peer in a certain category (frequently messaged users, frequently used bots, inline bots, frequently visited channels and so on).</p>
|
||||
<h4><a class="anchor" href="#telegram-passport-manual" id="telegram-passport-manual" name="telegram-passport-manual"><i class="anchor-icon"></i></a><a href="/passport">Telegram Passport Manual</a></h4>
|
||||
<h4><a class="anchor" href="#deep-links" id="deep-links" name="deep-links"><i class="anchor-icon"></i></a><a href="/api/links">Deep links</a></h4>
|
||||
<p>Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.</p>
|
||||
<h4><a class="anchor" href="#uploading-and-downloading-files" id="uploading-and-downloading-files" name="uploading-and-downloading-files"><i class="anchor-icon"></i></a><a href="/api/files">Uploading and Downloading Files</a></h4>
|
||||
<p>How to transfer large data batches correctly.</p></div>
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>inputInvoiceSlug</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="An invoice slug taken from a t.me/invoice/ link or from the premium_invoice_slug app config parameter »">
|
||||
<meta property="description" content="An invoice slug taken from an invoice deep link or from the premium_invoice_slug app config parameter »">
|
||||
<meta property="og:title" content="inputInvoiceSlug">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="An invoice slug taken from a t.me/invoice/ link or from the premium_invoice_slug app config parameter »">
|
||||
<meta property="og:description" content="An invoice slug taken from an invoice deep link or from the premium_invoice_slug app config parameter »">
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||||
|
@ -42,7 +42,7 @@
|
|||
<div class="dev_page_bread_crumbs"><ul class="breadcrumb clearfix"><li><a href="/api" >API</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/inputInvoiceSlug" >inputInvoiceSlug</a></li></ul></div>
|
||||
<h1 id="dev_page_title">inputInvoiceSlug</h1>
|
||||
|
||||
<div id="dev_page_content"><p>An invoice slug taken from a t.me/invoice/<slug> link or from the <a href="/api/config#client-configuration"><code>premium_invoice_slug</code> app config parameter »</a></slug></p>
|
||||
<div id="dev_page_content"><p>An invoice slug taken from an <a href="/api/links#invoice-links">invoice deep link</a> or from the <a href="/api/config#client-configuration"><code>premium_invoice_slug</code> app config parameter »</a></p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -76,6 +76,8 @@
|
|||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/InputInvoice">InputInvoice</a></p>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#deep-links" id="deep-links" name="deep-links"><i class="anchor-icon"></i></a><a href="/api/links">Deep links</a></h4>
|
||||
<p>Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.</p>
|
||||
<h4><a class="anchor" href="#client-configuration" id="client-configuration" name="client-configuration"><i class="anchor-icon"></i></a><a href="/api/config">Client configuration</a></h4>
|
||||
<p>The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.</p></div>
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>inputStickerSetShortName</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Stickerset by short name, from tg://addstickers?set=short_name">
|
||||
<meta property="description" content="Stickerset by short name, from a stickerset deep link »">
|
||||
<meta property="og:title" content="inputStickerSetShortName">
|
||||
<meta property="og:image" content="1b8a0d7d51a4ed3570">
|
||||
<meta property="og:description" content="Stickerset by short name, from tg://addstickers?set=short_name">
|
||||
<meta property="og:description" content="Stickerset by short name, from a stickerset deep link »">
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||||
|
@ -42,7 +42,7 @@
|
|||
<div class="dev_page_bread_crumbs"><ul class="breadcrumb clearfix"><li><a href="/api" >API</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/constructor/inputStickerSetShortName" >inputStickerSetShortName</a></li></ul></div>
|
||||
<h1 id="dev_page_title">inputStickerSetShortName</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Stickerset by short name, from <code>tg://addstickers?set=short_name</code></p>
|
||||
<div id="dev_page_content"><p>Stickerset by short name, from a <a href="/api/links#stickerset-links">stickerset deep link »</a></p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -69,12 +69,15 @@
|
|||
<tr>
|
||||
<td><strong>short_name</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td>From <code>tg://addstickers?set=short_name</code></td>
|
||||
<td>Short name from a <a href="/api/links#stickerset-links">stickerset deep link »</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/InputStickerSet">InputStickerSet</a></p></div>
|
||||
<p><a href="/type/InputStickerSet">InputStickerSet</a></p>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#deep-links" id="deep-links" name="deep-links"><i class="anchor-icon"></i></a><a href="/api/links">Deep links</a></h4>
|
||||
<p>Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -94,7 +94,7 @@
|
|||
<tr>
|
||||
<td><strong>invoice_slug</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.0?<a href="/type/string">string</a></td>
|
||||
<td>An invoice slug taken from a t.me/invoice/<slug> link or from the <a href="/api/config#client-configuration"><code>premium_invoice_slug</code> app config parameter »</a></slug></td>
|
||||
<td>An invoice slug taken from an <a href="/api/links#invoice-links">invoice deep link</a> or from the <a href="/api/config#client-configuration"><code>premium_invoice_slug</code> app config parameter »</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -102,6 +102,8 @@
|
|||
<p><a href="/type/MessageAction">MessageAction</a></p>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#bot-payments-api" id="bot-payments-api" name="bot-payments-api"><i class="anchor-icon"></i></a><a href="/bots/payments">Bot Payments API</a></h4>
|
||||
<h4><a class="anchor" href="#deep-links" id="deep-links" name="deep-links"><i class="anchor-icon"></i></a><a href="/api/links">Deep links</a></h4>
|
||||
<p>Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.</p>
|
||||
<h4><a class="anchor" href="#client-configuration" id="client-configuration" name="client-configuration"><i class="anchor-icon"></i></a><a href="/api/config">Client configuration</a></h4>
|
||||
<p>The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.</p></div>
|
||||
|
||||
|
|
|
@ -89,7 +89,7 @@
|
|||
<tr>
|
||||
<td><strong>bot_url</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td>A t.me/$invoice link to an invoice for in-app payment, using the official Premium bot; may be empty if direct payment isn't available.</td>
|
||||
<td>An <a href="/api/links#invoice-links">invoice deep link »</a> to an invoice for in-app payment, using the official Premium bot; may be empty if direct payment isn't available.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>store_product</strong></td>
|
||||
|
@ -101,7 +101,9 @@
|
|||
<h3><a class="anchor" href="#type" id="type" name="type"><i class="anchor-icon"></i></a>Type</h3>
|
||||
<p><a href="/type/PremiumGiftOption">PremiumGiftOption</a></p>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#bot-payments-api" id="bot-payments-api" name="bot-payments-api"><i class="anchor-icon"></i></a><a href="/bots/payments">Bot Payments API</a></h4></div>
|
||||
<h4><a class="anchor" href="#bot-payments-api" id="bot-payments-api" name="bot-payments-api"><i class="anchor-icon"></i></a><a href="/bots/payments">Bot Payments API</a></h4>
|
||||
<h4><a class="anchor" href="#deep-links" id="deep-links" name="deep-links"><i class="anchor-icon"></i></a><a href="/api/links">Deep links</a></h4>
|
||||
<p>Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>auth.exportLoginToken</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Generate a login token, for login via QR code. The generated login token should be encoded using base64url, then shown as a tg://login?token=base64encodedtoken URL in the QR code.">
|
||||
<meta property="description" content="Generate a login token, for login via QR code. The generated login token should be encoded using base64url, then shown as a tg://login?token=base64encodedtoken deep link » in the QR code.">
|
||||
<meta property="og:title" content="auth.exportLoginToken">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Generate a login token, for login via QR code. The generated login token should be encoded using base64url, then shown as a tg://login?token=base64encodedtoken URL in the QR code.">
|
||||
<meta property="og:description" content="Generate a login token, for login via QR code. The generated login token should be encoded using base64url, then shown as a tg://login?token=base64encodedtoken deep link » in the QR code.">
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||||
|
@ -43,7 +43,7 @@
|
|||
<h1 id="dev_page_title">auth.exportLoginToken</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Generate a login token, for <a href="/api/qr-login">login via QR code</a>.<br>
|
||||
The generated login token should be encoded using base64url, then shown as a <code>tg://login?token=base64encodedtoken</code> URL in the QR code.</p>
|
||||
The generated login token should be encoded using base64url, then shown as a <code>tg://login?token=base64encodedtoken</code> <a href="/api/links#qr-code-login-links">deep link »</a> in the QR code.</p>
|
||||
<p>For more info, see <a href="/api/qr-login">login via QR code</a>.</p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
|
@ -110,7 +110,9 @@ The generated login token should be encoded using base64url, then shown as a <co
|
|||
</table>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#login-via-qr-code" id="login-via-qr-code" name="login-via-qr-code"><i class="anchor-icon"></i></a><a href="/api/qr-login">Login via QR code</a></h4>
|
||||
<p>QR code login flow</p></div>
|
||||
<p>QR code login flow</p>
|
||||
<h4><a class="anchor" href="#deep-links" id="deep-links" name="deep-links"><i class="anchor-icon"></i></a><a href="/api/links">Deep links</a></h4>
|
||||
<p>Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -73,7 +73,7 @@
|
|||
<tr>
|
||||
<td><strong>hash</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td>Invite hash in <code>t.me/joinchat/hash</code> or <code>t.me/+hash</code></td>
|
||||
<td>Invite hash from <a href="/api/links#chat-invite-links">chat invite deep link »</a>.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -115,7 +115,10 @@
|
|||
<td>The invite hash is invalid.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#deep-links" id="deep-links" name="deep-links"><i class="anchor-icon"></i></a><a href="/api/links">Deep links</a></h4>
|
||||
<p>Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
<tr>
|
||||
<td><strong>hash</strong></td>
|
||||
<td style="text-align: center;"><a href="/type/string">string</a></td>
|
||||
<td><code>hash</code> from <code>t.me/joinchat/hash</code></td>
|
||||
<td><code>hash</code> from a <a href="/api/links#chat-invite-links">chat invite deep link</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -159,7 +159,10 @@
|
|||
<td>One of the users you tried to add is already in too many channels/supergroups.</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#deep-links" id="deep-links" name="deep-links"><i class="anchor-icon"></i></a><a href="/api/links">Deep links</a></h4>
|
||||
<p>Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
|
@ -102,7 +102,7 @@
|
|||
<tr>
|
||||
<td><strong>start_param</strong></td>
|
||||
<td style="text-align: center;"><a href="/mtproto/TL-combinators#conditional-fields">flags</a>.3?<a href="/type/string">string</a></td>
|
||||
<td>If the web app was opened from the attachment menu using a <code>https://t.me/username?attach=botusername&startattach=data</code> or <code>https://t.me/botusername?startattach=data</code> link, <code>start_param</code> should contain the <code>data</code> from the <code>startattach</code> parameter.</td>
|
||||
<td>If the web app was opened from the attachment menu using a <a href="/api/links#bot-attachment-menu-links">attachment menu deep link</a>, <code>start_param</code> should contain the <code>data</code> from the <code>startattach</code> parameter.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>theme_params</strong></td>
|
||||
|
@ -127,6 +127,8 @@
|
|||
<h4><a class="anchor" href="#messagessendwebviewresultmessage" id="messagessendwebviewresultmessage" name="messagessendwebviewresultmessage"><i class="anchor-icon"></i></a><a href="/method/messages.sendWebViewResultMessage">messages.sendWebViewResultMessage</a></h4>
|
||||
<p>Terminate webview interaction started with <a href="/method/messages.requestWebView">messages.requestWebView</a>, sending the specified message to the chat on behalf of the user.</p>
|
||||
<h4><a class="anchor" href="#web-apps-for-bots" id="web-apps-for-bots" name="web-apps-for-bots"><i class="anchor-icon"></i></a><a href="/bots/webapps">Web Apps for Bots</a></h4>
|
||||
<h4><a class="anchor" href="#deep-links" id="deep-links" name="deep-links"><i class="anchor-icon"></i></a><a href="/api/links">Deep links</a></h4>
|
||||
<p>Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.</p>
|
||||
<h4><a class="anchor" href="#messagesprolongwebview" id="messagesprolongwebview" name="messagesprolongwebview"><i class="anchor-icon"></i></a><a href="/method/messages.prolongWebView">messages.prolongWebView</a></h4>
|
||||
<p>Indicate to the server (from the user side) that the user is still using a web app.</p></div>
|
||||
|
||||
|
|
|
@ -158,7 +158,7 @@
|
|||
<tbody>
|
||||
<tr>
|
||||
<td><a href="/method/auth.exportLoginToken">auth.exportLoginToken</a></td>
|
||||
<td>Generate a login token, for <a href="/api/qr-login">login via QR code</a>. <br>The generated login token should be encoded using base64url, then shown as a <code>tg://login?token=base64encodedtoken</code> URL in the QR code.<br><br>For more info, see <a href="/api/qr-login">login via QR code</a>.</td>
|
||||
<td>Generate a login token, for <a href="/api/qr-login">login via QR code</a>. <br>The generated login token should be encoded using base64url, then shown as a <code>tg://login?token=base64encodedtoken</code> <a href="/api/links#qr-code-login-links">deep link »</a> in the QR code.<br><br>For more info, see <a href="/api/qr-login">login via QR code</a>.</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><a href="/method/auth.acceptLoginToken">auth.acceptLoginToken</a></td>
|
||||
|
|
|
@ -72,7 +72,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><a href="/constructor/inputInvoiceSlug">inputInvoiceSlug</a></td>
|
||||
<td>An invoice slug taken from a t.me/invoice/<slug> link or from the <a href="/api/config#client-configuration"><code>premium_invoice_slug</code> app config parameter »</a></slug></td>
|
||||
<td>An invoice slug taken from an <a href="/api/links#invoice-links">invoice deep link »</a> or from the <a href="/api/config#client-configuration"><code>premium_invoice_slug</code> app config parameter »</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
<meta charset="utf-8">
|
||||
<title>Help.DeepLinkInfo</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta property="description" content="Contains information about a tg:// deep link">
|
||||
<meta property="description" content="Contains information about an unsupported deep link »">
|
||||
<meta property="og:title" content="Help.DeepLinkInfo">
|
||||
<meta property="og:image" content="">
|
||||
<meta property="og:description" content="Contains information about a tg:// deep link">
|
||||
<meta property="og:description" content="Contains information about an unsupported deep link »">
|
||||
<link rel="icon" type="image/svg+xml" href="/img/website_icon.svg?4">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/img/favicon-32x32.png">
|
||||
|
@ -42,7 +42,7 @@
|
|||
<div class="dev_page_bread_crumbs"><ul class="breadcrumb clearfix"><li><a href="/api" >API</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/schema" >TL-schema</a></li><i class="icon icon-breadcrumb-divider"></i><li><a href="/type/help.DeepLinkInfo" >Help.DeepLinkInfo</a></li></ul></div>
|
||||
<h1 id="dev_page_title">Help.DeepLinkInfo</h1>
|
||||
|
||||
<div id="dev_page_content"><p>Contains information about a tg:// deep link</p>
|
||||
<div id="dev_page_content"><p>Contains information about an unsupported <a href="/api/links#unsupported-links">deep link »</a></p>
|
||||
<p><div class="clearfix">
|
||||
<ul class="dev_layer_select slightly-pull-right nav nav-pills">
|
||||
<li class="dropdown">
|
||||
|
@ -76,7 +76,7 @@
|
|||
</tr>
|
||||
<tr>
|
||||
<td><a href="/constructor/help.deepLinkInfo">help.deepLinkInfo</a></td>
|
||||
<td>Deep linking info</td>
|
||||
<td>Deep link info</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
@ -94,7 +94,10 @@
|
|||
<td>Get info about a <code>t.me</code> link</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table></div>
|
||||
</table>
|
||||
<h3><a class="anchor" href="#related-pages" id="related-pages" name="related-pages"><i class="anchor-icon"></i></a>Related pages</h3>
|
||||
<h4><a class="anchor" href="#deep-links" id="deep-links" name="deep-links"><i class="anchor-icon"></i></a><a href="/api/links">Deep links</a></h4>
|
||||
<p>Telegram clients must handle special tg:// and t.me deep links encountered in messages, link entities and in other apps by registering OS handlers.</p></div>
|
||||
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in a new issue