MadelineProtoDocs/docs/API_docs/constructors/statsPercentValue.md

42 lines
989 B
Markdown
Raw Normal View History

2020-04-03 14:11:09 +02:00
---
title: statsPercentValue
2020-06-16 17:50:25 +02:00
description: [Channel statistics percentage](https://core.telegram.org/api/stats).
Compute the percentage simply by doing `part * total / 100`
2020-04-03 14:11:09 +02:00
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
---
# Constructor: statsPercentValue
[Back to constructors index](index.md)
2020-06-16 17:50:25 +02:00
[Channel statistics percentage](https://core.telegram.org/api/stats).
Compute the percentage simply by doing `part * total / 100`
2020-04-03 14:11:09 +02:00
### Attributes:
2020-06-16 17:50:25 +02:00
| Name | Type | Required | Description |
|----------|---------------|----------|-------------|
|part|[double](../types/double.md) | Yes|Partial value|
|total|[double](../types/double.md) | Yes|Total value|
2020-04-03 14:11:09 +02:00
### Type: [StatsPercentValue](../types/StatsPercentValue.md)
### Example:
```php
$statsPercentValue = ['_' => 'statsPercentValue', 'part' => double, 'total' => double];
```
Or, if you're into Lua:
```lua
statsPercentValue={_='statsPercentValue', part=double, total=double}
```