Раздел
Платежи
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
| Тип | Описание |
|---|---|
LabeledPrice | This object represents a portion of the price for goods or services. |
Invoice | This object contains basic information about an invoice. |
ShippingAddress | This object represents a shipping address. |
OrderInfo | This object represents information about an order. |
ShippingOption | This object represents one shipping option. |
SuccessfulPayment | This object contains basic information about a successful payment. |
RefundedPayment | This object contains basic information about a refunded payment. |
ShippingQuery | This object contains information about an incoming shipping query. |
PreCheckoutQuery | This object contains information about an incoming pre-checkout query. |
PaidMediaPurchased | This object contains information about a paid media purchase. |
RevenueWithdrawalState | This object describes the state of a revenue withdrawal operation. |
RevenueWithdrawalStatePending | The withdrawal is in progress. |
RevenueWithdrawalStateSucceeded | The withdrawal succeeded. |
RevenueWithdrawalStateFailed | The withdrawal failed and the transaction was refunded. |
AffiliateInfo | Contains information about the affiliate that received a commission via this transaction. |
TransactionPartner | This object describes the source of a transaction, or its recipient for outgoing transactions. |
TransactionPartnerUser | Describes a transaction with a user. |
TransactionPartnerChat | Describes a transaction with a chat. |
TransactionPartnerAffiliateProgram | Describes the affiliate program that issued the affiliate commission received via this transaction. |
TransactionPartnerFragment | Describes a withdrawal transaction with Fragment. |
TransactionPartnerTelegramAds | Describes a withdrawal transaction to the Telegram Ads platform. |
TransactionPartnerTelegramApi | Describes a transaction with payment for paid broadcasting . |
TransactionPartnerOther | Describes a transaction with an unknown source or recipient. |
StarTransaction | Describes a Telegram Star transaction. |
StarTransactions | Contains a list of Telegram Star transactions. |