waha-api-client-ts
    Preparing search index...

    Interface SendTextParams

    Text message parameters

    Parameters for sending a text message using sendText() or safeSendText().

    const params: SendTextParams = {
    chatId: '1234567890@c.us',
    text: 'Hello, World!',
    reply_to: 'message-id-to-reply-to', // optional
    config: { session: 'custom-session' }, // optional
    };

    await client.sendText(params);
    interface SendTextParams {
        chatId: string;
        config?: RequestConfig;
        reply_to?: string;
        text: string;
    }
    Index

    Properties

    chatId: string

    Chat ID to send message to Format: phone@c.us for individual chats, groupId@g.us for groups

    config?: RequestConfig

    Optional request configuration override Allows overriding session, timeout, retry settings for this specific request

    reply_to?: string

    Message ID to reply to (optional) If provided, the message will be sent as a reply to the specified message

    text: string

    Text content of the message Plain text or text with WhatsApp formatting (e.g., bold, italic, ~strikethrough~)