PollOption¶
- class pyrogram.types.PollOption¶
Contains information about one answer option in a poll.
- Parameters:
persistent_id (
str) – Unique identifier of the option, persistent on option addition and deletion.text (
FormattedText, optional) – Option text, 1-100 characters.media (
MessageContent, optional) – Option media. Currently, can be only of the types Animation, Location, Photo, Sticker, Venue, or Video without caption.voter_count (
int, optional) – Number of users that voted for this option. Equals to 0 until you vote.vote_percentage (
int, optional) – The percentage of votes for this option, 0-100.recent_voters (List of
Chat, optional) – List of recent voters for the option, if the poll is non-anonymous and poll results are available.added_by_user (
User, optional) – User who added the option. Omitted if the option wasn’t added by a user after poll creation.added_by_chat (
Chat, optional) – Chat that added the option. Omitted if the option wasn’t added by a chat after poll creation.addition_date (
datetime, optional) – Date when the option was added. Omitted if the option existed in the original poll.