Layer 224
MessagePeerVoteObj
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 MessagePeerVoteObj constructor obj := &tg.MessagePeerVoteObj{ Peer: &tg.Peer{}, Option: []byte{0x01, 0x02, 0x03}, Date: 42, }