messages.editExportedChatInvite
Edit an exported chat invite
| Name | Type | Required | Description |
|---|---|---|---|
revoked | true | No | Whether to revoke the chat invite |
peer | InputPeer | Yes | Chat |
link | string | Yes | Invite link |
expire_date | int | No | New expiration date |
usage_limit | int | No | Maximum number of users that can join using this link |
request_needed | Bool | No | Whether admin confirmation is required before admitting each separate user into the chat |
title | string | No | Description of the invite link, visible only to administrators |
Replies
messages.ExportedChatInvite
MTProto RPC
- 400 · CHANNEL_PRIVATE — You haven't joined this channel/supergroup.
- 400 · CHAT_ADMIN_REQUIRED — You must be an admin in this chat to do this.
- 400 · CHAT_INVITE_PERMANENT — You can't set an expiration date on permanent invite links.
- 403 · CHAT_WRITE_FORBIDDEN — You can't write in this chat.
- 403 · EDIT_BOT_INVITE_FORBIDDEN — Normal users can't edit invites that were created by bots.
- 400 · INVITE_HASH_EXPIRED — The invite link has expired.
- 400 · PEER_ID_INVALID — The provided peer id is invalid.
- 400 · USAGE_LIMIT_INVALID — The specified usage limit is invalid.