Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

type Message tags is different from facebook event #868

Open
kpman opened this issue Oct 28, 2020 · 0 comments
Open

type Message tags is different from facebook event #868

kpman opened this issue Oct 28, 2020 · 0 comments

Comments

@kpman
Copy link
Contributor

kpman commented Oct 28, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant