I can not find in the docs how to disable notifications in my telegraf bot. Anyone knows how to?
ctx.replyWithHTML("Text", { disable_notification: true });
If we look at the source of replyWithHTML we'll see:
replyWithHTML(this: Context, html: string, extra?: tt.ExtraReplyMessage) {
return this.reply(html, { parse_mode: 'HTML', ...extra })
}
Here the extra object is spread to the reply which is then passed to sendMessage
So your way of passing an extra object, with disable_notification as defined by the telegram /sendMessage method, is the desired way.