import { ConversationHandle } from "https://deno.land/x/grammy_conversations@v1.1.1/mod.ts";
Runs a piece of middleware for each already received context object every time a context object is received. This can be used to install plugins inside conversations.
For instance, if three context objects arrive, this is what happens:
- the first update is received
- the middleware runs for the first update
- the second update is received
- the middleware runs for the first update
- the middleware runs for the second update
- the third update is received
- the middleware runs for the first update
- the middleware runs for the second update
- the middleware runs for the third update
Note that the middleware is run with first update thrice.