diff --git a/data/web/corefork.telegram.org/api/push-updates.html b/data/web/corefork.telegram.org/api/push-updates.html index 918be72858..29428084d6 100644 --- a/data/web/corefork.telegram.org/api/push-updates.html +++ b/data/web/corefork.telegram.org/api/push-updates.html @@ -72,6 +72,7 @@ +

Web push (10) may also be used to deliver push notifications via UnifiedPush ยป.

Notification encryption

For FCM and APNS VoIP, an optional encryption key used to encrypt push notifications can be passed to account.registerDevice (secret). This key (auth_key) is used to encrypt the payloads using MTProto v2.

The FCM payload will be a JSON payload, containing a p field with the base64url-encoded encrypted MTProto payload. 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 MTProto docs.

diff --git a/data/web/corefork.telegram.org/api/translation.html b/data/web/corefork.telegram.org/api/translation.html index 67753a7c4b..48251ad7e4 100644 --- a/data/web/corefork.telegram.org/api/translation.html +++ b/data/web/corefork.telegram.org/api/translation.html @@ -70,7 +70,7 @@ If the currently logged in account is a Premium account, and the translati

If the user dismisses the autotranslation popup, invoke messages.togglePeerTranslations with the disabled flag set: this will set the translations_disabled flag in the corresponding full info constructor, signaling to the other sessions that the autotranslation popup should not be displayed.