Skip to main content
Latest
interface SinkOptions
Re-export
import { type SinkOptions } from "https://deno.land/x/grammy_runner@v2.0.3/mod.ts";

Options for creating an update sink.

Properties

optional
concurrency: number

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.