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

x/mtkruto/3_types.ts>UpdateBusinessConnection

Cross-runtime JavaScript library for building Telegram clients
Latest
interface UpdateBusinessConnection
import { type UpdateBusinessConnection } from "https://deno.land/x/mtkruto@0.6.2/3_types.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