Skip to content
This repository has been archived by the owner on Jan 2, 2023. It is now read-only.

Custom payload won't render #41

Open
denis-knizhnik opened this issue Oct 9, 2019 · 0 comments
Open

Custom payload won't render #41

denis-knizhnik opened this issue Oct 9, 2019 · 0 comments

Comments

@denis-knizhnik
Copy link

Greetings
Currently, i'm writing DF webhook for Viber and Telegram
I use custom payload, but it won't render
For example, for telegram i use
$agent->reply(\Dialogflow\RichMessage\Payload::create(['text'=>"testtext"]));
but it returns an empty message
It renders like
{"payload":{"telegram":{"text":"testtext"}},"outputContexts":[]}
but it seems like Dialogflow doesn't understand it and returns default dialogflow message (as it was set in DF console)
Same for viber
What am i doing wrong, please help

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

No branches or pull requests

1 participant