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
| Name | Type | Required | Description |
|---|---|---|---|
CanSelfUnmute | bool | — | For 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). |
Call | InputGroupCallClass | yes | The group call |
Returns
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | GROUPCALL_INVALID | The specified group call is invalid. |
| 403 | PUBLIC_CHANNEL_MISSING | You can only export group call invite links for public chats or channels. |
References
- Official documentation
- Generated Go reference
- TL definition:
phone.exportGroupCallInvite#e6aa647f