Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/mtkruto/mod.ts>UpdateConnectionState

[WIP] Cross-runtime JavaScript library for building Telegram clients
Go to Latest
interface UpdateConnectionState
import { type UpdateConnectionState } from "https://deno.land/x/mtkruto@0.1.139/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.