我正在尝试使用带有文本、GIF 和按钮的 Bot 框架显示动画卡。它可以在机器人模拟器上完美运行,但不会出现在 Messenger 上。有任何想法吗?
代码
/**Send the question with the level information if available, the index and the Math expression along with a countdown timer as GIF attachment */
let message = new builder.Message(session)
.text(level ? level + ' \n' + strings.question : strings.question, dialogData.index + 1, question.expression)
.addAttachment(
new builder.AnimationCard(session)
.media([{
profile: "image/gif",
url: "https://media.giphy.com/media/l3q2silev6exF53pu/200w.gif"
}])
.buttons(buttons)
// .toAttachment()
)
session.send(message)
任何想法可能会发生什么?提前感谢您的建议
更新 1
这是我控制台上的错误
{"error":{"message":"(#100) 参数 [elements][0][title] 必须是非空的 UTF-8 编码字符串","type":"OAuthException","code": 100,"fbtrace_id":"CLEcx63w+4N"}}