Skip to main content

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

NameTypeRequiredDescription
CallInputGroupCallClassyesThe group call
Users[]InputUserClassyesThe users to invite.

Returns

UpdatesClass

Possible errors

CodeTypeDescription
403CHAT_TYPE_INVALIDThe specified user type is invalid.
403GROUPCALL_FORBIDDENThe group call has already ended.
400GROUPCALL_INVALIDThe specified group call is invalid.
400INVITE_FORBIDDEN_WITH_JOINASIf 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.
400USER_ALREADY_INVITEDYou have already invited this user.
403USER_NOT_PARTICIPANTYou're not a member of this supergroup/channel.

References