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

89 lines
1.8 KiB
Markdown
Raw Normal View History

2020-10-15 18:42:54 +02:00
---
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.
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it).
## 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