UNPKG

n8n-nodes-zalo-nnt

Version:

Unofficial Zalo integration for n8n - Send messages, manage groups, user operations with QR login. No API key required, works via browser simulation.

55 lines (54 loc) 1.32 kB
export type ChatHistoryOperation = 'getUserHistory' | 'getGroupHistory'; export declare enum ThreadType { User = 0, Group = 1 } export interface GetHistoryParams { threadId: string; threadType: ThreadType; filterByThreadId?: boolean; limit?: number; lastMsgId?: string | null; includeReactions?: boolean; sortOrder?: 'asc' | 'desc'; fromDate?: number | null; toDate?: number | null; fetchAll?: boolean; delayBetweenRequests?: number; maxPages?: number; } export interface ReactionData { msgId: string; senderId: string; icon: string; timestamp: number; } export interface ParsedMessage { msgId: string; threadId: string; content: string | object; msgType: string; contentType: string; mediaUrls: string[]; senderId: string; timestamp: number; isGroup: boolean; groupId?: string; senderName?: string; ttl?: number; reactions?: ReactionData[]; cliMsgId?: string; actionId?: string; propertyExt?: object; } export interface ChatHistoryResult { messages: ParsedMessage[]; hasMore: boolean; lastMsgId: string | null; totalCount: number; fetchedCount: number; pagesRequested: number; threadId: string; threadType: ThreadType; filterByThreadId: boolean; }