phone.joinGroupCallPresentation
Start screen sharing in a group call.
func (c *Client) PhoneJoinGroupCallPresentation(ctx context.Context, request *PhoneJoinGroupCallPresentationRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PhoneJoinGroupCallPresentation(ctx, &tg.PhoneJoinGroupCallPresentationRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Call | InputGroupCallClass | yes | The group call |
Params | DataJSON | yes | WebRTC parameters |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | GROUPCALL_INVALID | The specified group call is invalid. |
| 403 | PARTICIPANT_JOIN_MISSING | Trying to enable a presentation, when the user hasn't joined the Video Chat with phone.joinGroupCall. |
References
- Official documentation
- Generated Go reference
- TL definition:
phone.joinGroupCallPresentation#cbea6bc4