PollResults

class pyrogram.raw.base.PollResults

Results of poll

Constructors:

This base type has 1 constructor available.

PollResults

Results of poll

TL Schema

pollResults#7adf2420
flags:#
min:flags.0?true
results:flags.1?Vector<PollAnswerVoters>
total_voters:flags.2?int
recent_voters:flags.3?Vector<Peer>
solution:flags.4?string
solution_entities:flags.4?Vector<MessageEntity>

= PollResults

Parameter Tree

PollResults
├── mintrue (optional)
├── resultsVector < PollAnswerVoters > (optional)
│ └── PollAnswerVoters
│ ├── chosentrue (optional)
│ ├── correcttrue (optional)
│ ├── optionbytes
│ └── votersint
├── total_votersint (optional)
├── recent_votersVector < Peer > (optional)
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
├── solutionstring (optional)
└── solution_entitiesVector < MessageEntity > (optional)
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ ├── lengthint
│ └── languagestring
│ ├── offsetint
│ ├── lengthint
│ └── urlstring
│ ├── offsetint
│ ├── lengthint
│ └── user_idlong
│ ├── offsetint
│ ├── lengthint
│ └── user_idInputUser
│ ├── InputUserEmpty
│ ├── InputUserSelf
│ ├── InputUser
│ └── InputUserFromMessage
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ └── lengthint
│ ├── offsetint
│ ├── lengthint
│ └── document_idlong
│ ├── collapsedtrue (optional)
│ ├── offsetint
│ └── lengthint
├── relativetrue (optional)
├── short_timetrue (optional)
├── long_timetrue (optional)
├── short_datetrue (optional)
├── long_datetrue (optional)
├── day_of_weektrue (optional)
├── offsetint
├── lengthint
└── dateint

Example

PollResults(
    min=None,
    results=[
            PollAnswerVoters(
                chosen=None,
                correct=None,
                option=b"data",
                voters=0
            )
        ],
    total_voters=0,
    recent_voters=[
            PeerUser(user_id=0)
        ],
    solution="text",
    solution_entities=[
            MessageEntityUnknown(
                offset=0,
                length=0
            )
        ],
)