50 lines
823 B
Markdown
50 lines
823 B
Markdown
---
|
|
title: danog\MadelineProto\MTProtoTools\MinDatabase: Manages min peers.
|
|
description:
|
|
|
|
---
|
|
# `danog\MadelineProto\MTProtoTools\MinDatabase`
|
|
[Back to index](../../../index.md)
|
|
|
|
> Author: Daniil Gentili <daniil@daniil.it>
|
|
|
|
|
|
Manages min peers.
|
|
|
|
|
|
|
|
|
|
## Constants
|
|
* `danog\MadelineProto\MTProtoTools\MinDatabase::SWITCH_CONSTRUCTORS`:
|
|
|
|
* `danog\MadelineProto\MTProtoTools\MinDatabase::CATCH_PEERS`:
|
|
|
|
* `danog\MadelineProto\MTProtoTools\MinDatabase::ORIGINS`:
|
|
|
|
|
|
## Method list:
|
|
* `hasPeer(float|int $id): \Amp\Promise`
|
|
|
|
## Methods:
|
|
### `hasPeer(float|int $id): \Amp\Promise`
|
|
|
|
Check if location info is available for peer.
|
|
|
|
|
|
Parameters:
|
|
* `$id`: `float|int` Peer ID
|
|
|
|
|
|
Fully typed return value:
|
|
```
|
|
\Amp\Promise<bool>
|
|
```
|
|
#### See also:
|
|
* `\Amp\Promise`
|
|
|
|
|
|
|
|
|
|
---
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|