diff --git a/packages/starter-telegram-bot/src/bot.ts b/packages/starter-telegram-bot/src/bot.ts index b60b0e8..7442bde 100644 --- a/packages/starter-telegram-bot/src/bot.ts +++ b/packages/starter-telegram-bot/src/bot.ts @@ -34,3 +34,9 @@ export const bot = getBot({ initial: () => ({ counter: 0 }), }), }); + +// Catch all when outside of command context +bot.on("message", async (ctx) => { + const message = ctx.message; // the message object + await ctx.reply(`Echo: ${message.text}`); +});