mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2025-02-26 22:58:25 +01:00
Update content of files
This commit is contained in:
parent
3d4e2c0eb3
commit
1ae286e39f
3 changed files with 23 additions and 3 deletions
|
@ -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'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'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=<value></code> with a <a href="https://en.wikipedia.org/wiki/Newline">line feed</a> character ('\n', 0x0A) used as separator – e.g., <code>'auth_date=<auth_date>\nuser=<user>\nquery_id=<query_id>'</code>.</p>
|
||||
<p><strong>Data-check-string</strong> is a chain of all received fields, sorted alphabetically, in the format <code>key=<value></code> with a <a href="https://en.wikipedia.org/wiki/Newline">line feed</a> character ('\n', 0x0A) used as separator – e.g., <code>'auth_date=<auth_date>\nquery_id=<query_id>\nuser=<user>'</code>.</p>
|
||||
<p>The full check might look like:</p>
|
||||
<pre><code>data_check_string = ...
|
||||
secret_key = HMAC_SHA256(<bot_token>, "WebAppData")
|
||||
|
|
|
@ -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'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'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=<value></code> with a <a href="https://en.wikipedia.org/wiki/Newline">line feed</a> character ('\n', 0x0A) used as separator – e.g., <code>'auth_date=<auth_date>\nuser=<user>\nquery_id=<query_id>'</code>.</p>
|
||||
<p><strong>Data-check-string</strong> is a chain of all received fields, sorted alphabetically, in the format <code>key=<value></code> with a <a href="https://en.wikipedia.org/wiki/Newline">line feed</a> character ('\n', 0x0A) used as separator – e.g., <code>'auth_date=<auth_date>\nquery_id=<query_id>\nuser=<user>'</code>.</p>
|
||||
<p>The full check might look like:</p>
|
||||
<pre><code>data_check_string = ...
|
||||
secret_key = HMAC_SHA256(<bot_token>, "WebAppData")
|
||||
|
|
|
@ -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 'Upload Sound' in the Notifications menu.</li>
|
||||
<li>Set custom tones by chat type in Settings > 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 bot’s profile to add it to your group or channel.</li>
|
||||
<li>Instantly configure a bot’s 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>
|
||||
|
|
Loading…
Add table
Reference in a new issue