payments.getGiveawayInfo
Obtain information about a Telegram Premium giveaway ».
func (c *Client) PaymentsGetGiveawayInfo(ctx context.Context, request *PaymentsGetGiveawayInfoRequest) (PaymentsGiveawayInfoClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PaymentsGetGiveawayInfo(ctx, &tg.PaymentsGetGiveawayInfoRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // PaymentsGiveawayInfoClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | The peer where the giveaway was posted. |
MsgID | int | yes | Message ID of the messageActionGiveawayLaunch service message |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | MESSAGE_ID_INVALID | The provided message id is invalid. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
payments.getGiveawayInfo#f4239425