Class TransactionPartner
java.lang.Object
io.github.natanimn.telebof.types.payments.TransactionPartner
This class describes the source of a transaction, or its recipient for outgoing transactions.
- Since:
- 3 March 2025
- 
Field SummaryFieldsModifier and TypeFieldDescriptionInformation about the affiliate that received a commission via this transaction.Information about the chatThe number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affiliate program sponsor from referred usersThe gift sent to the user by the bot; for “gift_purchase” transactions only or The gift sent to the chat by the botBot-specified invoice payload.Information about the paid media bought by the user; for “paid_media_payment” transactions onlyOptional.The number of successful requests that exceeded regular limits and were therefore billedInformation about the bot that sponsored the affiliate programThe duration of the paid subscription.Type of the transaction, currently one ofTransactionType.INVOICE_PAYMENTfor payments via invoices,TransactionType.PAID_MEDIA_PAYMENTfor payments for paid media,TransactionType.GIFT_PURCHASEfor gifts sent by the bot,TransactionType.PREMIUM_PURCHASEfor Telegram Premium subscriptions gifted by the bot,TransactionType.BUSINESS_ACCOUNT_TRANSFERfor direct transfers from managed business accountsType of the transaction partnerInformation about the userState of the transaction if the transaction is outgoing
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
typeType of the transaction partner
- 
transaction_typeType of the transaction, currently one ofTransactionType.INVOICE_PAYMENTfor payments via invoices,TransactionType.PAID_MEDIA_PAYMENTfor payments for paid media,TransactionType.GIFT_PURCHASEfor gifts sent by the bot,TransactionType.PREMIUM_PURCHASEfor Telegram Premium subscriptions gifted by the bot,TransactionType.BUSINESS_ACCOUNT_TRANSFERfor direct transfers from managed business accounts
- 
invoice_payloadBot-specified invoice payload. Can be available only for “invoice_payment” transactions.
- 
userInformation about the user
- 
withdrawal_stateState of the transaction if the transaction is outgoing
- 
paid_media
- 
request_countThe number of successful requests that exceeded regular limits and were therefore billed
- 
subscription_periodThe duration of the paid subscription. Can be available only for “invoice_payment” transactions.
- 
giftThe gift sent to the user by the bot; for “gift_purchase” transactions only or The gift sent to the chat by the bot
- 
affiliateInformation about the affiliate that received a commission via this transaction. Can be available only for “invoice_payment” and “paid_media_payment” transactions.
- 
sponsor_userInformation about the bot that sponsored the affiliate program
- 
commission_per_milleThe number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affiliate program sponsor from referred users
- 
chatInformation about the chat
 
- 
- 
Constructor Details- 
TransactionPartnerpublic TransactionPartner()
 
-