Note: As of grammY 1.37.1, the context actions
ctx.replyand 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.sendMessagecalls, too.
todo docs
This was never documented or released. Install from GitHub instead:
npm install github:grammyjs/auto-threadUse it:
import { autoThread } from "@grammyjs/auto-thread";
bot.use(autoThread());