phone.inviteToGroupCall
Invite a set of users to a group call.
func (c *Client) PhoneInviteToGroupCall(ctx context.Context, request *PhoneInviteToGroupCallRequest) (UpdatesClass, error)
Calling this method
client.Run(ctx, func(ctx context.Context) error {
api := client.API()
res, err := api.PhoneInviteToGroupCall(ctx, &tg.PhoneInviteToGroupCallRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // UpdatesClass
return nil
})
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
Call | InputGroupCallClass | yes | The group call |
Users | []InputUserClass | yes | The users to invite. |
Returns
Possible 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. |
References
- Official documentation
- Generated Go reference
- TL definition:
phone.inviteToGroupCall#7b393160