@xalbex/telegram-bot
Version:
Telegram Bot API for Node.js
11 lines (10 loc) • 482 B
TypeScript
import * as API from './api';
export interface Chat {
onMessage?(message: API.Message): Promise<any>;
onEditedMessage?(message: API.Message): Promise<any>;
onChannelPost?(message: API.Message): Promise<any>;
onEditedChannelPost?(message: API.Message): Promise<any>;
onCallbackQuery?(message: API.CallbackQuery): Promise<any>;
onShippingQuery?(message: API.ShippingQuery): Promise<any>;
onPreCheckoutQuery?(message: API.PreCheckoutQuery): Promise<any>;
}