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
: numberApplication identifier (see. app configuration)
deviceModel
: stringDevice model
systemVersion
: stringOperation system version
appVersion
: stringApplication version
systemLangCode
: stringCode for the language used on the device’s os, iso 639-1 standard
langPack
: stringLanguage pack to use
langCode
: stringCode for the language used on the client, iso 639-1 standard
proxy
: Raw.TypeInputClientProxy or undefinedInfo about an mtproto proxy
params
: Raw.TypeJSONValue or undefinedAdditional initconnection parameters. for now, only the tzOffset field is supported, for specifying timezone offset in seconds.
query
: TLObjectThe query itself
Results
TLObject