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 undefinedWhether the bot can reply on behalf of the user to messages it receives through the business connection
disabled
: boolean or undefinedWhether this business connection is currently disabled
connectionId
: stringBusiness connection id, used to identify messages coming from the connection and to reply to them as specified here.
userId
: bigintId of the user that the bot is connected to via this connection.
dcId
: numberId of the datacenter where to send queries wrapped in a invokewithbusinessconnection as specified here.
date
: numberWhen was the connection created.