StaticGramBot API
Раздел

Платежи

Payments

Your bot can accept payments from Telegram users. Please see the introduction to payments for more details on the process and how to set up payments for your bot.

Методы 8

МетодСтатусОписание
sendInvoiceПоддерживаетсяUse this method to send invoices.
createInvoiceLinkПоддерживаетсяUse this method to create a link for an invoice.
answerShippingQueryПоддерживаетсяIf you sent an invoice requesting a shipping address and the parameter is_flexible was specified, the Bot API will send an Update with a shipping_query field to the bot.
answerPreCheckoutQueryПоддерживаетсяOnce the user has confirmed their payment and shipping details, the Bot API sends the final confirmation in the form of an Update with the field pre_checkout_query .
getMyStarBalanceПоддерживаетсяA method to get the current Telegram Stars balance of the bot.
getStarTransactionsПоддерживаетсяReturns the bot's Telegram Star transactions in chronological order.
refundStarPaymentПоддерживаетсяRefunds a successful payment in Telegram Stars .
editUserStarSubscriptionПоддерживаетсяAllows the bot to cancel or re-enable extension of a subscription paid in Telegram Stars.

Типы 25

ТипОписание
LabeledPriceThis object represents a portion of the price for goods or services.
InvoiceThis object contains basic information about an invoice.
ShippingAddressThis object represents a shipping address.
OrderInfoThis object represents information about an order.
ShippingOptionThis object represents one shipping option.
SuccessfulPaymentThis object contains basic information about a successful payment.
RefundedPaymentThis object contains basic information about a refunded payment.
ShippingQueryThis object contains information about an incoming shipping query.
PreCheckoutQueryThis object contains information about an incoming pre-checkout query.
PaidMediaPurchasedThis object contains information about a paid media purchase.
RevenueWithdrawalStateThis object describes the state of a revenue withdrawal operation.
RevenueWithdrawalStatePendingThe withdrawal is in progress.
RevenueWithdrawalStateSucceededThe withdrawal succeeded.
RevenueWithdrawalStateFailedThe withdrawal failed and the transaction was refunded.
AffiliateInfoContains information about the affiliate that received a commission via this transaction.
TransactionPartnerThis object describes the source of a transaction, or its recipient for outgoing transactions.
TransactionPartnerUserDescribes a transaction with a user.
TransactionPartnerChatDescribes a transaction with a chat.
TransactionPartnerAffiliateProgramDescribes the affiliate program that issued the affiliate commission received via this transaction.
TransactionPartnerFragmentDescribes a withdrawal transaction with Fragment.
TransactionPartnerTelegramAdsDescribes a withdrawal transaction to the Telegram Ads platform.
TransactionPartnerTelegramApiDescribes a transaction with payment for paid broadcasting .
TransactionPartnerOtherDescribes a transaction with an unknown source or recipient.
StarTransactionDescribes a Telegram Star transaction.
StarTransactionsContains a list of Telegram Star transactions.

Описания методов и типов взяты из официальной документации Telegram Bot API (Bot API 10.3). Адрес API: https://api.staticgram.top