Layer 224
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.

Returns

PollAnswer

Gogram Example

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