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.joinGroupCallPresentation"
|
|
description: "Start screen sharing in a call"
|
|
grand_parent: "Telegram RPC API"
|
|
parent: "Methods"
|
|
image: https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png
|
|
redirect_from: /API_docs/methods/phone_joinGroupCallPresentation.html
|
|
---
|
|
# Method: phone.joinGroupCallPresentation
|
|
[Back to methods index](index.html)
|
|
|
|
|
|
|
|
Start screen sharing in a call
|
|
|
|
### Parameters:
|
|
|
|
| Name | Type | Description | Required |
|
|
|----------|---------------|-------------|----------|
|
|
|call|[InputGroupCall](/API_docs/types/InputGroupCall.html) | The group call | Yes|
|
|
|params|[DataJSON](/API_docs/types/DataJSON.html) | WebRTC parameters | Yes|
|
|
|
|
|
|
### Return type: [Updates](/API_docs/types/Updates.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();
|
|
|
|
$Updates = $MadelineProto->phone->joinGroupCallPresentation(call: $InputGroupCall, params: $DataJSON, );
|
|
```
|
|
|