Edit an exported chat invite

messages.exportedChatInvite#1871be50 invite:ExportedChatInvite users:Vector<User> = messages.ExportedChatInvite;
messages.exportedChatInviteReplaced#222600ef invite:ExportedChatInvite new_invite:ExportedChatInvite users:Vector<User> = messages.ExportedChatInvite;
messages.editExportedChatInvite#2e4ffbe flags:# revoked:flags.2?true peer:InputPeer link:string expire_date:flags.0?int usage_limit:flags.1?int = messages.ExportedChatInvite;


Name Type Description
flags # Flags, see TL conditional fields
revoked flags.2?true Whether to revoke the chat invite
peer InputPeer Chat
link string Invite link
expire_date flags.0?int New expiration date
usage_limit flags.1?int Maximum number of users that can join using this link



Possible errors

Code Type Description
400 PEER_ID_INVALID The provided peer id is invalid.

Bots can use this method