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

    Interface SendImageParams

    Image message parameters

    Parameters for sending an image message using sendImage() or safeSendImage().

    // Send image from URL
    const params: SendImageParams = {
    chatId: '1234567890@c.us',
    file: 'https://example.com/image.jpg',
    caption: 'Check out this image!',
    };

    // Send image from base64
    const base64Params: SendImageParams = {
    chatId: '1234567890@c.us',
    file: 'data:image/jpeg;base64,/9j/4AAQSkZJRg...',
    caption: 'Image from base64',
    };

    await client.sendImage(params);
    interface SendImageParams {
        caption?: string;
        chatId: string;
        config?: RequestConfig;
        file: string;
        reply_to?: string;
    }
    Index

    Properties

    caption?: string

    Caption for the image (optional) Text that will be displayed with the image

    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

    file: string

    Image file data (base64 or URL) Can be a URL (http/https) or base64-encoded image data with data URI scheme

    reply_to?: string

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