Layer 220
MessagePeerVote
How a peer voted in a poll
constructor
messagePeerVote#b6cc2d5c peer:Peer option:bytes date:int = MessagePeerVote;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | Peer | Peer ID |
| Option | bytes | The option chosen by the peer |
| Date | int | When did the peer cast the vote |
Returns
MessagePeerVoteGogram Example
// Creating MessagePeerVote constructor obj := &tg.MessagePeerVote{ Peer: &tg.Peer{}, Option: []byte{}, Date: 0, }