account.unregisterDevice #

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

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
account.unregisterDevice#6a0d3206 token_type:int token:string other_uids:Vector<long> = Bool;

Parameters #

NameTypeDescription
token_typeintDevice token type, see PUSH updates for the possible values.
tokenstringDevice token, see PUSH updates for the possible values.
other_uidsVector<long>List of user identifiers of other users currently using the client

Result #

Bool

Only users can use this method #

Possible errors #

CodeTypeDescription
400TOKEN_INVALIDThe provided token is invalid.

Handling PUSH-notifications #

How to subscribe to and handle PUSH notifications