Skip to main content

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

NameTypeRequiredDescription
PeerInputPeerClassyesThe peer where the giveaway was posted.
MsgIDintyesMessage ID of the messageActionGiveawayLaunch service message

Returns

PaymentsGiveawayInfoClass

Possible errors

CodeTypeDescription
400MESSAGE_ID_INVALIDThe provided message id is invalid.
400PEER_ID_INVALIDThe provided peer id is invalid.

References