phone.toggleGroupCallSettings
Change group call settings.
func (c *Client) PhoneToggleGroupCallSettings(ctx context.Context, request *PhoneToggleGroupCallSettingsRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PhoneToggleGroupCallSettings(ctx, &tg.PhoneToggleGroupCallSettingsRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
ResetInviteHash | bool | — | Invalidate existing invite links |
Call | InputGroupCallClass | yes | Group call |
JoinMuted | bool | — | Whether all users will that join this group call are muted by default upon joining the group call |
MessagesEnabled | bool | — | MessagesEnabled field of PhoneToggleGroupCallSettingsRequest. |
SendPaidMessagesStars | int64 | — | SendPaidMessagesStars field of PhoneToggleGroupCallSettingsRequest. |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | GROUPCALL_INVALID | The specified group call is invalid. |
| 400 | GROUPCALL_NOT_MODIFIED | Group call settings weren't modified. |
References
- Official documentation
- Generated Go reference
- TL definition:
phone.toggleGroupCallSettings#974392f2