phone.saveDefaultGroupCallJoinAs #

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

Layer 223

boolFalse#bc799737 = Bool;
boolTrue#997275b5 = Bool;
---functions---
phone.saveDefaultGroupCallJoinAs#575e1f8c peer:InputPeer join_as:InputPeer = Bool;

Parameters #

NameTypeDescription
peerInputPeerBasic group, supergroup or channel whose video chat/livestream default should be changed
join_asInputPeerEligible 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 #

CodeTypeDescription
400JOIN_AS_PEER_INVALIDThe specified peer cannot be used to join a group call.
400PEER_ID_INVALIDThe provided peer id is invalid.

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.