Module

x/grammy/context.ts>Context#stopPoll

The Telegram Bot Framework.
Very Popular
Latest
method Context.prototype.stopPoll
import { Context } from "https://dotland.deno.dev/x/grammy@v1.31.0/context.ts";

Context-aware alias for api.stopPoll. Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.

Parameters

optional
other: Other<"stopPoll", "chat_id" | "message_id">

Optional remaining parameters, confer the official reference below

optional
signal: AbortSignal

Optional AbortSignal to cancel the request

Official reference: https://core.telegram.org/bots/api#stoppoll