Yoctol / bottender

⚡️ A framework for building conversational user interfaces.
https://bottender.js.org
MIT License
4.21k stars 333 forks source link

type Message tags is different from facebook event #868

Open kpman opened 3 years ago

kpman commented 3 years ago

Describe the bug The Message Tags type if different from facebook.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Call on '....'
  3. 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;
};

Screenshots CleanShot 2020-10-28 at 17 23 56

Additional context FB docs: https://developers.facebook.com/docs/messenger-platform/discovery/facebook-chat-plugin#detect

CleanShot 2020-10-28 at 17 28 47