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 sessionWeb push (10
) may also be used to deliver push notifications via UnifiedPush ».
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.
translati
- The language recognition model was ran on at least 8 messages in the chat,
- and the language of at least 35% of the processed messages was successfully detected,
-- and 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),
+- and at least 65% of the messages whose language was successfully detected are in a foreign language (a language that is not the system language nor the Telegram in-app language, and a language that was not explicitly excluded from translation by the user),
- then, 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).
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