microsoft / botframework-sdk

Bot Framework provides the most comprehensive experience for building conversation applications.
MIT License
7.51k stars 2.45k forks source link

[Question, .NET SDK] How to get the original raw JSON payload from channel #4640

Closed odannyc closed 6 years ago

odannyc commented 6 years ago

Bot Info

Issue Description

I'm trying to get the current raw message from the activity. For example, if Im connected to facebook messenger, and an activity gets sent to the bot, how can I get the raw json that messenger sends to botframework? is that possible?

Code Example

N/A

Reproduction Steps

N/A

stevengum commented 6 years ago

@odannyc have you tried accessing the ChannelData property on the Activity? This should have the native channel's schema, i.e. for this case, the Facebook Messenger message.

You can find the ChannelData property listed here.