Raw.auth.ImportBotAuthorization
Login as a bot
auth.importBotAuthorization#67a3ff2c flags:int api_id:int api_hash:string bot_auth_token:string = auth.Authorization;
export namespace Raw {
export namespace auth {
export class ImportBotAuthorization {
constructor(params: {
flags: number;
apiId: number;
apiHash: string;
botAuthToken: string;
}) {}
}
}
}
This is a function constructor, you can use it as method when call invoke
Layer: 185
Constructor ID: 0x67a3ff2c
Property
flags
: numberReserved for future use
apiId
: numberApplication identifier (see. app configuration)
apiHash
: stringApplication identifier hash (see. app configuration)
botAuthToken
: stringBot token (see bots)