Interface ParsedMessage

Hierarchy

  • ParsedMessage

Properties

chat?: string
download?: CreateFunction<[type: "buffer" | "stream", options: MediaDownloadOptions, ctx?: DownloadMediaMessageContext], Promise<Buffer | Transform>>
fromMe?: boolean
getQuotedMessage?: (() => Promise<IWebMessageInfo>)

Type declaration

    • (): Promise<IWebMessageInfo>
    • Returns Promise<IWebMessageInfo>

getQuotedObj?: (() => Promise<IWebMessageInfo>)

Type declaration

    • (): Promise<IWebMessageInfo>
    • Returns Promise<IWebMessageInfo>

id?: string
isCommand?: Boolean | Error
isGroup?: Boolean
m: IWebMessageInfo
mentionedJid?: string[]
msg?: string | ISenderKeyDistributionMessage | IImageMessage | IContactMessage | ILocationMessage | IExtendedTextMessage | IDocumentMessage | IAudioMessage | IVideoMessage | ICall | IChat | IProtocolMessage | IContactsArrayMessage | IHighlyStructuredMessage | ISendPaymentMessage | ILiveLocationMessage | IRequestPaymentMessage | IDeclinePaymentRequestMessage | ICancelPaymentRequestMessage | ITemplateMessage | IStickerMessage | IGroupInviteMessage | ITemplateButtonReplyMessage | IProductMessage | IDeviceSentMessage | IMessageContextInfo | IListMessage | IFutureProofMessage | IOrderMessage | IListResponseMessage | IInvoiceMessage | IButtonsMessage | IButtonsResponseMessage | IPaymentInviteMessage | IInteractiveMessage | IReactionMessage | IStickerSyncRMRMessage | IInteractiveResponseMessage | IPollCreationMessage | IPollUpdateMessage | IKeepInChatMessage | IRequestPhoneNumberMessage | IEncReactionMessage
quoted?: ParsedQuotedMessage
reply?: ((content, jid?, options?) => Promise<WebMessageInfo>)

Type declaration

    • (content, jid?, options?): Promise<WebMessageInfo>
    • Parameters

      • content: string | AnyMessageContent
      • Optional jid: string
      • Optional options: MiscMessageGenerationOptions

      Returns Promise<WebMessageInfo>

sender?: string
sentSource?: "android" | "web" | "ios" | "baileys" | "old_baileys"
text?: string
timestamp: Date
type?: keyof IMessage

Generated using TypeDoc