Airgram

Guides
/
/
Methods

api.stopPoll()

Stops a poll. A poll in a message can be stopped when the message has can_be_edited flag set

Parameters StopPollParams:

NameTypeDescription
chatIdnumber Identifier of the chat to which the poll belongs
messageIdnumber Identifier of the message containing the poll
replyMarkup The new message reply markup; pass null if none; for bots only
Returns ApiResponse interface:
interface ApiResponse {
  _: 'stopPoll' | 'error'
  airgram: Airgram
  request: {
    method: 'stopPoll'
    params: StopPollParams
  }
  response:  | 
  setState: (nextState: Record<string, unknown>) => void
  getState: () => Record<string, unknown>
}