import { type SinkOptions } from "https://deno.land/x/grammy_runner@v2.0.3/sink.ts";
Options for creating an update sink.
Properties
Concurrency limit of the runner. Specifies how many updates should be processed in parallel at maximum.
Note that this is done using a best-effort approach. If Telegram ever returns more updates than requested (which should not ever happen), this limit can be exceeded.
optional
timeout: { milliseconds: number; handler: (update: Y, task: Promise<void>) => void; }Timeout options. Consist of a duration in milliseconds and a handler.