initConnection
Signature
Section titled “Signature”initConnection#c1cd5ea9 flags:# api_id:int device_model:string system_version:string app_version:string system_lang_code:string lang_pack:string lang_code:string proxy:flags.0?InputClientProxy params:flags.1?JSONValue query:!X = X;Result type
Section titled “Result type”X
Parameters
Section titled “Parameters”| Name | Type | Flag | Default | Description |
|---|---|---|---|---|
| flags | # | flag word | — | |
| api_id | int | — | — | |
| device_model | string | — | — | |
| system_version | string | — | — | |
| app_version | string | — | — | |
| system_lang_code | string | — | — | |
| lang_pack | string | — | — | |
| lang_code | string | — | — | |
| proxy | flags.0?InputClientProxy | flags.0 | — | |
| params | flags.1?JSONValue | flags.1 | — | |
| query | !X | — | — |
| Parameter | Bit | Meaning |
|---|---|---|
| proxy | 0 | Controlled by flags; present when this bit is set. |
| params | 1 | Controlled by flags; present when this bit is set. |
Python binding
Section titled “Python binding”from miniproto.raw.functions import InitConnectionPublic access: miniproto.raw.functions.InitConnection.
Result family
Section titled “Result family”X (no selected constructor result-family page)
RPC errors
Section titled “RPC errors”| Code | Error | Description |
|---|---|---|
| 400 | CONNECTION_LAYER_INVALID |
Layer invalid. |
Accepted types
Section titled “Accepted types”InputClientProxy, JSONValue, X (no selected constructor result-family page)
Known selected constructors: inputClientProxy, jsonArray, jsonBool, jsonNull, jsonNumber, jsonObject, jsonString
Returned types
Section titled “Returned types”X (no selected constructor result-family page)
Related methods
Section titled “Related methods”invokeAfterMsg, invokeAfterMsgs, invokeWithApnsSecret, invokeWithBusinessConnection, invokeWithGooglePlayIntegrity, invokeWithLayer, invokeWithMessagesRange, invokeWithReCaptcha, invokeWithTakeout, invokeWithoutUpdates
Availability evidence
Section titled “Availability evidence”- unauthenticated allowed