Layer 227
constructor
pollAnswer#ff16e2ca text:TextWithEntities option:bytes = PollAnswer;

Parameters

Name Type Description
Text TextWithEntities Textual representation of the answer (only Premium users can use custom emoji entities here).
Option bytes The param that has to be passed to messages. send Vote.
Media flags .0? MessageMedia Optional media attachment displayed alongside the answer
AddedBy flags .1? Peer The peer who added this answer; only set for answers dynamically added to an open-answer poll, see polls
Date flags .1? int When this answer was added; only set for answers dynamically added to an open-answer poll

Returns

PollAnswer

Gogram Example

// Creating PollAnswerObj constructor
obj := &tg.PollAnswerObj{
    Text: &tg.TextWithEntities{},
    Option: []byte{0x01, 0x02, 0x03},
    Media: nil,
    AddedBy: nil,
    Date: nil,
}