account.RegisterDevice#
- class pyrogram.raw.functions.account.RegisterDevice#
Register device to receive PUSH notifications.
- Details:
Layer:
158ID:
EC86017A
- Parameters:
token_type (
int32-bit) – Device token type, see PUSH updates for the possible values.token (
str) – Device token, see PUSH updates for the possible values.app_sandbox (
bool) – If (boolTrue) 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 (List of
int64-bit) – List of user identifiers of other users currently using the client.no_muted (
bool, optional) – Avoid receiving (silent and invisible background) notifications. Useful to save battery.
- Returns:
bool