Telebot 9.4
Library for Telegram bot API
Loading...
Searching...
No Matches
Public Attributes | List of all members
telebot_transaction_partner Struct Reference

This object describes the source of a transaction. More...

#include <telebot-types.h>

Public Attributes

char * type
 
char * transaction_type
 
struct telebot_useruser
 
struct telebot_chatchat
 
struct telebot_affiliate_infoaffiliate
 
char * invoice_payload
 
int subscription_period
 
struct telebot_paid_mediapaid_media
 
int count_paid_media
 
char * paid_media_payload
 
struct telebot_giftgift
 
int premium_subscription_duration
 
struct telebot_revenue_withdrawal_statewithdrawal_state
 
struct telebot_usersponsor_user
 
int commission_per_mille
 
int request_count
 

Detailed Description

This object describes the source of a transaction.

Member Data Documentation

◆ affiliate

struct telebot_affiliate_info* telebot_transaction_partner::affiliate

Optional. Information about the affiliate

◆ chat

struct telebot_chat* telebot_transaction_partner::chat

Optional. Information about the chat

◆ commission_per_mille

int telebot_transaction_partner::commission_per_mille

Optional. The number of Telegram Stars received by the bot for each 1000 Stars

◆ gift

struct telebot_gift* telebot_transaction_partner::gift

Optional. The gift sent to the user by the bot

◆ invoice_payload

char* telebot_transaction_partner::invoice_payload

Optional. Bot-specified invoice payload

◆ paid_media

struct telebot_paid_media* telebot_transaction_partner::paid_media

Optional. Information about the paid media bought by the user

◆ paid_media_payload

char* telebot_transaction_partner::paid_media_payload

Optional. Bot-specified paid media payload

◆ premium_subscription_duration

int telebot_transaction_partner::premium_subscription_duration

Optional. Number of months the gifted Telegram Premium subscription will be active for

◆ request_count

int telebot_transaction_partner::request_count

Optional. The number of successful requests that exceeded regular limits

◆ sponsor_user

struct telebot_user* telebot_transaction_partner::sponsor_user

Optional. Information about the bot that sponsored the affiliate program

◆ subscription_period

int telebot_transaction_partner::subscription_period

Optional. The duration of the paid subscription

◆ transaction_type

char* telebot_transaction_partner::transaction_type

Optional. Type of the transaction

◆ type

char* telebot_transaction_partner::type

Type of the transaction partner

◆ user

struct telebot_user* telebot_transaction_partner::user

Optional. Information about the user

◆ withdrawal_state

struct telebot_revenue_withdrawal_state* telebot_transaction_partner::withdrawal_state

Optional. State of the transaction if the transaction is outgoing


The documentation for this struct was generated from the following file: