Layer 220
method Users
phone.saveDefaultGroupCallJoinAs#575e1f8c peer:InputPeer join_as:InputPeer = Bool;

Parameters

Name Type Description
Peer InputPeer The dialog
JoinAs InputPeer The default peer that will be used to join group calls in this dialog, presenting yourself as a specific user/channel.

Returns

Bool

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.

Gogram Example

// PhoneSaveDefaultGroupCallJoinAs - positional arguments
result, err := client.PhoneSaveDefaultGroupCallJoinAs(&tg.InputPeerUser{UserID: int64(123456789)}, &tg.InputPeerUser{UserID: int64(123456789)})
if err != nil {
    // handle error
}
// result is *tg.Bool