Update content of files

This commit is contained in:
GitHub Action 2022-04-17 08:34:08 +00:00
parent 3d4e2c0eb3
commit 1ae286e39f
3 changed files with 23 additions and 3 deletions

View file

@ -454,7 +454,7 @@
<h4><a class="anchor" name="validating-data-received-via-the-web-app" href="#validating-data-received-via-the-web-app"><i class="anchor-icon"></i></a>Validating data received via the Web App</h4>
<p>To validate data received via the Web App, one should send the data from the <em>Telegram.WebApp.initData</em> field to the bot&#39;s backend. The data is a query string, which is composed of a series of field-value pairs.</p>
<p>You can verify the integrity of the data received by comparing the received <em>hash</em> parameter with the hexadecimal representation of the <a href="https://en.wikipedia.org/wiki/Hash-based_message_authentication_code">HMAC-SHA-256</a> signature of the <strong>data-check-string</strong> with the secret key, which is the <a href="https://en.wikipedia.org/wiki/Hash-based_message_authentication_code">HMAC-SHA-256</a> signature of the <a href="/bots#creating-a-new-bot">bot&#39;s token</a> with the constant string <code>WebAppData</code> used as a key.</p>
<p><strong>Data-check-string</strong> is a chain of all received fields, sorted alphabetically, in the format <code>key=&lt;value&gt;</code> with a <a href="https://en.wikipedia.org/wiki/Newline">line feed</a> character (&#39;\n&#39;, 0x0A) used as separator e.g., <code>&#39;auth_date=&lt;auth_date&gt;\nuser=&lt;user&gt;\nquery_id=&lt;query_id&gt;&#39;</code>.</p>
<p><strong>Data-check-string</strong> is a chain of all received fields, sorted alphabetically, in the format <code>key=&lt;value&gt;</code> with a <a href="https://en.wikipedia.org/wiki/Newline">line feed</a> character (&#39;\n&#39;, 0x0A) used as separator e.g., <code>&#39;auth_date=&lt;auth_date&gt;\nquery_id=&lt;query_id&gt;\nuser=&lt;user&gt;&#39;</code>.</p>
<p>The full check might look like:</p>
<pre><code>data_check_string = ...
secret_key = HMAC_SHA256(&lt;bot_token&gt;, &quot;WebAppData&quot;)

View file

@ -454,7 +454,7 @@
<h4><a class="anchor" name="validating-data-received-via-the-web-app" href="#validating-data-received-via-the-web-app"><i class="anchor-icon"></i></a>Validating data received via the Web App</h4>
<p>To validate data received via the Web App, one should send the data from the <em>Telegram.WebApp.initData</em> field to the bot&#39;s backend. The data is a query string, which is composed of a series of field-value pairs.</p>
<p>You can verify the integrity of the data received by comparing the received <em>hash</em> parameter with the hexadecimal representation of the <a href="https://en.wikipedia.org/wiki/Hash-based_message_authentication_code">HMAC-SHA-256</a> signature of the <strong>data-check-string</strong> with the secret key, which is the <a href="https://en.wikipedia.org/wiki/Hash-based_message_authentication_code">HMAC-SHA-256</a> signature of the <a href="/bots#creating-a-new-bot">bot&#39;s token</a> with the constant string <code>WebAppData</code> used as a key.</p>
<p><strong>Data-check-string</strong> is a chain of all received fields, sorted alphabetically, in the format <code>key=&lt;value&gt;</code> with a <a href="https://en.wikipedia.org/wiki/Newline">line feed</a> character (&#39;\n&#39;, 0x0A) used as separator e.g., <code>&#39;auth_date=&lt;auth_date&gt;\nuser=&lt;user&gt;\nquery_id=&lt;query_id&gt;&#39;</code>.</p>
<p><strong>Data-check-string</strong> is a chain of all received fields, sorted alphabetically, in the format <code>key=&lt;value&gt;</code> with a <a href="https://en.wikipedia.org/wiki/Newline">line feed</a> character (&#39;\n&#39;, 0x0A) used as separator e.g., <code>&#39;auth_date=&lt;auth_date&gt;\nquery_id=&lt;query_id&gt;\nuser=&lt;user&gt;&#39;</code>.</p>
<p>The full check might look like:</p>
<pre><code>data_check_string = ...
secret_key = HMAC_SHA256(&lt;bot_token&gt;, &quot;WebAppData&quot;)

View file

@ -70,7 +70,27 @@
<div class="dev_page_bread_crumbs"></div>
<h1 id="dev_page_title">Version history</h1>
<div id="dev_page_content"><h3><a class="anchor" name="v8-6-2022-03-11" href="#v8-6-2022-03-11"><i class='anchor-icon'></i></a>8.6 <strong>2022-03-11</strong></h3>
<div id="dev_page_content"><h3><a class="anchor" name="v8-7-2022-04-17" href="#v8-7-2022-04-17"><i class='anchor-icon'></i></a>8.7 <strong>2022-04-17</strong></h3>
<ul>
<li>NOTIFICATION SOUNDS AND MUCH MORE</li>
<li>Custom Notification Sounds</li>
<li>Use any short music file or voice message as a notification sound.</li>
<li>Press and hold audio files in chats to add them to your list of sounds or use &#39;Upload Sound&#39; in the Notifications menu.</li>
<li>Set custom tones by chat type in Settings &gt; Notifications and Sounds.</li>
<li>New Auto-Delete Menu in Profiles</li>
<li>Quickly configure Auto-Delete settings from any chat page.</li>
<li>Replies in Forwarded Messages</li>
<li>Replies are now preserved when forwarding messages, making forwarded conversations easier to read.</li>
<li>Shop Bots</li>
<li>Bots can now open detailed pages directly in the chat.</li>
<li>Use these streamlined interfaces to buy real-world goods and services without leaving the app.</li>
<li>Instantly Configure Bot Admins</li>
<li>Open a bots profile to add it to your group or channel.</li>
<li>Instantly configure a bots rights and permissions when adding it.</li>
<li>Bots can send a new type of button that lets you add them to your group or channel.</li>
</ul>
<h3><a class="anchor" name="v8-6-2022-03-11" href="#v8-6-2022-03-11"><i class='anchor-icon'></i></a>8.6 <strong>2022-03-11</strong></h3>
<ul>
<li>DOWNLOAD MANAGER, NEW LOGIN AND MORE</li>
<li>Download Manager</li>