Layer 220
PaymentsGetGiveawayInfo
Obtain information about a Telegram Premium giveaway.
method
Users
payments.getGiveawayInfo#f4239425 peer:InputPeer msg_id:int = payments.GiveawayInfo;
Parameters
| Name | Type | Description |
|---|---|---|
| Peer | InputPeer | The peer where the giveaway was posted. |
| MsgId | int | Message ID of the message Action Giveaway Launch service message |
Returns
payments.GiveawayInfoPossible Errors
| Code | Type | Description |
|---|---|---|
| 400 | MESSAGE_ID_INVALID | The provided message id is invalid. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
Gogram Example
// PaymentsGetGiveawayInfo - positional arguments result, err := client.PaymentsGetGiveawayInfo(&tg.InputPeerUser{UserID: int64(123456789)}, 0) if err != nil { // handle error } // result is *tg.PaymentsGiveawayInfo