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

    Interface MessageInfo

    Message information

    Represents a WhatsApp message with its metadata.

    const message: MessageInfo = {
    id: 'message-id',
    from: '1234567890@c.us',
    body: 'Hello, World!',
    timestamp: 1234567890,
    type: 'chat',
    };
    interface MessageInfo {
        body?: string;
        from?: string;
        id: string;
        timestamp?: number;
        type?: string;
    }
    Index

    Properties

    body?: string

    Message text content (optional) Present for text messages, may be undefined for media messages

    from?: string

    Sender's chat ID (optional) Format: phone@c.us

    id: string

    Unique message ID

    timestamp?: number

    Message timestamp (optional) Unix timestamp in seconds

    type?: string

    Message type (optional) Examples: 'chat', 'image', 'video', 'audio', 'document', 'ptt' (voice), etc.