Link Search Menu Expand Document

Constructor: payments.starsRevenueStats

Back to constructors index

Star revenue statistics, see here » for more info.

Note that all balances and currency amounts and graph values are in Stars.

Attributes:

NameTypeRequiredDescription
revenue_graphStatsGraphYesStar revenue graph (number of earned stars)
statusStarsRevenueStatusYesCurrent balance, current withdrawable balance and overall earned Telegram Stars
usd_ratedoubleYesCurrent conversion rate of Telegram Stars to USD

Type: payments.StarsRevenueStats

Example:

$payments_starsRevenueStats = ['_' => 'payments.starsRevenueStats', 'revenue_graph' => StatsGraph, 'status' => StarsRevenueStatus, 'usd_rate' => double];