Objects¶
poll
¶
PollMediaPart
dataclass
¶
Bases: Part
flowchart TD
scurrypy.api.poll.PollMediaPart[PollMediaPart]
scurrypy.core.part.Part[Part]
scurrypy.core.part.Part --> scurrypy.api.poll.PollMediaPart
click scurrypy.api.poll.PollMediaPart href "" "scurrypy.api.poll.PollMediaPart"
click scurrypy.core.part.Part href "" "scurrypy.core.part.Part"
Represents fields for creating a poll media field.
PollAnswerPart
dataclass
¶
Bases: Part
flowchart TD
scurrypy.api.poll.PollAnswerPart[PollAnswerPart]
scurrypy.core.part.Part[Part]
scurrypy.core.part.Part --> scurrypy.api.poll.PollAnswerPart
click scurrypy.api.poll.PollAnswerPart href "" "scurrypy.api.poll.PollAnswerPart"
click scurrypy.core.part.Part href "" "scurrypy.core.part.Part"
Represents fields for creating a poll answer.
poll_media: RequiredPartField[PollMediaPart] = None
class-attribute
instance-attribute
¶
Data of the answer.
PollPart
dataclass
¶
Bases: Part
flowchart TD
scurrypy.api.poll.PollPart[PollPart]
scurrypy.core.part.Part[Part]
scurrypy.core.part.Part --> scurrypy.api.poll.PollPart
click scurrypy.api.poll.PollPart href "" "scurrypy.api.poll.PollPart"
click scurrypy.core.part.Part href "" "scurrypy.core.part.Part"
Represents fields for creating a poll.
question: RequiredPartField[PollMediaPart] = None
class-attribute
instance-attribute
¶
Question of the poll.
answers: RequiredPartField[list[PollAnswerPart]] = None
class-attribute
instance-attribute
¶
Possible answers to the poll.
duration: OptionalPartField[int] = None
class-attribute
instance-attribute
¶
Duration (in hours) before poll expires.
allow_multiselect: OptionalPartField[bool] = None
class-attribute
instance-attribute
¶
Whether a user can select multiple answers.
layout_type: OptionalPartField[PollLayoutType] = None
class-attribute
instance-attribute
¶
Layout type of the poll.