Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/mtkruto/types/6_update.ts>UpdateBusinessConnection

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
interface UpdateBusinessConnection
import { type UpdateBusinessConnection } from "https://deno.land/x/mtkruto@0.2.50/types/6_update.ts";

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