90 lines
1.8 KiB
Markdown
90 lines
1.8 KiB
Markdown
---
|
|
title: danog\MadelineProto\MTProtoTools\CallHandler: Manages method and object calls.
|
|
description:
|
|
|
|
---
|
|
# `danog\MadelineProto\MTProtoTools\CallHandler`
|
|
[Back to index](../../../index.md)
|
|
|
|
> Author: Daniil Gentili <daniil@daniil.it>
|
|
|
|
|
|
Manages method and object calls.
|
|
|
|
|
|
|
|
|
|
## Method list:
|
|
* `methodCall(string $method, array|\Generator $args, array $aargs): mixed`
|
|
* `methodCallAsyncRead(string $method, array|\Generator $args, array $aargs): \Generator`
|
|
* `methodCallAsyncWrite(string $method, array|\Generator $args, array $aargs): \Generator`
|
|
|
|
## Methods:
|
|
### `methodCall(string $method, array|\Generator $args, array $aargs): mixed`
|
|
|
|
Synchronous wrapper for methodCall.
|
|
|
|
|
|
Parameters:
|
|
* `$method`: `string` Method name
|
|
* `$args`: `array|\Generator` Arguments
|
|
Full type:
|
|
```
|
|
array|\Generator<mixed, mixed, mixed, array>
|
|
```
|
|
* `$aargs`: `array` Additional arguments
|
|
|
|
|
|
#### See also:
|
|
* `\Generator`
|
|
|
|
|
|
|
|
|
|
### `methodCallAsyncRead(string $method, array|\Generator $args, array $aargs): \Generator`
|
|
|
|
Call method and wait asynchronously for response.
|
|
If the $aargs['noResponse'] is true, will not wait for a response.
|
|
|
|
Parameters:
|
|
* `$method`: `string` Method name
|
|
* `$args`: `array|\Generator` Arguments
|
|
Full type:
|
|
```
|
|
array|\Generator<mixed, mixed, mixed, array>
|
|
```
|
|
* `$aargs`: `array` Additional arguments
|
|
|
|
|
|
#### See also:
|
|
* `\Generator`
|
|
|
|
|
|
|
|
|
|
### `methodCallAsyncWrite(string $method, array|\Generator $args, array $aargs): \Generator`
|
|
|
|
Call method and make sure it is asynchronously sent.
|
|
|
|
|
|
Parameters:
|
|
* `$method`: `string` Method name
|
|
* `$args`: `array|\Generator` Arguments
|
|
Full type:
|
|
```
|
|
array|\Generator<mixed, mixed, mixed, array>
|
|
```
|
|
* `$aargs`: `array` Additional arguments
|
|
|
|
|
|
#### See also:
|
|
* `\Generator`
|
|
|
|
|
|
|
|
|
|
## Properties
|
|
* `$settings`: `\Settings` Settings
|
|
---
|
|
Generated by [danog/phpdoc](https://phpdoc.daniil.it)
|