MadelineProtoDocs/docs/PHP/danog/MadelineProto/MTProtoTools/CombinedUpdatesState.md

81 lines
1.7 KiB
Markdown
Raw Normal View History

2020-10-15 18:42:54 +02:00
---
title: danog\MadelineProto\MTProtoTools\CombinedUpdatesState: Stores multiple update states.
description:
---
# `danog\MadelineProto\MTProtoTools\CombinedUpdatesState`
[Back to index](../../../index.md)
> Author: Daniil Gentili <daniil@daniil.it>
Stores multiple update states.
## Method list:
* `get(int $channel, array $init): \danog\MadelineProto\MTProtoTools\UpdatesState|\danog\MadelineProto\MTProtoTools\UpdatesState[]`
* `remove(int $channel): void`
* `has(int $channel): bool`
* `syncLoading(int $channel, bool|null $set): bool`
## Methods:
### `get(int $channel, array $init): \danog\MadelineProto\MTProtoTools\UpdatesState|\danog\MadelineProto\MTProtoTools\UpdatesState[]`
Get or update multiple parameters.
Parameters:
* `$channel`: `int` Channel to get info about (optional, if not provided returns the entire info array)
* `$init`: `array` Parameters to update
#### See also:
* `\danog\MadelineProto\MTProtoTools\UpdatesState`
2020-10-15 19:11:10 +02:00
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
2020-10-15 18:42:54 +02:00
### `remove(int $channel): void`
Remove update state.
Parameters:
* `$channel`: `int` Channel whose state should be removed
2020-10-15 19:11:10 +02:00
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
2020-10-15 18:42:54 +02:00
### `has(int $channel): bool`
Check if update state is present.
Parameters:
* `$channel`: `int` Channel ID
2020-10-15 19:11:10 +02:00
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
2020-10-15 18:42:54 +02:00
### `syncLoading(int $channel, bool|null $set): bool`
Are we currently busy?
Parameters:
* `$channel`: `int` Channel to get info about
* `$set`: `bool|null` Busy flag to set before returning
2020-10-15 19:11:10 +02:00
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
2020-10-15 18:42:54 +02:00
2020-10-15 19:11:10 +02:00
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)