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
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | The peer where the payment receipt was sent |
MsgID | int | yes | Message ID of receipt |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | MESSAGE_ID_INVALID | The provided message id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
payments.getPaymentReceipt#2478d1cc