crisboarna / fb-messenger-bot-api

NodeJS Facebook Messenger API for bots to send messages and setup events to Facebook.
https://www.npmjs.com/package/fb-messenger-bot-api
MIT License
34 stars 17 forks source link

Attachments can be mized array of normal and fallback one #63

Closed mohyt closed 5 years ago

mohyt commented 5 years ago

export interface FacebookMessagePayloadMessageEntry { mid: string; is_echo?: boolean; app_id?: number; metadata?: string; seq?: string; text?: string; attachments?: FacebookMessagePayloadAttachments[] | FacebookMessagePayloadAttachmentsFallback[]; quick_reply?: { payload: string; }; }

As the attachment can be normal and fallback one, its type should be attachments?: (FacebookMessagePayloadAttachments | FacebookMessagePayloadAttachmentsFallback)[];

crisboarna commented 5 years ago

Hi @mohyt , thank you for pointing out the error, adding the change and will do a minor version push today.

crisboarna commented 5 years ago

:tada: This issue has been resolved in version 4.0.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: