如何在Twilio WhatsApp中发送图像?
我正在尝试发送带有经过验证的模板和带有C#的API的图片,但它不起作用,任何人都可以告诉我一个发送图像的模板样本? 我在模板上添加了一张图片,该模板我已经拥有
Twilio返回我的错误是:
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
我正在尝试发送带有经过验证的模板和带有C#的API的图片,但它不起作用,任何人都可以告诉我一个发送图像的模板样本? 我在模板上添加了一张图片,该模板我已经拥有
Twilio返回我的错误是:
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
您的错误消息说您的消息未能发送,因为它在对话窗口之外,即自您上次收到用户消息以来24小时。
另外,您不能将媒体作为模板消息的一部分发送,请参见在此处发送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:
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.