Set the default peer that will be used to join a group call in a specific dialog.
 Method schema is available as of layer 127. Switch ยป
Parameters
| Name | 
Type | 
Description | 
| peer | 
InputPeer | 
The dialog | 
| join_as | 
InputPeer | 
The default peer that will be used to join group calls in this dialog, presenting yourself as a specific user/channel. | 
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. |