phone.saveDefaultGroupCallJoinAs

Set the default peer used to join a video chat/livestream » associated with a specific dialog.

 Method schema is available as of layer 127. Switch »

Parameters

Name Type Description
peer InputPeer Basic group, supergroup or channel whose video chat/livestream default should be changed
join_as InputPeer Eligible peer to use by default when joining the dialog's video chats/livestreams, selected from phone.getGroupCallJoinAs

Result

Bool

Only users can use this method

Possible errors

Code Type Description
400 JOIN_AS_PEER_INVALID The specified peer cannot be used to join a group call.
400 PEER_ID_INVALID The provided peer id is invalid.

Related pages

phone.getGroupCallJoinAs

Get a list of peers that can be used to join a video chat or livestream », presenting yourself as a specific user/channel.

This method cannot be used for live stories or conference calls. To comment or react in a live story as another peer, use channels.getSendAs with for_live_stories set and pass one of the returned peers to phone.sendGroupCallMessage.send_as.

Group calls

How to start, join and manage group calls and video chats.