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

x/grm/mod.ts>client.TelegramClient#addEventHandler

MTProto API Client for Deno 🦕
Go to Latest
method client.TelegramClient.prototype.addEventHandler
import { client } from "https://deno.land/x/grm@0.5.2/mod.ts";
const { TelegramClient } = client;

Parameters

callback: { (event: NewMessageEvent): void; }
event: NewMessage

Parameters

callback: { (event: CallbackQueryEvent): void; }

Parameters

callback: { (event: AlbumEvent): void; }
event: Album

Parameters

callback: { (event: EditedMessageEvent): void; }

Parameters

callback: { (event: DeletedMessageEvent): void; }

Parameters

callback: { (event: any): void; }
optional
event: EventBuilder