Note: As of grammY 1.37.1, the context actions
ctx.reply
and so on will automatically reply to the right topic/message thread. You only need this plugin if you want to alter the behaviour ofctx.api.sendMessage
calls, too.
todo docs
This was never documented or released. Install from GitHub instead:
npm install github:grammyjs/auto-thread
Use it:
import { autoThread } from "@grammyjs/auto-thread";
bot.use(autoThread());