UpdateBusinessConnection

A business connection was added, modified, or removed.

client.on("businessConnection", (ctx) => {
  console.log("Business connection with", ctx.from.id, ctx.businessConnection.isEnabled ? "created" : "lost");
  console.log(ctx.businessConnection);
});

Properties

businessConnection: BusinessConnection
DISCRIMINATOR