Skip to main content

messages.deleteRevokedExportedChatInvites

Delete all revoked chat invites

func (c *Client) MessagesDeleteRevokedExportedChatInvites(ctx context.Context, request *MessagesDeleteRevokedExportedChatInvitesRequest) (bool, error)

Calling this method

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

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

Parameters

NameTypeRequiredDescription
PeerInputPeerClassyesChat
AdminIDInputUserClassyesID of the admin that originally generated the revoked chat invites

Returns

bool

Possible errors

CodeTypeDescription
400ADMIN_ID_INVALIDThe specified admin ID is invalid.
400PEER_ID_INVALIDThe provided peer id is invalid.

References