Update content of files

This commit is contained in:
GitHub Action 2022-08-19 18:37:11 +00:00
parent c4b425d63f
commit 5321db8f99
7 changed files with 139 additions and 13 deletions

View file

@ -61,7 +61,7 @@
<a href='/method/messages.sendMedia'>messages.sendMedia</a>#e25ff8e0 flags:<a href='/type/%23'>#</a> silent:flags.5?<a href='/constructor/true'>true</a> background:flags.6?<a href='/constructor/true'>true</a> clear_draft:flags.7?<a href='/constructor/true'>true</a> noforwards:flags.14?<a href='/constructor/true'>true</a> peer:<a href='/type/InputPeer'>InputPeer</a> reply_to_msg_id:flags.0?<a href='/type/int'>int</a> media:<a href='/type/InputMedia'>InputMedia</a> message:<a href='/type/string'>string</a> random_id:<a href='/type/long'>long</a> reply_markup:flags.2?<a href='/type/ReplyMarkup'>ReplyMarkup</a> entities:flags.3?<a href='/type/Vector%20t'>Vector</a>&lt;<a href='/type/MessageEntity'>MessageEntity</a>&gt; schedule_date:flags.10?<a href='/type/int'>int</a> send_as:flags.13?<a href='/type/InputPeer'>InputPeer</a> = <a href='/type/Updates'>Updates</a>;</code></pre>
<p>Bots can directly send a game using <a href="/method/messages.sendMedia">messages.sendMedia</a>, providing:</p>
<ul>
<li>The bot's shortname obtained from <a href="https://t.me/botfather">@BotFather</a> to <code>inputGameShortName.short_name</code></li>
<li>The game's short name obtained from <a href="https://t.me/botfather">@BotFather</a> or from a <a href="/api/links#game-links">game link »</a> to <code>inputGameShortName.short_name</code></li>
<li>The current bot's info to <code>inputGameShortName.bot_id</code></li>
</ul>
<p>The sent message will contain a <a href="/constructor/messageMediaGame">messageMediaGame</a> with a <a href="/constructor/game">game</a>, that can then be used by users to forward the game using sendMedia with <a href="/constructor/inputGameID">inputGameID</a>.</p>

View file

