Constructor: messageMediaPoll

Back to constructors index

Message media poll

Attributes:

Name Type Required Description
poll Poll Yes Poll
results PollResults Yes Results

Type: MessageMedia

Example:

$messageMediaPoll = ['_' => 'messageMediaPoll', 'poll' => Poll, 'results' => PollResults];

PWRTelegram json-encoded version:

{"_": "messageMediaPoll", "poll": Poll, "results": PollResults}

Or, if you’re into Lua:

messageMediaPoll={_='messageMediaPoll', poll=Poll, results=PollResults}