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
| Name | Type | Required | Description |
|---|---|---|---|
Peer | InputPeerClass | yes | Chat |
AdminID | InputUserClass | yes | ID of the admin that originally generated the revoked chat invites |
Returns
bool
Possible errors
| Code | Type | Description |
|---|---|---|
| 400 | ADMIN_ID_INVALID | The specified admin ID is invalid. |
| 400 | PEER_ID_INVALID | The provided peer id is invalid. |
References
- Official documentation
- Generated Go reference
- TL definition:
messages.deleteRevokedExportedChatInvites#56987bd5