initConnection
Initialize connection
Example
TL schema
Parameters
Name | Type | Description |
flags | Flags, see TL conditional fields | |
api_id | Application identifier (see. App configuration) | |
device_model | Device model | |
system_version | Operation system version | |
app_version | Application version | |
system_lang_code | Code for the language used on the device's OS, ISO 639-1 standard | |
lang_pack | Language pack to use | |
lang_code | Code for the language used on the client, ISO 639-1 standard | |
proxy | Info about an MTProto proxy | |
params | Additional initConnection parameters. |
For now, only the tz_offset field is supported, for specifying timezone offset in seconds.| |query|!X|The query itself|
Result
X
Possible errors
Code | Type | Description |
400 | CONNECTION_LAYER_INVALID | Layer invalid |
Can bots use this methd ?
yes
Related pages
Last updated