InitConnection

class pyrogram.raw.functions.InitConnection

Initialize connection

Details:
  • Layer: 223

  • ID: C1CD5EA9

Parameters:
  • api_id (int 32-bit) – Application identifier (see. App configuration)

  • device_model (str) – Device model

  • system_version (str) – Operation system version

  • app_version (str) – Application version

  • system_lang_code (str) – Code for the language used on the device’s OS, ISO 639-1 standard

  • lang_pack (str) – Platform identifier (i.e. android, tdesktop, etc).

  • lang_code (str) – Either an ISO 639-1 language code or a language pack name obtained from a language pack link.

  • query (Any function from functions) – The query itself

  • proxy (InputClientProxy, optional) – Info about an MTProto proxy

  • params (JSONValue, optional) – Additional initConnection parameters. For now, only the tz_offset field is supported, for specifying the timezone offset in seconds.

Returns:

Any object from types

TL Schema

initConnection#c1cd5ea9
{X:Type}
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

Parameter Tree

InitConnection
├── {XType}
├── api_idint
├── device_modelstring
├── system_versionstring
├── app_versionstring
├── system_lang_codestring
├── lang_packstring
├── lang_codestring
├── proxyInputClientProxy (optional)
│ └── InputClientProxy
│ ├── addressstring
│ └── portint
├── paramsJSONValue (optional)
│ ├── JsonNull
│ ├── JsonBool
│ │ └── valueBool
│ ├── JsonNumber
│ │ └── valuedouble
│ ├── JsonString
│ │ └── valuestring
│ ├── JsonArray
│ │ └── valueVector < JSONValue >
│ │ ├── JsonNull
│ │ ├── JsonBool
│ │ │ └── valueBool
│ │ ├── JsonNumber
│ │ │ └── valuedouble
│ │ ├── JsonString
│ │ │ └── valuestring
│ │ ├── JsonArray
│ │ │ └── valueVector < JSONValue >
│ │ │ ├── JsonNull
│ │ │ ├── JsonBool
│ │ │ ├── JsonNumber
│ │ │ ├── JsonString
│ │ │ ├── JsonArray
│ │ │ └── JsonObject
│ │ └── JsonObject
│ │ └── valueVector < JSONObjectValue >
│ │ └── JsonObjectValue
│ └── JsonObject
│ └── valueVector < JSONObjectValue >
│ └── JsonObjectValue
│ ├── keystring
│ └── valueJSONValue
│ ├── JsonNull
│ ├── JsonBool
│ ├── JsonNumber
│ ├── JsonString
│ ├── JsonArray
│ └── JsonObject
└── queryX <!X>

Example

await app.invoke(
    InitConnection(
        {X=None,
        api_id=0,
        device_model="text",
        system_version="text",
        app_version="text",
        system_lang_code="text",
        lang_pack="text",
        lang_code="text",
        proxy=InputClientProxy(
            address="text",
            port=0
        ),
        params=JsonNull(),
        query=None,
    )
)