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

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

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

Parameters

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

Parameters

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

Parameters

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

Parameters

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

Parameters

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

Parameters

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