let itemMsg = await ctx.replyWithHTML(chosen.about, keys.actions, { disable_web_page_preview: true });Bot仍然发送带有链接预览的消息,我如何禁用它?
我试过了
let itemMsg = await ctx.replyWithHTML(chosen.about, keys.actions, { disable_web_page_preview: true });和
let itemMsg = await ctx.replyWithHTML(chosen.about, keys.actions, disable_web_page_preview = true);发布于 2022-10-28 08:53:04
disable_web_page_preview参数应该在第二个参数中提供,如下所示:
let itemMsg = await ctx.replyWithHTML(chosen.about, {
disable_web_page_preview: true
});我不确定keys.actions对象在您的代码中是什么,但我相信这可能会奏效:
let itemMsg = await ctx.replyWithHTML(chosen.about, {
...keys.action,
disable_web_page_preview: true
});https://stackoverflow.com/questions/74214678
复制相似问题