@ -543,11 +543,11 @@ Then, for group links:</p>
<p>t.me syntax (groups):</p>
<pre><code>t.me/&lt;bot_username&gt;?startgroup=&lt;parameter&gt;&amp;admin=&lt;permissions&gt;
t.me/&lt;bot_username&gt;?startgroup&amp;admin=&lt;permissions&gt;</code></pre>
<p>t.me syntax (channels):</p>
<pre><code>t.me/&lt;bot_username&gt;?startchannel&amp;admin=&lt;permissions&gt;</code></pre>
<p>tg: syntax (groups):</p>
<pre><code>tg://resolve?domain=&lt;bot_username&gt;&amp;startgroup=&lt;parameter&gt;&amp;admin=&lt;permissions&gt;
tg://resolve?domain=&lt;bot_username&gt;&amp;startgroup&amp;admin=&lt;permissions&gt;</code></pre>
<p>t.me syntax (channels):</p>
<pre><code>t.me/&lt;bot_username&gt;?startchannel&amp;admin=&lt;permissions&gt;</code></pre>
<p>tg: syntax (channels):</p>
<pre><code>tg://resolve?domain=&lt;bot_username&gt;&amp;startchannel&amp;admin=&lt;permissions&gt;</code></pre>
<p>Parameters:</p>
@ -567,7 +567,7 @@ tg://resolve?domain=&lt;bot_username&gt;&amp;startgroup&amp;admin=&lt;permission
</tr>
<tr>
<td><code>parameter</code></td>
<td style="text-align: center;">Optional</td>
<td style="text-align: center;">Optional for group links, absent in channel links</td>
<td>Start parameter, only for group links, up to 64 <a href="https://en.wikipedia.org/wiki/Base64#The_URL_applications">base64url</a> characters: if provided and the <code>bot_username</code> is indeed a bot, <a href="/method/messages.startBot">messages.startBot</a> with the appropriate <code>parameter</code> should be invoked after adding the bot to the group.</td>
</tr>
<tr>
@ -577,7 +577,123 @@ tg://resolve?domain=&lt;bot_username&gt;&amp;startgroup&amp;admin=&lt;permission
</tr>
</tbody>
</table>
<h1><a class="anchor" href="#" id="" name=""><i class="anchor-icon"></i></a></h1></div>
<h3><a class="anchor" href="#game-links" id="game-links" name="game-links"><i class="anchor-icon"></i></a>Game links</h3>
<p>Used to share <a href="/api/bots/games">games</a>. </p>
<p>These links should be handled as follows: </p>
<ul>
<li>Check if <code>bot_username</code> is indeed a bot username, if so then</li>
<li>Bring up 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>
<pre><code>t.me/&lt;bot_username&gt;?game=&lt;short_name&gt;</code></pre>
<p>tg: syntax:</p>
<pre><code>tg://resolve?domain=&lt;bot_username&gt;&amp;game=&lt;short_name&gt;</code></pre>
<p>Parameters: </p>
<table class="table">
<thead>
<tr>
<th>Name</th>
<th style="text-align: center;">Optional</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>bot_username</code></td>
<td style="text-align: center;">Required</td>
<td>Username of the bot that owns the <a href="/api/bots/games">game</a></td>
</tr>
<tr>
<td><code>short_name</code></td>
<td style="text-align: center;">Required</td>
<td>Game short name</td>
</tr>
</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>
<pre><code>t.me/invoice/&lt;slug&gt;
t.me/$&lt;slug&gt;</code></pre>
<p>tg: syntax:</p>
<pre><code>tg://invoice?slug=&lt;slug&gt;</code></pre>
<p>Parameters:</p>
<table class="table">
<thead>
<tr>
<th>Name</th>
<th style="text-align: center;">Optional</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>slug</code></td>
<td style="text-align: center;">Required</td>
<td></td>
</tr>
</tbody>
</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>
<pre><code>t.me/setlanguage/&lt;lang&gt;</code></pre>
<p>tg: syntax:</p>
<pre><code>tg://setlanguage?lang=&lt;lang&gt;</code></pre>
<p>Parameters:</p>
<table class="table">
<thead>
<tr>
<th>Name</th>
<th style="text-align: center;">Optional</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>lang</code></td>
<td style="text-align: center;">Required</td>
<td>Name of language pack to import using <a href="/method/langpack.getLangPack">langpack.getLangPack</a></td>
</tr>
</tbody>
</table>
<h3><a class="anchor" href="#draft-links" id="draft-links" name="draft-links"><i class="anchor-icon"></i></a>Draft links</h3>
<p>Used to enter a prepared message into a chosen chat's text field.<br>
These links should be handled as follows: </p>
<ul>
<li>Open a dialog selection prompt</li>
<li>Validate, trim and enter the URL at the beginning of the text field</li>
<li>Append a newline to the textfield</li>
<li>Append and select the <code>text</code>, if present</li>
</ul>
<p>t.me syntax:</p>
<pre><code>t.me/share?url=&lt;url&gt;
t.me/share/url?url=&lt;url&gt;&amp;text=&lt;text&gt;</code></pre>
<p>tg: syntax:</p>
<pre><code>tg://msg_url?url=&lt;url&gt;
tg://msg_url?url=&lt;url&gt;&amp;text=&lt;text&gt;</code></pre>
<p>Parameters:</p>
<table class="table">
<thead>
<tr>
<th>Name</th>
<th style="text-align: center;">Optional</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td><code>url</code></td>
<td style="text-align: center;">Required</td>
<td>URL to share</td>
</tr>
<tr>
<td><code>text</code></td>
<td style="text-align: center;">Optional</td>
<td>Message to share</td>
</tr>
</tbody>
</table></div>
</div>

View file

@ -74,12 +74,14 @@
<tr>
<td><strong>short_name</strong></td>
<td style="text-align: center;"><a href="/type/string">string</a></td>
<td>The game's short name</td>
<td>The game's short name, usually obtained from a <a href="/api/links#game-links">game 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/InputGame">InputGame</a></p></div>
<p><a href="/type/InputGame">InputGame</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="#links" id="links" name="links"><i class="anchor-icon"></i></a><a href="/api/links">Links</a></h4></div>
</div>

