addQuickMessage

Thêm tin nhắn nhanh

api.addQuickMessage(addPayload)

Parameters

  • addPayload AddQuickMessagePayload

Return

Promise<AddQuickMessageResponse>

Types

export type AddQuickMessagePayload = {
    keyword: string;
    title: string;
    media?: AttachmentSource;
};

export type AddQuickMessageResponse = {
    item: QuickMessage;
    version: number;
};

Examples

await api.addQuickMessage({
    keyword: "hi",
    title: "Xin chào, mình có thể giúp gì cho bạn?",
    media: "./hello.png"
});

Last updated