Layer 220
PhoneInviteToGroupCall
Invite a set of users to a group call.
method
Users
phone.inviteToGroupCall#7b393160 call:InputGroupCall users:Vector<InputUser> = Updates;
Parameters
| Name | Type | Description |
|---|---|---|
| Call | InputGroupCall | The group call |
| Users | Vector<InputUser> | The users to invite. |
Returns
UpdatesPossible Errors
| Code | Type | Description |
|---|---|---|
| 403 | CHAT_TYPE_INVALID | The specified user type is invalid. |
| 403 | GROUPCALL_FORBIDDEN | The group call has already ended. |
| 400 | GROUPCALL_INVALID | The specified group call is invalid. |
| 400 | INVITE_FORBIDDEN_WITH_JOINAS | If the user has anonymously joined a group call as a channel, they can't invite other users to the group call because that would cause deanonymization, because the invite would be sent using the original user ID, not the anonymized channel ID. |
| 400 | USER_ALREADY_INVITED | You have already invited this user. |
| 403 | USER_NOT_PARTICIPANT | You're not a member of this supergroup/channel. |
Gogram Example
// PhoneInviteToGroupCall - positional arguments result, err := client.PhoneInviteToGroupCall(&tg.InputGroupCall{}, []tg.InputUser{&tg.InputUserSelf{}}) if err != nil { // handle error } // result is *tg.Updates