UNPKG

n8n-nodes-telegram-mtproto

Version:

Telegram MTPROTO API integration for n8n - Real-time new message listening and automation

32 lines (31 loc) 926 B
export interface TelegramMessage { _: string; messageId: number; text: string; date: number; senderId?: string; chatId?: string; isGroup: boolean; isPrivate: boolean; isChannel: boolean; message: any; rawEvent: any; } export interface TelegramEventOptions { ignoreGroups?: boolean; ignoreBots?: boolean; } export interface TelegramUpdateEvent { _: string; update: any; } export type TelegramEventHandler = (event: any) => Promise<void>; export declare const TELEGRAM_EVENTS: { readonly NEW_MESSAGE: "updateNewMessage"; readonly MESSAGE_CONTENT: "updateMessageContent"; readonly MESSAGE_EDITED: "updateMessageEdited"; readonly MESSAGE_DELETED: "updateDeleteMessages"; readonly CHAT_ACTION: "updateChatAction"; readonly USER_STATUS: "updateUserStatus"; }; export type TelegramEventType = (typeof TELEGRAM_EVENTS)[keyof typeof TELEGRAM_EVENTS];