Layer 220
method Users
payments.validateRequestedInfo#b6c8f12b flags:# save:flags.0?true invoice:InputInvoice info:PaymentRequestedInfo = payments.ValidatedRequestedInfo;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Save flags.0?true Save order information to re-use it for future orders
Invoice InputInvoice Invoice
Info PaymentRequestedInfo Requested order information

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.

Gogram Example

// PaymentsValidateRequestedInfo - using Params struct
result, err := client.PaymentsValidateRequestedInfo(&tg.PaymentsValidateRequestedInfoParams{
    Invoice: &tg.InputInvoice{},
    Info: &tg.PaymentRequestedInfo{},

    // Optional fields:
    // Save: true,
})
if err != nil {
    // handle error
}
// result is *tg.PaymentsValidatedRequestedInfo