import { Composer } from "https://deno.land/x/grammy@v1.30.1/mod.ts";
Registers middleware for the ChosenInlineResult by the given id or ids. ChosenInlineResult represents a result of an inline query that was chosen by the user and sent to their chat partner. Check out https://core.telegram.org/bots/api#choseninlineresult to read more about chosen inline results.
bot.chosenInlineResult('id', async ctx => {
const id = ctx.result_id;
// Your code
})