Type alias MessageBaseContent<T>

MessageBaseContent<T>: {
    channelId: string;
    chatId: string;
    chatType: MessageTypeEnum;
    citation: {
        [key: string]: unknown;
    } | null;
    command: string;
    fromMe: boolean;
    isBroadcast: boolean;
    isChannel: boolean;
    isEdited: boolean;
    isEphemeral: boolean;
    isForwarded: boolean;
    isGroup: boolean;
    isStory: boolean;
    isTagMe: boolean;
    key: (() => proto.IMessageKey);
    media: {
        buffer?: (() => Promise<Buffer | null>);
        stream?: (() => Promise<Buffer | null>);
        [key: string]: unknown;
    } | null;
    mentions: string[] | null;
    message: (() => proto.IWebMessageInfo);
    reply: MessageBaseContent<T> | null;
    roomId: string;
    roomImage: (() => Promise<string | null>);
    senderBio: (() => Promise<string | null>);
    senderBusiness: (() => Promise<WABusinessProfile | null>);
    senderDevice: DeviceTypeEnum;
    senderId: string;
    senderImage: (() => Promise<string | null>);
    senderName: string;
    text: string;
    timestamp: number;
}

Type Parameters

  • T

Type declaration

  • channelId: string
  • chatId: string
  • chatType: MessageTypeEnum
  • citation: {
        [key: string]: unknown;
    } | null
  • command: string
  • fromMe: boolean
  • isBroadcast: boolean
  • isChannel: boolean
  • isEdited: boolean
  • isEphemeral: boolean
  • isForwarded: boolean
  • isGroup: boolean
  • isStory: boolean
  • isTagMe: boolean
  • key: (() => proto.IMessageKey)
      • (): proto.IMessageKey
      • Returns proto.IMessageKey

  • media: {
        buffer?: (() => Promise<Buffer | null>);
        stream?: (() => Promise<Buffer | null>);
        [key: string]: unknown;
    } | null
  • mentions: string[] | null
  • message: (() => proto.IWebMessageInfo)
      • (): proto.IWebMessageInfo
      • Returns proto.IWebMessageInfo

  • reply: MessageBaseContent<T> | null
  • roomId: string
  • roomImage: (() => Promise<string | null>)
      • (): Promise<string | null>
      • Returns Promise<string | null>

  • senderBio: (() => Promise<string | null>)
      • (): Promise<string | null>
      • Returns Promise<string | null>

  • senderBusiness: (() => Promise<WABusinessProfile | null>)
      • (): Promise<WABusinessProfile | null>
      • Returns Promise<WABusinessProfile | null>

  • senderDevice: DeviceTypeEnum
  • senderId: string
  • senderImage: (() => Promise<string | null>)
      • (): Promise<string | null>
      • Returns Promise<string | null>

  • senderName: string
  • text: string
  • timestamp: number