MadelineProtoDocs/docs/API_docs/constructors/statsPercentValue.md
2020-06-16 17:50:25 +02:00

989 B

title: statsPercentValue description: Channel statistics percentage.
Compute the percentage simply by doing part * total / 100 image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: statsPercentValue

Back to constructors index

Channel statistics percentage.
Compute the percentage simply by doing part * total / 100

Attributes:

Name Type Required Description
part double Yes Partial value
total double Yes Total value

Type: StatsPercentValue

Example:

$statsPercentValue = ['_' => 'statsPercentValue', 'part' => double, 'total' => double];

Or, if you're into Lua:

statsPercentValue={_='statsPercentValue', part=double, total=double}