MadelineProtoDocs/docs/API_docs/constructors/pollAnswer.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

853 B

title description image
pollAnswer Poll answer https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: pollAnswer

Back to constructors index

Poll answer

Attributes:

Name Type Required Description
text string Yes Text
option bytes Yes Option

Type: PollAnswer

Example:

$pollAnswer = ['_' => 'pollAnswer', 'text' => 'string', 'option' => 'bytes'];

PWRTelegram json-encoded version:

{"_": "pollAnswer", "text": "string", "option": {"_": "bytes", "bytes":"base64 encoded bytes"}}

Or, if you're into Lua:

pollAnswer={_='pollAnswer', text='string', option='bytes'}