Layer 227
UpdateMessagePoll
The results of a poll have changed
constructor
updateMessagePoll#aca1657b flags:# poll_id:long poll:flags.0?Poll results:PollResults = Update;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | flags .1? Peer | Peer of the message containing the poll |
| MsgId | flags .1? int | Message ID of the poll |
| TopMsgId | flags .2? int | If the poll is in a forum topic, the ID of the top message of the topic |
| PollId | long | Poll ID |
| Poll | flags .0? Poll | If the server knows the client hasn't cached this poll yet, the poll itself |
| Results | PollResults | New poll results |
Returns
UpdateGogram Example
// Creating UpdateMessagePoll constructor obj := &tg.UpdateMessagePoll{ Peer: nil, MsgId: nil, TopMsgId: nil, PollId: int64(1234567890), Poll: nil, Results: &tg.PollResults{}, }