Skip to main content
Module

x/grammy_parse_mode/deps.deno.ts>Context#stopPoll

Safely format messages and keep their source code maintainable.
Go to Latest
method Context.prototype.stopPoll
Re-export
import { Context } from "https://deno.land/x/grammy_parse_mode@1.9.0/deps.deno.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