payments.getPaymentForm

Get a payment form

payments.paymentForm#a0058751 flags:# can_save_credentials:flags.2?true password_missing:flags.3?true form_id:long bot_id:long title:string description:string photo:flags.5?WebDocument invoice:Invoice provider_id:long url:string native_provider:flags.4?string native_params:flags.4?DataJSON additional_methods:flags.6?Vector<PaymentFormMethod> saved_info:flags.0?PaymentRequestedInfo saved_credentials:flags.1?Vector<PaymentSavedCredentials> users:Vector<User> = payments.PaymentForm;
payments.paymentFormStars#7bf6b15c flags:# form_id:long bot_id:long title:string description:string photo:flags.5?WebDocument invoice:Invoice users:Vector<User> = payments.PaymentForm;
payments.paymentFormStarGift#b425cfe1 form_id:long invoice:Invoice = payments.PaymentForm;
---functions---
payments.getPaymentForm#37148dbb flags:# invoice:InputInvoice theme_params:flags.0?DataJSON = payments.PaymentForm;

Parameters

Name Type Description
flags # Flags, see TL conditional fields
invoice InputInvoice Invoice
theme_params flags.0?DataJSON Theme parameters »

Result

payments.PaymentForm

Possible errors

Code Type Description
406 API_GIFT_RESTRICTED_UPDATE_APP  
400 BOOST_PEER_INVALID The specified boost_peer is invalid.
403 BOT_ACCESS_FORBIDDEN  
400 BOT_INVOICE_INVALID The specified invoice is invalid.
400 BUSINESS_CONNECTION_INVALID The connection_id passed to the wrapping invokeWithBusinessConnection call is invalid.
400 GIFT_MONTHS_INVALID The value passed in invoice.inputInvoicePremiumGiftStars.months is invalid.
400 INVOICE_INVALID  
400 MESSAGE_ID_INVALID The provided message id is invalid.
400 NO_PAYMENT_NEEDED  
400 PEER_ID_INVALID The provided peer id is invalid.
400 SLUG_INVALID The specified invoice slug is invalid.
400 STARGIFT_ALREADY_CONVERTED  
400 STARGIFT_ALREADY_REFUNDED  
400 STARGIFT_ALREADY_UPGRADED  
400 STARGIFT_INVALID The passed gift is invalid.
400 STARGIFT_NOT_FOUND  
400 STARGIFT_OWNER_INVALID  
400 STARGIFT_PEER_INVALID  
400 STARGIFT_RESELL_CURRENCY_NOT_ALLOWED  
400 STARGIFT_RESELL_NOT_ALLOWED  
400 STARGIFT_SLUG_INVALID  
400 STARGIFT_TRANSFER_TOO_EARLY_%d  
400 STARGIFT_UPGRADE_UNAVAILABLE  
406 STARS_FORM_AMOUNT_MISMATCH  
400 TO_ID_INVALID  
400 UNTIL_DATE_INVALID Invalid until date provided.

Both users and bots can use this method

This method can be invoked over a business connection »

This method can be invoked over an unauthenticated connection »

Related pages

Mini Apps on Telegram

Bots can offer users interactive HTML5 web apps to completely replace any website.

Business

Users can turn their Telegram account into a business account, gaining access to business features such as opening hours, location, quick replies, automated messages, custom start pages, chatbot support, and more.