phone.joinGroupCall
Join a group call, see here » for the full flow.
func (c *Client) PhoneJoinGroupCall(ctx context.Context, request *PhoneJoinGroupCallRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PhoneJoinGroupCall(ctx, &tg.PhoneJoinGroupCallRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Muted | bool | — | If set, the user will be muted by default upon joining. |
VideoStopped | bool | — | If set, the user's video will be disabled by default upon joining. |
Call | InputGroupCallClass | yes | The group call |
JoinAs | InputPeerClass | yes | Join the group call, presenting yourself as the specified user/channel |
InviteHash | string | — | The invitation hash from the invite link », if provided allows speaking in a livestream or muted group chat. |
PublicKey | bin.Int256 | — | For conference calls, your public key. |
Block | []byte | — | The block containing an appropriate e2e.chain.changeSetGroupState event. |
Params | DataJSON | yes | WebRTC parameters |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | CHAT_ADMIN_REQUIRED | You must be an admin in this chat to do this. |
| 403 | CHAT_WRITE_FORBIDDEN | You can't write in this chat. |
| 400 | DATA_JSON_INVALID | The provided JSON data is invalid. |
| 500 | GROUPCALL_ADD_PARTICIPANTS_FAILED | |
| 403 | GROUPCALL_FORBIDDEN | The group call has already ended. |
| 400 | GROUPCALL_INVALID | The specified group call is invalid. |
| 400 | GROUPCALL_SSRC_DUPLICATE_MUCH | The app needs to retry joining the group call with a new SSRC value. |
| 400 | JOIN_AS_PEER_INVALID | The specified peer cannot be used to join a group call. |
References
- Official documentation
- Generated Go reference
- TL definition:
phone.joinGroupCall#8fb53057