Layer 220
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 PollAnswer constructor
obj := &tg.PollAnswer{
    Text: &tg.TextWithEntities{},
    Option: []byte{},
}