Raw.BotBusinessConnection

Raw.BotBusinessConnection

Contains info about a bot business connection.

botBusinessConnection#8f34b2f5 flags:# disabled:flags.1?true connection_id:string user_id:long dc_id:int date:int rights:flags.2?BusinessBotRights = BotBusinessConnection;
export namespace Raw {
  export class BotBusinessConnection {
    constructor(params: {
      disabled?: boolean;
      connectionId: string;
      userId: bigint;
      dcId: number;
      date: number;
      rights?: Raw.TypeBusinessBotRights;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 201
Constructor ID: 0x8f34b2f5

Property

  • disabled : boolean or undefined

    Whether this business connection is currently disabled

  • connectionId : string

    Business connection id, used to identify messages coming from the connection and to reply to them as specified here.

  • userId : bigint

    Id of the user that the bot is connected to via this connection.

  • dcId : number

    Id of the datacenter where to send queries wrapped in a invokewithbusinessconnection as specified here.

  • date : number

    When was the connection created.

  • rights : Raw.TypeBusinessBotRights or undefined