Type alias MessageContentGenerationOptions

MessageContentGenerationOptions: MediaGenerationOptions & {
    getProfilePicUrl?: ((jid, type) => Promise<string | undefined>);
    getUrlInfo?: ((text) => Promise<WAUrlInfo | undefined>);
}

Type declaration

  • Optional getProfilePicUrl?: ((jid, type) => Promise<string | undefined>)
      • (jid, type): Promise<string | undefined>
      • Parameters

        • jid: string
        • type: "image" | "preview"

        Returns Promise<string | undefined>

  • Optional getUrlInfo?: ((text) => Promise<WAUrlInfo | undefined>)
      • (text): Promise<WAUrlInfo | undefined>
      • Parameters

        • text: string

        Returns Promise<WAUrlInfo | undefined>

Generated using TypeDoc