From cbd60dfa0a4c32d6045464a3d1e1752ce0a1ad5d Mon Sep 17 00:00:00 2001 From: GitHub Action Date: Sat, 15 Apr 2023 18:38:58 +0000 Subject: [PATCH] Update content of files --- data/web/corefork.telegram.org/api/push-updates.html | 3 +-- data/web/corefork.telegram.org/api/translation.html | 2 +- .../constructor/inputStorePaymentPremiumSubscription.html | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/data/web/corefork.telegram.org/api/push-updates.html b/data/web/corefork.telegram.org/api/push-updates.html index 29428084d6..0c54557dde 100644 --- a/data/web/corefork.telegram.org/api/push-updates.html +++ b/data/web/corefork.telegram.org/api/push-updates.html @@ -53,7 +53,7 @@
  • 1 - APNS (device token for apple push)
  • 2 - FCM (firebase token for google firebase)
  • 3 - MPNS (channel URI for microsoft push)
  • -
  • 4 - Deprecated: Simple push (endpoint for firefox's simple push API)
  • +
  • 4 - Simple push (endpoint for firefox's deprecated simple push API): note that this push type can also be used by an open source push notification spec like UnifiedPush ».
  • 5 - Ubuntu phone (token for ubuntu push)
  • 6 - Blackberry (token for blackberry push)
  • 7 - MTProto separate session
  • @@ -72,7 +72,6 @@ -

    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 48251ad7e4..7f96da148b 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.

    diff --git a/data/web/corefork.telegram.org/constructor/inputStorePaymentPremiumSubscription.html b/data/web/corefork.telegram.org/constructor/inputStorePaymentPremiumSubscription.html index a57f418b2d..bcdb573a47 100644 --- a/data/web/corefork.telegram.org/constructor/inputStorePaymentPremiumSubscription.html +++ b/data/web/corefork.telegram.org/constructor/inputStorePaymentPremiumSubscription.html @@ -79,7 +79,7 @@ upgrade flags.1?true -  +Pass true if this is an upgrade from a monthly subscription to a yearly subscription; only for App Store