You can use toasts and alerts only for callback_query (bot.on action)
ctx.answer.toast(text) ctx.answer.alert(text)
Last updated 2 years ago