UNPKG

redai-automation-web-sdk

Version:

TypeScript SDK for RedAI Automation Web API - Zalo Personal automation, messaging, advanced sticker search, and bulk operations. 100% compatible with automation-web backend. v1.8.1: Updated GroupInfo interface to match backend controller with complete gro

66 lines 2.79 kB
/** * Zalo Personal Messaging Service * 100% khớp với automation-web/src/module/zalo-messaging */ import { HttpClient } from '../../utils/http.utils'; import { AutomationWebResponse } from '../../types/common.types'; import { SendMessageRequest, SendStickerRequest, SendVoiceRequest, SendVideoRequest, SendLinkRequest, SendCardRequest, ForwardMessageRequest, DeleteMessageRequest, UndoMessageRequest, AddReactionRequest, SendMessageResponse, SendStickerResponse, SendVoiceResponse, SendVideoResponse, SendLinkResponse, SendCardResponse, ForwardMessageResponse, DeleteMessageResponse, UndoResponse, AddReactionResponse } from '../../types/dto/messaging.type'; /** * Zalo Personal Messaging Service Class * 100% khớp với automation-web ZaloMessagingController */ export declare class MessagingService { private httpClient; constructor(httpClient: HttpClient); /** * Gửi tin nhắn qua Zalo Personal * POST /zalo-personal/messaging/send */ sendMessage(request: SendMessageRequest): Promise<AutomationWebResponse<SendMessageResponse>>; /** * Gửi sticker * POST /zalo-personal/messaging/sticker */ sendSticker(request: SendStickerRequest): Promise<AutomationWebResponse<SendStickerResponse>>; /** * Gửi voice message * POST /zalo-personal/messaging/voice */ sendVoice(request: SendVoiceRequest): Promise<AutomationWebResponse<SendVoiceResponse>>; /** * Gửi video message * POST /zalo-personal/messaging/video */ sendVideo(request: SendVideoRequest): Promise<AutomationWebResponse<SendVideoResponse>>; /** * Gửi link message * POST /zalo-personal/messaging/link */ sendLink(request: SendLinkRequest): Promise<AutomationWebResponse<SendLinkResponse>>; /** * Gửi contact card * POST /zalo-personal/messaging/card */ sendCard(request: SendCardRequest): Promise<AutomationWebResponse<SendCardResponse>>; /** * Chuyển tiếp tin nhắn * POST /zalo-personal/messaging/forward */ forwardMessage(request: ForwardMessageRequest): Promise<AutomationWebResponse<ForwardMessageResponse>>; /** * Xóa tin nhắn * DELETE /zalo-personal/messaging/delete */ deleteMessage(request: DeleteMessageRequest): Promise<AutomationWebResponse<DeleteMessageResponse>>; /** * Thu hồi tin nhắn (undo) * POST /zalo-personal/messaging/undo */ undoMessage(request: UndoMessageRequest): Promise<AutomationWebResponse<UndoResponse>>; /** * Thêm reaction vào tin nhắn * POST /zalo-personal/messaging/reaction */ addReaction(request: AddReactionRequest): Promise<AutomationWebResponse<AddReactionResponse>>; } //# sourceMappingURL=messaging.service.d.ts.map