account.registerDevice
Register device to receive PUSH notifications
Register device to receive [PUSH notifications](https://core.telegram.org/api/push-updates.md)
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
no_muted | true | Nein | Avoid receiving (silent and invisible background) notifications. Useful to save battery. |
token_type | int | Ja | Device token type, see [PUSH updates](https://core.telegram.org/api/push-updates.md#subscribing-to-notifications) for the possible values. |
token | string | Ja | Device token, see [PUSH updates](https://core.telegram.org/api/push-updates.md#subscribing-to-notifications) for the possible values. |
app_sandbox | Bool | Ja | If [(boolTrue)](https://core.telegram.org/constructor/boolTrue.md) is transmitted, a sandbox-certificate will be used during transmission. |
secret | bytes | Ja | For FCM and APNS VoIP, optional encryption key used to encrypt push notifications |
other_uids | Vector<long> | Ja | List of user identifiers of other users currently using the client |
Antworten
Bool
MTProto RPC
- 400 · TOKEN_EMPTY – Das angegebene Token ist leer.
- 400 · TOKEN_INVALID – Das bereitgestellte Token ist ungültig.
- 400 · TOKEN_TYPE_INVALID – Der angegebene Tokentyp ist ungültig.
- 400 · WEBPUSH_AUTH_INVALID – Das angegebene Web-Push-Authentifizierungsgeheimnis ist ungültig.
- 400 · WEBPUSH_KEY_INVALID – Der angegebene öffentliche Diffie-Hellman-Schlüssel für die elliptische Web-Push-Kurve ist ungültig.
- 400 · WEBPUSH_TOKEN_INVALID – Das angegebene Web-Push-Token ist ungültig.