我无法在文档中找到如何禁用我的telegraf中的通知。有人知道怎么做吗?
ctx.replyWithHTML("Text", { disable_notification: true });发布于 2022-03-10 11:26:12
如果我们看看来源 of replyWithHTML,我们就会看到:
replyWithHTML(this: Context, html: string, extra?: tt.ExtraReplyMessage) {
return this.reply(html, { parse_mode: 'HTML', ...extra })
}在这里,extra对象被扩展到reply,即然后转到 sendMessage
因此,您传递额外对象的方式(使用电报disable_notification方法定义的/sendMessage方法)是所需的方法。
https://stackoverflow.com/questions/71423145
复制相似问题