Skip to main content

phone.exportGroupCallInvite

Get an invite link for a group call or livestream

func (c *Client) PhoneExportGroupCallInvite(ctx context.Context, request *PhoneExportGroupCallInviteRequest) (*PhoneExportedGroupCallInvite, error)

Calling this method

client.Run(ctx, func(ctx context.Context) error {
api := client.API()

res, err := api.PhoneExportGroupCallInvite(ctx, &tg.PhoneExportGroupCallInviteRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // *PhoneExportedGroupCallInvite
return nil
})

Parameters

NameTypeRequiredDescription
CanSelfUnmuteboolFor livestreams or muted group chats, if set, users that join using this link will be able to speak without explicitly requesting permission by (for example by raising their hand).
CallInputGroupCallClassyesThe group call

Returns

*PhoneExportedGroupCallInvite

Possible errors

CodeTypeDescription
400GROUPCALL_INVALIDThe specified group call is invalid.
403PUBLIC_CHANNEL_MISSINGYou can only export group call invite links for public chats or channels.

References