Raw.InitConnection

Raw.InitConnection

Initialize connection

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;
export namespace Raw {
  export class InitConnection {
    constructor(params: {
      apiId: number;
      deviceModel: string;
      systemVersion: string;
      appVersion: string;
      systemLangCode: string;
      langPack: string;
      langCode: string;
      proxy?: Raw.TypeInputClientProxy;
      params?: Raw.TypeJSONValue;
      query: TLObject;
    }) {}
  }
}

This is a function constructor, you can use it as method when call invoke

Layer: 185
Constructor ID: 0xc1cd5ea9

Property

  • apiId : number

    Application identifier (see. app configuration)

  • deviceModel : string

    Device model

  • systemVersion : string

    Operation system version

  • appVersion : string

    Application version

  • systemLangCode : string

    Code for the language used on the device’s os, iso 639-1 standard

  • langPack : string

    Language pack to use

  • langCode : string

    Code for the language used on the client, iso 639-1 standard

  • proxy : Raw.TypeInputClientProxy or undefined

    Info about an mtproto proxy

  • params : Raw.TypeJSONValue or undefined

    Additional initconnection parameters. for now, only the tzOffset field is supported, for specifying timezone offset in seconds.

  • query : TLObject

    The query itself

Results

TLObject

Bots can use