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
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | The dialog |
JoinAs | InputPeerClass | yes | 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. |
References
- Official documentation
- Generated Go reference
- TL definition:
phone.saveDefaultGroupCallJoinAs#575e1f8c