MadelineProtoDocs/docs/API_docs/constructors/statsPercentValue.md

32 lines
849 B
Markdown
Raw Normal View History

2024-05-01 14:53:46 +02:00
---
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];
```