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

    Interface ChatInfo

    Chat information

    Represents a WhatsApp chat (conversation), either individual or group.

    const chat: ChatInfo = {
    id: '1234567890@c.us',
    name: 'John Doe',
    isGroup: false,
    };

    const group: ChatInfo = {
    id: 'group-id@g.us',
    name: 'My Group',
    isGroup: true,
    participants: [...],
    };
    interface ChatInfo {
        id: string;
        isGroup?: boolean;
        name?: string;
        participants?: Record<string, unknown>[];
    }
    Index

    Properties

    id: string

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

    isGroup?: boolean

    Whether this is a group chat (optional) true for groups, false or undefined for individual chats

    name?: string

    Display name of the chat (optional) Contact name for individuals, group subject for groups

    participants?: Record<string, unknown>[]

    Group participants (optional) Array of participant information, only present for group chats