DialogFlow - send custom payload for telegram such as video

落爺英雄遲暮 提交于 2021-01-29 14:29:05

问题


Folks.

I need to send video file from dialog flow as URI to telegram user.

Tried:

{
  "telegram": {
    "video": "https://"
  }
}

Tried to guess JSON format for fulfillment message via "payload" but nothing works.

And I could not find documentation about the required format.

How to do it ?


回答1:


So apparently you cannot send a video in Telegram. According to doc the only supported rich responses are Image, Card, Quick Replay, and Custom Payload (which includes text and hyperlink). If you want to send the link here's the format of custom response:

 {
  "telegram": {
    "text": "You can read about *entities* [here](/docs/concept-entities).",
    "parse_mode": "Markdown"
  }
 }


来源:https://stackoverflow.com/questions/63162266/dialogflow-send-custom-payload-for-telegram-such-as-video

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!