Skip to content

payments.getPaymentForm

No description provided by the pinned schema.

payments.getPaymentForm#37148dbb flags:# invoice:InputInvoice theme_params:flags.0?DataJSON = payments.PaymentForm;

payments.PaymentForm

NameTypeFlagDefaultDescription
flags#flag wordNo description provided by the pinned schema.
invoiceInputInvoiceNo description provided by the pinned schema.
theme_paramsflags.0?DataJSONflags.0No description provided by the pinned schema.
ParameterBitMeaning
theme_params0Controlled by flags; present when this bit is set.
from miniproto.raw.functions import PaymentsGetPaymentForm

Public access: miniproto.raw.functions.PaymentsGetPaymentForm.

from miniproto.raw.functions import PaymentsGetPaymentForm
# Naming the raw request class is local only; it performs no I/O or network request.
request_type = PaymentsGetPaymentForm

payments.PaymentForm

CodeErrorDescription
400BOOST_PEER_INVALIDThe specified boost_peer is invalid.
400BOT_INVOICE_INVALIDThe specified invoice is invalid.
400BUSINESS_CONNECTION_INVALIDThe connection_id passed to the wrapping invokeWithBusinessConnection call is invalid.
400BUSINESS_CONNECTION_NOT_ALLOWEDThis method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we’re a user, and users cannot invoke methods over a business connection; (2) we’re a bot, but business mode was disabled in @botfather or (3); we’re a bot, but this method cannot be invoked over a business connection.
400GIFT_MONTHS_INVALIDThe value passed in invoice.inputInvoicePremiumGiftStars.months is invalid.
400GIFT_STARS_INVALIDThe specified amount of stars is invalid.
400INVOICE_INVALIDThe specified invoice is invalid.
400MESSAGE_ID_INVALIDThe provided message id is invalid.
400MESSAGE_TOO_LONGThe provided message is too long.
400MONTH_INVALIDThe number of months specified in inputInvoicePremiumGiftStars.months is invalid.
400MSG_ID_INVALIDInvalid message ID provided.
400NO_PAYMENT_NEEDEDThe upgrade/transfer of the specified gift was already paid for or is free.
400PEER_ID_INVALIDThe provided peer id is invalid.
400PREMIUM_PURPOSE_INVALIDThe specified InputStorePaymentPurpose is invalid.
400SLUG_INVALIDThe specified invoice slug is invalid.
400STARGIFT_ALREADY_CONVERTEDThe specified star gift was already converted to Stars.
400STARGIFT_ALREADY_REFUNDEDThe specified star gift was already refunded.
400STARGIFT_ALREADY_UPGRADEDThe specified gift was already upgraded to a collectible gift.
400STARGIFT_INVALIDThe passed gift is invalid.
400STARGIFT_MESSAGE_INVALIDThe specified inputInvoiceStarGift.message is invalid.
400STARGIFT_NOT_FOUNDThe specified gift was not found.
400STARGIFT_NOT_OWNERYou’re not the owner of the gift you trying to transfer.
400STARGIFT_NOT_UNIQUEYou can’t transfer a non-collectible gift.
400STARGIFT_OWNER_INVALIDYou cannot transfer or sell a gift owned by another user.
400STARGIFT_PEER_INVALIDThe specified inputSavedStarGiftChat.peer is invalid.
400STARGIFT_RESELL_CURRENCY_NOT_ALLOWEDYou can’t buy the gift using the specified currency (i.e. trying to pay in Stars for TON gifts).
400STARGIFT_RESELL_TOO_EARLY_%dYou will be able to resell this gift in %d seconds.
400STARGIFT_SLUG_INVALIDThe specified gift slug is invalid.
400STARGIFT_TRANSFER_TOO_EARLY_%dYou cannot transfer this gift yet, wait %d seconds.
400STARGIFT_UPGRADE_UNAVAILABLEA received gift can only be upgraded to a collectible gift if the messageActionStarGift/savedStarGift.can_upgrade flag is set.
400TO_ID_INVALIDThe specified to_id of the passed inputInvoiceStarGiftResale or inputInvoiceStarGiftTransfer is invalid.
400UNTIL_DATE_INVALIDInvalid until date provided.
403BOT_ACCESS_FORBIDDENThe specified method can be used over a business connection for some operations, but the specified query attempted an operation that is not allowed over a business connection.
403USER_DISALLOWED_STARGIFTSThe recipient user has configured restrictions on which categories of star gifts they’re willing to accept (unique, limited, or unlimited): the sender attempted to get a payment form for a gift that falls into a category the recipient has blocked.
406API_GIFT_RESTRICTED_UPDATE_APPPlease update the app to access the gift API.
406STARGIFT_EXPORT_IN_PROGRESSA gift export is in progress, a detailed and localized description for the error will be emitted via an updateServiceNotification as specified here ».
406STARS_FORM_AMOUNT_MISMATCHThe form amount has changed, please fetch the new form using payments.getPaymentForm and restart the process.

DataJSON, InputInvoice Known selected constructors: dataJSON, inputInvoiceBusinessBotTransferStars, inputInvoiceChatInviteSubscription, inputInvoiceMessage, inputInvoicePremiumAuthCode, inputInvoicePremiumGiftCode, inputInvoicePremiumGiftStars, inputInvoiceSlug, inputInvoiceStarGift, inputInvoiceStarGiftAuctionBid, inputInvoiceStarGiftDropOriginalDetails, inputInvoiceStarGiftPrepaidUpgrade, inputInvoiceStarGiftResale, inputInvoiceStarGiftTransfer, inputInvoiceStarGiftUpgrade, inputInvoiceStars

payments.PaymentForm Known selected constructors: payments.paymentForm, payments.paymentFormStarGift, payments.paymentFormStars

bots.answerWebhookJSONQuery, bots.invokeWebViewCustomMethod, bots.sendCustomRequest, help.acceptTermsOfService, messages.requestAppWebView, messages.requestChatJoinWebView, messages.requestMainWebView, messages.requestSimpleWebView, messages.requestWebView, payments.assignPlayMarketTransaction, payments.sendPaymentForm, payments.sendStarsForm, payments.validateRequestedInfo, phone.createConferenceCall, phone.getCallConfig, phone.joinGroupCall, phone.joinGroupCallPresentation, phone.saveCallDebug

  • business supported
  • unauthenticated allowed
  • tdlib_vs_core: changed_count=68; core_only_count=1; overlap_count=2302; tdlib_only_count=158
  • tdlib_vs_tdesktop: changed_count=0; overlap_count=2448; tdesktop_only=null; tdlib_only=accessPointRule, ephemeral.editMessage, help.configSimple, inputPeerPhotoFileLocationLegacy, inputStickerSetThumbLegacy, invokeWithApnsSecretPrefix, invokeWithBusinessConnectionPrefix, invokeWithGooglePlayIntegrityPrefix, invokeWithReCaptchaPrefix, ipPort, ipPortSecret, updateEphemeralBotCallbackQuery