telegram api method · layer 229 · #6a0d3206
account.unregisterDevice
Deletes a device by its token, stops sending PUSH-notifications to it.
definition
account.unregisterDevice#6a0d3206 token_type:int token:string other_uids:Vector<long> = Bool;
parameters
| name | type | description |
|---|---|---|
token_type | int | Device token type, see PUSH updates for the possible values. |
token | string | Device token, see PUSH updates for the possible values. |
other_uids | Vector<long> | List of user identifiers of other users currently using the client |
returns
errors (3)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 400 | TOKEN_INVALID | The provided token is invalid. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
history
present in layers 2–229 · constructor id changed 2×
| id | layers |
|---|---|
| #65c55b40 | 2–73 |
| #3076c4bf | 74–132 |
| #6a0d3206 | 133–229 |