telegram api method · layer 229 · #bdca2f75

messages.editExportedChatInvite

usable by users and bots

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

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

returns

messages.ExportedChatInvite

errors (10)

codeerrordescription
400BUSINESS_CONNECTION_NOT_ALLOWEDThis 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.
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.
400INVITE_HASH_EXPIREDThe invite link has expired.
400PEER_ID_INVALIDThe provided peer id is invalid.
400USAGE_LIMIT_INVALIDThe specified usage limit is invalid.
401AUTH_KEY_UNREGISTEREDThe specified authorization key is not registered in the system (for example, a PFS temporary key has expired).
403CHAT_WRITE_FORBIDDENYou can't write in this chat.
403EDIT_BOT_INVITE_FORBIDDENNormal users can't edit invites that were created by bots.

history

present in layers 124–229 · constructor id changed 1×

idlayers
#02e4ffbe124–133
#bdca2f75134–229