Raw.BotBusinessConnection

Raw.BotBusinessConnection

Contains info about a bot business connection.

botBusinessConnection#896433b4 flags:# can_reply:flags.0?true disabled:flags.1?true connection_id:string user_id:long dc_id:int date:int = BotBusinessConnection;
export namespace Raw {
  export class BotBusinessConnection {
    constructor(params: {
      canReply?: boolean;
      disabled?: boolean;
      connectionId: string;
      userId: bigint;
      dcId: number;
      date: number;
    }) {}
  }
}
🚫

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

Layer: 185
Constructor ID: 0x896433b4

Property

  • canReply : boolean or undefined

    Whether the bot can reply on behalf of the user to messages it receives through the business connection

  • 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.