Skip to main content

payments.getPaymentReceipt

Get payment receipt

func (c *Client) PaymentsGetPaymentReceipt(ctx context.Context, request *PaymentsGetPaymentReceiptRequest) (PaymentsPaymentReceiptClass, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.PaymentsGetPaymentReceipt(ctx, &tg.PaymentsGetPaymentReceiptRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // PaymentsPaymentReceiptClass
return nil
})

Parameters

NameTypeRequiredDescription
PeerInputPeerClassyesThe peer where the payment receipt was sent
MsgIDintyesMessage ID of receipt

Returns

PaymentsPaymentReceiptClass

Possible errors

CodeTypeDescription
400MESSAGE_ID_INVALIDThe provided message id is invalid.

References