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 Summary
FieldsModifier 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_PAYMENT
for payments via invoices,TransactionType.PAID_MEDIA_PAYMENT
for payments for paid media,TransactionType.GIFT_PURCHASE
for gifts sent by the bot,TransactionType.PREMIUM_PURCHASE
for Telegram Premium subscriptions gifted by the bot,TransactionType.BUSINESS_ACCOUNT_TRANSFER
for direct transfers from managed business accountsType of the transaction partnerInformation about the userState of the transaction if the transaction is outgoing -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
type
Type of the transaction partner -
transaction_type
Type of the transaction, currently one ofTransactionType.INVOICE_PAYMENT
for payments via invoices,TransactionType.PAID_MEDIA_PAYMENT
for payments for paid media,TransactionType.GIFT_PURCHASE
for gifts sent by the bot,TransactionType.PREMIUM_PURCHASE
for Telegram Premium subscriptions gifted by the bot,TransactionType.BUSINESS_ACCOUNT_TRANSFER
for direct transfers from managed business accounts -
invoice_payload
Bot-specified invoice payload. Can be available only for “invoice_payment” transactions. -
user
Information about the user -
withdrawal_state
State of the transaction if the transaction is outgoing -
paid_media
-
request_count
The number of successful requests that exceeded regular limits and were therefore billed -
subscription_period
The duration of the paid subscription. Can be available only for “invoice_payment” transactions. -
gift
The gift sent to the user by the bot; for “gift_purchase” transactions only or The gift sent to the chat by the bot -
affiliate
Information about the affiliate that received a commission via this transaction. Can be available only for “invoice_payment” and “paid_media_payment” transactions. -
sponsor_user
Information about the bot that sponsored the affiliate program -
commission_per_mille
The number of Telegram Stars received by the bot for each 1000 Telegram Stars received by the affiliate program sponsor from referred users -
chat
Information about the chat
-
-
Constructor Details
-
TransactionPartner
public TransactionPartner()
-