account.registerDevice

Registers a device to send it PUSH-notifications in the future.

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
account.registerDevice#446c712c token_type:int token:string device_model:string system_version:string app_version:string app_sandbox:Bool lang_code:string = Bool;

Parameters

token_type int Device token type.
Possible values:
1 - APNS
2 - GCM
3 - MPNS
4 - Simple Push
5 - Ubuntu Phone
6 - Blackberry
token string Device token
device_model string Device model
system_version string OS version
app_version string Application version
app_sandbox Bool If (boolTrue) is transmitted, a sandbox-certificate will be used during transmission.
lang_code string Code of the language used on the client, ISO 639-1 standard
Parameter added in Layer 5.

Result

Bool