Layer 227
PhoneToggleGroupCallSettings
Change group call settings. Each setting supports different group call types, see here for more info.
method
Users
phone.toggleGroupCallSettings#974392f2 flags:# reset_invite_hash:flags.1?true call:InputGroupCall join_muted:flags.0?Bool messages_enabled:flags.2?Bool send_paid_messages_stars:flags.3?long = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| ResetInviteHash | flags .1? true | Invalidate existing invite links for video chats, livestreams and conferences |
| Call | InputGroupCall | Group call whose settings should be changed |
| JoinMuted | flags .0? Bool | Whether users joining a non-RTMP video chat/livestream should be muted by default |
| MessagesEnabled | flags .2? Bool | Enable or disable the in-call message overlay in video chats/livestreams, conferences and live stories, including in RTMP mode |
| SendPaidMessagesStars | flags .3? long | Set the minimum Telegram Stars donation required from users other than the live story owner for each comment; the owner may always comment without donating, and 0 allows free comments for everyone |
Returns
UpdatesGogram Example
// PhoneToggleGroupCallSettings - positional arguments result, err := client.PhoneToggleGroupCallSettings(nil, &tg.InputGroupCall{}, nil, nil, nil) if err != nil { // handle error } // result is *tg.Updates
Possible Errors
| Code | Type | Description |
|---|---|---|
| 403 | GROUPCALL_CHANGE_FORBIDDEN | You cannot change this group call setting. |
| 403 | GROUPCALL_FORBIDDEN | The group call has already ended. |
| 400 | GROUPCALL_INVALID | The specified group call is invalid. |
| 400 | GROUPCALL_NOT_MODIFIED | Group call settings weren't modified. |