2019-06-24 15:45:02 +02:00
|
|
|
---
|
|
|
|
title: topPeer
|
|
|
|
description: Top peer
|
|
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
|
|
---
|
|
|
|
# Constructor: topPeer
|
|
|
|
[Back to constructors index](index.md)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Top peer
|
|
|
|
|
|
|
|
### Attributes:
|
|
|
|
|
|
|
|
| Name | Type | Required | Description |
|
|
|
|
|----------|---------------|----------|-------------|
|
|
|
|
|peer|[Peer](../types/Peer.md) | Yes|Peer|
|
2019-12-27 17:48:04 +01:00
|
|
|
|rating|[double](../types/double.md) | Yes|Rating as computer in [top peer rating ยป](https://core.telegram.org/api/top-rating)|
|
2019-06-24 15:45:02 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
### Type: [TopPeer](../types/TopPeer.md)
|
|
|
|
|
|
|
|
|
|
|
|
### Example:
|
|
|
|
|
|
|
|
```php
|
|
|
|
$topPeer = ['_' => 'topPeer', 'peer' => Peer, 'rating' => double];
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
Or, if you're into Lua:
|
|
|
|
|
|
|
|
```lua
|
|
|
|
topPeer={_='topPeer', peer=Peer, rating=double}
|
|
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|