forwardMessage

Chuyển tiếp tin nhắn

api.forwardMessage(payload, threadIds[, type])

Parameters

  • payload ForwardMessagePayload

  • threadIds string[]

  • type ThreadType?

    • mặc định ThreadType.User

Return

Promise<ForwardMessageResponse>

Types

export type ForwardMessagePayload = {
    message: string;
    ttl?: number;
    reference?: {
        id: string;
        ts: number;
        logSrcType: number;
        fwLvl: number;
    };
};

export type ForwardMessageSuccess = {
    clientId: string;
    msgId: string;
};

export type ForwardMessageFail = {
    clientId: string;
    error_code: string;
};

export type ForwardMessageResponse = {
    success: ForwardMessageSuccess[];
    fail: ForwardMessageFail[];
};

Examples

Chuyển tiếp tin nhắn cho 3 người dùng

Last updated