View file

@ -71,7 +71,7 @@
<tr>
<td><strong>lang_pack</strong></td>
<td style="text-align: center;"><a href="/type/string">string</a></td>
<td>Language pack name</td>
<td>Language pack name, usually obtained from a <a href="/api/links#language-pack-links">language pack link</a></td>
</tr>
<tr>
<td><strong>lang_code</strong></td>
@ -103,7 +103,9 @@
<td>The provided language pack 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="#links" id="links" name="links"><i class="anchor-icon"></i></a><a href="/api/links">Links</a></h4></div>
</div>

View file

@ -71,7 +71,7 @@
<tr>
<td><strong>lang_pack</strong></td>
<td style="text-align: center;"><a href="/type/string">string</a></td>
<td>Language pack name</td>
<td>Language pack name, usually obtained from a <a href="/api/links#language-pack-links">language pack link</a></td>
</tr>
<tr>
<td><strong>lang_code</strong></td>
@ -103,7 +103,9 @@
<td>The provided language pack 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="#links" id="links" name="links"><i class="anchor-icon"></i></a><a href="/api/links">Links</a></h4></div>
</div>

View file

@ -70,7 +70,7 @@
<tr>
<td><strong>lang_pack</strong></td>
<td style="text-align: center;"><a href="/type/string">string</a></td>
<td>Language pack name</td>
<td>Language pack name, usually obtained from a <a href="/api/links#language-pack-links">language pack link</a></td>
</tr>
<tr>
<td><strong>lang_code</strong></td>
@ -107,7 +107,9 @@
<td>The provided language pack 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="#links" id="links" name="links"><i class="anchor-icon"></i></a><a href="/api/links">Links</a></h4></div>
</div>

View file

@ -139,6 +139,8 @@ Check out our Premium Terms of Service for more information…">
<p>If you subscribe via the <a href="#can-i-sign-up-from-any-app">Play Store</a> or <a href="#can-i-sign-up-from-any-app">App Store</a>, your currency will be based off your account with Google or Apple.</p>
<h4><a class="anchor" name="q-why-is-the-subscription-price-different-in-my-app-country" href="#q-why-is-the-subscription-price-different-in-my-app-country"><i class="anchor-icon"></i></a>Q: Why is the subscription price different in my app/country?</h4>
<p>We do our best to keep the cost of Telegram Premium as consistent as possible this may include slight variations to reflect local living standards and keep Telegram Premium <strong>obtainable for everyone</strong>. When you subscribe, the price you see may include store or third-party fees, local taxes and any other applicable fees that are outside of Telegrams control.</p>
<h4><a class="anchor" name="q-why-do-gifted-subscriptions-have-a-different-price" href="#q-why-do-gifted-subscriptions-have-a-different-price"><i class="anchor-icon"></i></a>Q: Why do gifted subscriptions have a different price?</h4>
<p>Gifted subscriptions use the <strong>global rate</strong> so that they can be sent to and from users in any country. You can always get someone started with a gift, after which they can set up a <a href="#q-can-i-pay-in-my-local-currency">local subscription</a>.</p>
<h4><a class="anchor" name="q-why-is-my-preferred-payment-method-not-available" href="#q-why-is-my-preferred-payment-method-not-available"><i class="anchor-icon"></i></a>Q: Why is my preferred payment method not available?</h4>
<p>Telegram works with payment providers and app stores to provide a wide range of supported payment methods. If your payment method is not available, you should consider trying all available <a href="#q-how-can-i-subscribe">subscription options</a>: the premium subscription will apply to all supported apps regardless of which one was used to subscribe.</p>
<h4><a class="anchor" name="q-can-i-gift-a-premium-subscription-to-my-friends-or-share-it-wi" href="#q-can-i-gift-a-premium-subscription-to-my-friends-or-share-it-wi"><i class="anchor-icon"></i></a>Q: Can I gift a premium subscription to my friends or share it with my family?</h4>