Module

x/grammy/mod.ts>Api#stopPoll

The Telegram Bot Framework.
Very Popular
Go to Latest
method Api.prototype.stopPoll
import { Api } from "https://dotland.deno.dev/x/grammy@v1.12.4/mod.ts";

Use this method to stop a poll which was sent by the bot. On success, the stopped Poll is returned.

Parameters

chat_id: number | string

Unique identifier for the target chat or username of the target channel (in the format @channelusername)

message_id: number

Identifier of the original message with the poll

optional
other: Other<R, "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