Skip to content

Polls

CreatePoll pydantic-model

Bases: BaseModel

The fields to create a poll with, passed to bot.polls.create.

Fields:

  • allow_multiple_selections (bool | None)
  • answers (list[str])
  • question (str)

CreatePollError

Bases: SignalAPIError

Raised when the API rejects a poll creation request.

CreatedPoll pydantic-model

Bases: CreatePoll

A poll after it was successfully created, with its recipient and send timestamp attached.

Fields:

  • allow_multiple_selections (bool | None)
  • answers (list[str])
  • question (str)
  • recipient (str)
  • timestamp (int)