Skip to main content

messages.deleteExportedChatInvite

Delete a chat invite

func (c *Client) MessagesDeleteExportedChatInvite(ctx context.Context, request *MessagesDeleteExportedChatInviteRequest) (bool, error)

Calling this method

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

res, err := api.MessagesDeleteExportedChatInvite(ctx, &tg.MessagesDeleteExportedChatInviteRequest{
// see Parameters
})
if err != nil {
return err
}
_ = res // bool
return nil
})

Parameters

NameTypeRequiredDescription
PeerInputPeerClassyesPeer
LinkstringyesInvite link

Returns

bool

Possible errors

CodeTypeDescription
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400INVITE_HASH_EXPIREDThe invite link has expired.
400INVITE_REVOKED_MISSINGThe specified invite link was already revoked or is invalid.
400PEER_ID_INVALIDThe provided peer id is invalid.

References