首页 > 解决方案 > DialogFlow - send custom payload for telegram such as video

问题描述

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 ?

标签: dialogflow-estelegramdialogflow-es-fulfillment

解决方案


所以显然你不能在 Telegram 中发送视频。根据doc,唯一支持的富响应是图像、卡片、快速回放和自定义有效负载(包括文本和超链接)。如果您想发送链接,这里是自定义响应的格式:

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

推荐阅读