34 lines
981 B
Markdown
34 lines
981 B
Markdown
|
---
|
||
|
title: request_secret_chat
|
||
|
description: request_secret_chat parameters, return type and example
|
||
|
---
|
||
|
## Method: request_secret_chat
|
||
|
|
||
|
|
||
|
### Parameters:
|
||
|
|
||
|
| Name | Type |
|
||
|
|----------|---------------|
|
||
|
|id| A username, a bot API chat id, a tg-cli chat id, a [User](API_docs/types/User.md), an [InputPeer](API_docs/types/InputPeer.md), an [InputUser](API_docs/types/InputUser.md), a [Peer](API_docs/types/Peer.md)|
|
||
|
|
||
|
### Return type: [\danog\MadelineProto\VoIP object](https://docs.madelineproto.xyz/API_docs/types/PhoneCall.html)
|
||
|
|
||
|
Returns the call
|
||
|
|
||
|
### Example:
|
||
|
|
||
|
|
||
|
```
|
||
|
$MadelineProto = new \danog\MadelineProto\API();
|
||
|
$MadelineProto->start();
|
||
|
|
||
|
|
||
|
if (!file_exists('input.raw')) {
|
||
|
echo 'Downloading example song'.PHP_EOL;
|
||
|
copy('https://github.com/danog/MadelineProto/raw/master/input.raw', 'input.raw');
|
||
|
}
|
||
|
$call = $MadelineProto->request_call('@danogentili');
|
||
|
$call->play('input.raw')->then('input.raw')->playOnHold(['input.raw'])->setOutputFile('output.raw');
|
||
|
```
|
||
|
|