messages.editExportedChatInvite
Edit an exported chat invite
| 名前 | 型 | 必須 | 説明 |
|---|---|---|---|
revoked | true | いいえ | Whether to revoke the chat invite |
peer | InputPeer | はい | Chat |
link | string | はい | 招待リンク |
expire_date | int | いいえ | New expiration date |
usage_limit | int | いいえ | このリンクを使用して参加できるユーザーの最大数 |
request_needed | Bool | いいえ | Whether admin confirmation is required before admitting each separate user into the chat |
title | string | いいえ | Description of the invite link, visible only to administrators |
レスポンス
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.