type Message tags is different from facebook event
kpman opened this issue · 0 comments
kpman commented
Describe the bug
The Message Tags type if different from facebook.
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Call on '....'
- See error
Expected behavior
export type Message = {
mid: string;
isEcho?: boolean;
text?: string;
stickerId?: number;
quickReply?: QuickReply;
attachments?: Attachment[];
tags?: Tag; // should be Tag rather than Tag[]
replyTo?: ReplyTo;
appId?: number;
metadata?: string;
};
Additional context
FB docs: https://developers.facebook.com/docs/messenger-platform/discovery/facebook-chat-plugin#detect