mirror of
https://github.com/danog/MadelineProtoDocs.git
synced 2024-12-02 09:38:28 +01:00
44 lines
1.2 KiB
Markdown
44 lines
1.2 KiB
Markdown
|
---
|
||
|
title: "phone.saveCallDebug"
|
||
|
description: "Send phone call debug data to server"
|
||
|
grand_parent: "Telegram RPC API"
|
||
|
parent: "Methods"
|
||
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
||
|
redirect_from: /API_docs/methods/phone_saveCallDebug.html
|
||
|
---
|
||
|
# Method: phone.saveCallDebug
|
||
|
[Back to methods index](index.html)
|
||
|
|
||
|
|
||
|
|
||
|
Send phone call debug data to server
|
||
|
|
||
|
### Parameters:
|
||
|
|
||
|
| Name | Type | Description | Required |
|
||
|
|----------|---------------|-------------|----------|
|
||
|
|peer|[InputPhoneCall](/API_docs/types/InputPhoneCall.html) | Phone call | Yes|
|
||
|
|debug|[DataJSON](/API_docs/types/DataJSON.html) | Debug statistics obtained from libtgvoip | Yes|
|
||
|
|
||
|
|
||
|
### Return type: [Bool](/API_docs/types/Bool.html)
|
||
|
|
||
|
### Can bots use this method: **NO**
|
||
|
|
||
|
|
||
|
### MadelineProto Example ([now async for huge speed and parallelism!](https://docs.madelineproto.xyz/docs/ASYNC.html)):
|
||
|
|
||
|
|
||
|
```php
|
||
|
if (!file_exists('madeline.php')) {
|
||
|
copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
|
||
|
}
|
||
|
include 'madeline.php';
|
||
|
|
||
|
$MadelineProto = new \danog\MadelineProto\API('session.madeline');
|
||
|
$MadelineProto->start();
|
||
|
|
||
|
$Bool = $MadelineProto->phone->saveCallDebug(peer: $InputPhoneCall, debug: $DataJSON, );
|
||
|
```
|
||
|
|