mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-12-29 07:52:37 +01:00
Update content of files
This commit is contained in:
parent
6adc41ef99
commit
3d9dfeabfd
2 changed files with 2 additions and 1 deletions
|
@ -72,6 +72,7 @@
|
|||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<p>Web push (<code>10</code>) may also be used to deliver push notifications via <a href="https://unifiedpush.org/">UnifiedPush »</a>.</p>
|
||||
<h3><a class="anchor" href="#notification-encryption" id="notification-encryption" name="notification-encryption"><i class="anchor-icon"></i></a>Notification encryption</h3>
|
||||
<p>For FCM and APNS VoIP, an optional encryption key used to encrypt push notifications can be passed to <a href="/method/account.registerDevice">account.registerDevice</a> (<code>secret</code>). This key (<code>auth_key</code>) is used to encrypt the payloads using <a href="/mtproto/description">MTProto v2</a>.</p>
|
||||
<p>The FCM payload will be a JSON payload, containing a <code>p</code> field with the base64url-encoded encrypted <a href="/mtproto/description">MTProto payload</a>. After decryption, the result will be a JSON object, prefixed by a 32-bit little-endian integer with the length of the JSON payload. As usual, make sure to follow all security checks as described in the <a href="/mtproto/description#important-checks">MTProto docs</a>.</p>
|
||||
|
|
|
@ -70,7 +70,7 @@ If the currently logged in account is a Premium account, and the <code>translati
|
|||
<ul>
|
||||
<li>The language recognition model was ran on at least 8 messages in the chat,</li>
|
||||
<li><strong>and</strong> the language of at least 35% of the processed messages was successfully detected,</li>
|
||||
<li><strong>and</strong> at least 65% of the messages whose language was successfully detected are in a foreign language (a language that is not the system language or the Telegram user language, and a language that was not explicitly excluded from translation by the user),</li>
|
||||
<li><strong>and</strong> at least 65% of the messages whose language was successfully detected are in a foreign language (a language that is not the system language or the Telegram in-app language, and a language that was not explicitly excluded from translation by the user),</li>
|
||||
<li><strong>then</strong>, a popup should be displayed to the user, offering to enable real-time chat translation, or to disallow translation of the detected language (the detected language is the language with most occurrences amongst all processed messages). </li>
|
||||
</ul>
|
||||
<p>If the user dismisses the autotranslation popup, invoke <a href="/method/messages.togglePeerTranslations">messages.togglePeerTranslations</a> with the <code>disabled</code> flag set: this will set the <code>translations_disabled</code> flag in the corresponding full info constructor, signaling to the other sessions that the autotranslation popup should not be displayed. </p>
|
||||
|
|
Loading…
Reference in a new issue