telegram api method · layer 229 · #bdca2f75
messages.editExportedChatInvite
Edit an exported chat invite
definition
messages.editExportedChatInvite#bdca2f75 flags:# revoked:flags.2?true peer:InputPeer link:string expire_date:flags.0?int usage_limit:flags.1?int request_needed:flags.3?Bool title:flags.4?string = messages.ExportedChatInvite;
parameters
| name | type | description |
|---|---|---|
flags | # | Flags, see TL conditional fields |
revoked | true | Whether to revoke the chat invite |
peer | InputPeer | Chat |
link | string | Invite link |
expire_date | int | New expiration date |
usage_limit | int | Maximum number of users that can join using this link |
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 |
returns
errors (10)
| code | error | description |
|---|---|---|
| 400 | BUSINESS_CONNECTION_NOT_ALLOWED | This method was invoked over a business connection using invokeWithBusinessConnection, but either (1) we're a user, and users cannot invoke methods over a business connection; (2) we're a bot, but business mode was disabled in @botfather or (3); we're a bot, but this method cannot be invoked over a business connection. |
| 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. |
| 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. |
| 401 | AUTH_KEY_UNREGISTERED | The specified authorization key is not registered in the system (for example, a PFS temporary key has expired). |
| 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. |
history
present in layers 124–229 · constructor id changed 1×
| id | layers |
|---|---|
| #02e4ffbe | 124–133 |
| #bdca2f75 | 134–229 |