messages.editExportedChatInvite #

Edit an exported chat invite

Layer 223

messages.exportedChatInvite#1871be50 invite:ExportedChatInvite users:Vector<User> = messages.ExportedChatInvite;
messages.exportedChatInviteReplaced#222600ef invite:ExportedChatInvite new_invite:ExportedChatInvite users:Vector<User> = messages.ExportedChatInvite;
---functions---
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 #

NameTypeDescription
flags#Flags, see TL conditional fields
revokedflags.2?trueWhether to revoke the chat invite
peerInputPeerChat
linkstringInvite link
expire_dateflags.0?intNew expiration date
usage_limitflags.1?intMaximum number of users that can join using this link
request_neededflags.3?BoolWhether admin confirmation is required before admitting each separate user into the chat
titleflags.4?stringDescription of the invite link, visible only to administrators

Result #

messages.ExportedChatInvite

Both users and bots can use this method #

Possible errors #

CodeTypeDescription
400CHANNEL_PRIVATEYou haven't joined this channel/supergroup.
400CHAT_ADMIN_REQUIREDYou must be an admin in this chat to do this.
400CHAT_INVITE_PERMANENTYou can't set an expiration date on permanent invite links.
403CHAT_WRITE_FORBIDDENYou can't write in this chat.
403EDIT_BOT_INVITE_FORBIDDENNormal users can't edit invites that were created by bots.
400INVITE_HASH_EXPIREDThe invite link has expired.
400PEER_ID_INVALIDThe provided peer id is invalid.
400USAGE_LIMIT_INVALIDThe specified usage limit is invalid.