Update content of files

This commit is contained in:
GitHub Action 2024-07-01 17:43:58 +00:00
parent 0d13b17209
commit 080f611ea7
3 changed files with 38 additions and 2 deletions

View file

@ -57,6 +57,11 @@
</blockquote>
<hr>
<h3><a class="anchor" name="recent-changes" href="#recent-changes"><i class="anchor-icon"></i></a>Recent changes</h3>
<h4><a class="anchor" name="july-1-2024" href="#july-1-2024"><i class="anchor-icon"></i></a>July 1, 2024</h4>
<ul>
<li>Added the field <em>section_separator_color</em> to the class <a href="#themeparams">ThemeParams</a>.</li>
<li>Changed the default opening mode for <a href="#direct-link-mini-apps">Direct Link Mini Apps</a>.</li>
</ul>
<h4><a class="anchor" name="march-31-2024" href="#march-31-2024"><i class="anchor-icon"></i></a>March 31, 2024</h4>
<p><strong>Bot API 7.2</strong></p>
<ul>
@ -199,8 +204,9 @@
<p>You can use direct links to <strong>open a Mini 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 Mini App in the <em>start_param</em> field and in the GET parameter <em>tgWebAppStartParam</em>.</p>
<p>In this mode, Mini 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>Mini Apps opened from a direct link have <strong>no access</strong> to the chat they can&#39;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>Starting from <mark>Bot API 7.6</mark>, by default, Mini Apps of this type open to full-screen height, and users cannot reduce them to half-height. However, you can change this behavior by including the parameter <code>mode=compact</code> in the link to the Mini App, in which case it will open to half-screen height by default.</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><code>https://t.me/botusername/appname</code><br><code>https://t.me/botusername/appname?startapp=command</code><br><code>https://t.me/botusername/appname?startapp=command&amp;mode=compact</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>
@ -508,6 +514,11 @@
<td><em>Optional</em>. <mark>Bot API 7.0+</mark> Header text color for the section in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-section-header-text-color)</code>.</td>
</tr>
<tr>
<td>section_separator_color</td>
<td>String</td>
<td><em>Optional</em>. <mark>Bot API 7.6+</mark> Section separator color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-section-separator-color)</code>.</td>
</tr>
<tr>
<td>subtitle_text_color</td>
<td>String</td>
<td><em>Optional</em>. <mark>Bot API 7.0+</mark> Subtitle text color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-subtitle-text-color)</code>.</td>

View file

@ -55,6 +55,20 @@ 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>
</blockquote>
<h3><a class="anchor" name="2024" href="#2024"><i class="anchor-icon"></i></a>2024</h3>
<h4><a class="anchor" name="july-1-2024" href="#july-1-2024"><i class="anchor-icon"></i></a>July 1, 2024</h4>
<p><strong>Bot API 7.6</strong></p>
<ul>
<li>Added the classes <a href="/bots/api#paidmedia">PaidMedia</a>, <a href="/bots/api#paidmediainfo">PaidMediaInfo</a>, <a href="/bots/api#paidmediapreview">PaidMediaPreview</a>, <a href="/bots/api#paidmediaphoto">PaidMediaPhoto</a> and <a href="/bots/api#paidmediavideo">PaidMediaVideo</a>, containing information about paid media.</li>
<li>Added the method <a href="/bots/api#sendpaidmedia">sendPaidMedia</a> and the classes <a href="/bots/api#inputpaidmedia">InputPaidMedia</a>, <a href="/bots/api#inputpaidmediaphoto">InputPaidMediaPhoto</a> and <a href="/bots/api#inputpaidmediavideo">InputPaidMediaVideo</a>, to support sending paid media.</li>
<li>Documented that the methods <a href="/bots/api#copymessage">copyMessage</a> and <a href="/bots/api#copymessages">copyMessages</a> cannot be used to copy paid media.</li>
<li>Added the field <em>can_send_paid_media</em> to the class <a href="/bots/api#chatfullinfo">ChatFullInfo</a>.</li>
<li>Added the field <em>paid_media</em> to the classes <a href="/bots/api#message">Message</a> and <a href="/bots/api#externalreplyinfo">ExternalReplyInfo</a>.</li>
<li>Added the class <a href="/bots/api#transactionpartnertelegramads">TransactionPartnerTelegramAds</a>, containing information about Telegram Star transactions involving the Telegram Ads Platform.</li>
<li>Added the field <em>invoice_payload</em> to the class <a href="/bots/api#transactionpartneruser">TransactionPartnerUser</a>, containing the bot-specified invoice payload.</li>
<li>Changed the default opening mode for <a href="/bots/webapps#direct-link-mini-apps">Direct Link Mini Apps</a>.</li>
<li>Added support for launching Web Apps via <code>t.me</code> link in the class <a href="/bots/api#menubuttonwebapp">MenuButtonWebApp</a>.</li>
<li>Added the field <em>section_separator_color</em> to the class <a href="/bots/webapps#themeparams">ThemeParams</a>.</li>
</ul>
<h4><a class="anchor" name="june-18-2024" href="#june-18-2024"><i class="anchor-icon"></i></a>June 18, 2024</h4>
<p><strong>Bot API 7.5</strong></p>
<ul>

View file

@ -57,6 +57,11 @@
</blockquote>
<hr>
<h3><a class="anchor" name="recent-changes" href="#recent-changes"><i class="anchor-icon"></i></a>Recent changes</h3>
<h4><a class="anchor" name="july-1-2024" href="#july-1-2024"><i class="anchor-icon"></i></a>July 1, 2024</h4>
<ul>
<li>Added the field <em>section_separator_color</em> to the class <a href="#themeparams">ThemeParams</a>.</li>
<li>Changed the default opening mode for <a href="#direct-link-mini-apps">Direct Link Mini Apps</a>.</li>
</ul>
<h4><a class="anchor" name="march-31-2024" href="#march-31-2024"><i class="anchor-icon"></i></a>March 31, 2024</h4>
<p><strong>Bot API 7.2</strong></p>
<ul>
@ -199,8 +204,9 @@
<p>You can use direct links to <strong>open a Mini 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 Mini App in the <em>start_param</em> field and in the GET parameter <em>tgWebAppStartParam</em>.</p>
<p>In this mode, Mini 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>Mini Apps opened from a direct link have <strong>no access</strong> to the chat they can&#39;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>Starting from <mark>Bot API 7.6</mark>, by default, Mini Apps of this type open to full-screen height, and users cannot reduce them to half-height. However, you can change this behavior by including the parameter <code>mode=compact</code> in the link to the Mini App, in which case it will open to half-screen height by default.</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><code>https://t.me/botusername/appname</code><br><code>https://t.me/botusername/appname?startapp=command</code><br><code>https://t.me/botusername/appname?startapp=command&amp;mode=compact</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>
@ -508,6 +514,11 @@
<td><em>Optional</em>. <mark>Bot API 7.0+</mark> Header text color for the section in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-section-header-text-color)</code>.</td>
</tr>
<tr>
<td>section_separator_color</td>
<td>String</td>
<td><em>Optional</em>. <mark>Bot API 7.6+</mark> Section separator color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-section-separator-color)</code>.</td>
</tr>
<tr>
<td>subtitle_text_color</td>
<td>String</td>
<td><em>Optional</em>. <mark>Bot API 7.0+</mark> Subtitle text color in the <code>#RRGGBB</code> format.<br>Also available as the CSS variable <code>var(--tg-theme-subtitle-text-color)</code>.</td>