Skip to main content

phone.saveDefaultGroupCallJoinAs

Set the default peer that will be used to join a group call in a specific dialog.

func (c *Client) PhoneSaveDefaultGroupCallJoinAs(ctx context.Context, request *PhoneSaveDefaultGroupCallJoinAsRequest) (bool, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.PhoneSaveDefaultGroupCallJoinAs(ctx, &tg.PhoneSaveDefaultGroupCallJoinAsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
PeerInputPeerClassyesThe dialog
JoinAsInputPeerClassyesThe default peer that will be used to join group calls in this dialog, presenting yourself as a specific user/channel.

Returns

bool

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.

References