Skip to main content
Module

x/mtkruto/mod.ts>UpdateConnectionState

Cross-runtime JavaScript library for building Telegram clients
Go to Latest
interface UpdateConnectionState
import { type UpdateConnectionState } from "https://deno.land/x/mtkruto@0.1.143/mod.ts";

A client's connection state was changed.

client.on("connectionState", (ctx) => {
  console.log("The client's connection state is now:", ctx.connectionState);
});

Properties

connectionState: ConnectionState

The client's new connection state.