unregister_device()

async Client.unregister_device()

Deletes a device by its token, stops sending PUSH notifications to it.

Usable by Users Bots
Parameters:
  • token_type (int) – Device token type.

  • token (str) – Device token.

  • other_uids (List of int, optional) – List of user identifiers of other users currently using the client.

Returns:

bool – On success, True is returned.