DialogFlow-为视频等电报发送自定义有效载荷 [英] DialogFlow - send custom payload for telegram such as video

查看:55
本文介绍了DialogFlow-为视频等电报发送自定义有效载荷的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

伙计们.

我需要将对话流中的视频文件作为URI发送给电报用户.

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

尝试:

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

试图通过有效载荷"来猜测履行消息的JSON格式.但是什么都行不通.

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

我找不到有关所需格式的文档.

And I could not find documentation about the required format.

该怎么做?

推荐答案

显然,您无法使用Telegram发送视频.根据 doc ,唯一受支持的丰富响应是图像,卡片,快速重播,和自定义有效载荷(包括文本和超链接).如果您要发送链接,则为自定义回复的格式:

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"
  }
 }

这篇关于DialogFlow-为视频等电报发送自定义有效载荷的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