account.registerDevice
Register device to receive PUSH notifications
Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates.md)
| الاسم | النوع | مطلوب | الوصف |
|---|---|---|---|
no_muted | true | لأ | Avoid receiving (silent and invisible background) notifications. Useful to save battery. |
token_type | int | أيوه | Device token type, see [PUSH updates](https://core.telegram.org/api/push-updates.md#subscribing-to-notifications) for the possible values. |
token | string | أيوه | Device token, see [PUSH updates](https://core.telegram.org/api/push-updates.md#subscribing-to-notifications) for the possible values. |
app_sandbox | Bool | أيوه | If [(boolTrue)](https://core.telegram.org/constructor/boolTrue.md) is transmitted, a sandbox-certificate will be used during transmission. |
secret | bytes | أيوه | For FCM and APNS VoIP, optional encryption key used to encrypt push notifications |
other_uids | Vector<long> | أيوه | List of user identifiers of other users currently using the client |
الردود
Bool
MTProto RPC
- 400 · TOKEN_EMPTY — The specified token is empty.
- 400 · TOKEN_INVALID — The provided token is invalid.
- 400 · TOKEN_TYPE_INVALID — The specified token type is invalid.
- 400 · WEBPUSH_AUTH_INVALID — The specified web push authentication secret is invalid.
- 400 · WEBPUSH_KEY_INVALID — The specified web push elliptic curve Diffie-Hellman public key is invalid.
- 400 · WEBPUSH_TOKEN_INVALID — The specified web push token is invalid.