如何在Twilio WhatsApp中发送图像?

发布于 2025-01-31 20:01:31 字数 269 浏览 2 评论 0 原文

我正在尝试发送带有经过验证的模板和带有C#的API的图片,但它不起作用,任何人都可以告诉我一个发送图像的模板样本? 我在模板上添加了一张图片,该模板我已经拥有

“在此处输入映像说明”

Twilio返回我的错误是:

“在此处输入图像说明”

I'm trying to send a picture with a verified template and the API with C# but it doesn't work, anyone can tell me a sample of a template which sends images?
I add a picture with the template that I already have

enter image description here

The error that Twilio returns me is:

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夢归不見 2025-02-07 20:01:31

您的错误消息说您的消息未能发送,因为它在对话窗口之外,即自您上次收到用户消息以来24小时。

另外,您不能将媒体作为模板消息的一部分发送,请参见在此处发送WhatsApp消息的规则和局限性说:

如果用户在过去24小时内未向您的WhatsApp号码发送消息,则您无法通过WhatsApp向他们发送媒体消息。这意味着在预批准的模板中不允许媒体文件。

这是因为WhatsApp仅允许在会话消息上发送媒体。

因此,这是一个WhatsApp规则,它阻止您将媒体作为模板消息发送。取而代之的是,您应该尝试让用户返回响应,此时您也可以使用媒体发送免费形式消息。

Your error message says that your message failed to send because it was outside of the conversation window, that is 24 hours since you last received a message from the user.

Also, you cannot send media as part of a template message, see the rules and limitations of sending WhatsApp messages here, which says:

If a user has not sent a message to your WhatsApp number within the past 24 hours, you cannot send them a media message through WhatsApp. This means media files are not allowed in pre-approved templates.

This is because WhatsApp only allows sending media on session messages.

So, it is a WhatsApp rule that is preventing you from sending media as a template message. Instead you should try to engage the user to return a response at which time you will be able to send freeform messages using media too.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文