Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

No way to determine message type in message_received handler #447

Closed
ianp opened this issue Oct 17, 2016 · 2 comments
Closed

No way to determine message type in message_received handler #447

ianp opened this issue Oct 17, 2016 · 2 comments

Comments

@ianp
Copy link

ianp commented Oct 17, 2016

For example, when a Facebook bot receives a post back it will trigger both the facebook_postback and message_received events, while this is good for conversational usage it means that messages will be processed twice in some cases. It would be good if there were an easy way to tell if a message had been generated from a post back in the message_received handler.

I'd like to add a type field to the message which would be set to facebook_postback (similar to how the Slack bot adds a type field to some messages).

(Botkit versions 0.4.0 and HEAD)

@agamrafaeli
Copy link
Contributor

Submitted PR #469 to resolve this

@benbrown
Copy link
Contributor

benbrown commented Nov 7, 2016

Merged! Thank you!

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

No branches or pull requests

4 participants