register_device()¶
- async Client.register_device()¶
Register device to receive PUSH notifications.
Usable by Users Bots- Parameters:
token_type (
int) – Device token type.token (
str) – Device token.app_sandbox (
bool, optional) – Whether a sandbox-certificate will be used. Defaults to False.secret (
bytes, optional) – Optional encryption key used to encrypt push notifications. Defaults to b””.other_uids (List of
int, optional) – List of user identifiers of other users currently using the client.no_muted (
bool, optional) – Avoid receiving silent background notifications.
- Returns:
bool– On success, True is returned.