mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-04 02:28:31 +01:00
32 lines
849 B
Markdown
32 lines
849 B
Markdown
---
|
|
title: "statsPercentValue"
|
|
description: "Channel statistics percentage."
|
|
nav_exclude: true
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
---
|
|
# Constructor: statsPercentValue
|
|
[Back to constructors index](/API_docs/constructors/index.html)
|
|
|
|
|
|
|
|
[Channel statistics percentage](https://core.telegram.org/api/stats).
|
|
Compute the percentage simply by doing `part * total / 100`
|
|
|
|
### Attributes:
|
|
|
|
| Name | Type | Required | Description |
|
|
|----------|---------------|----------|-------------|
|
|
|part|[double](/API_docs/types/double.html) | Yes|Partial value|
|
|
|total|[double](/API_docs/types/double.html) | Yes|Total value|
|
|
|
|
|
|
|
|
### Type: [StatsPercentValue](/API_docs/types/StatsPercentValue.html)
|
|
|
|
|
|
### Example:
|
|
|
|
```
|
|
$statsPercentValue = ['_' => 'statsPercentValue', 'part' => double, 'total' => double];
|
|
```
|