Skip to main content
Module

x/grammy/mod.ts>Api#stopPoll

The Telegram Bot Framework.
Extremely Popular
Go to Latest
method Api.prototype.stopPoll
import { Api } from "https://deno.land/x/grammy@v1.11.1/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