Link Search Menu Expand Document

Method: messages.editExportedChatInvite

Back to methods index

Edit an exported chat invite


revokedBoolWhether to revoke the chat inviteOptional
peerUsername, chat ID, Update, Message or InputPeerChatOptional
linkstringInvite linkOptional
expire_dateintNew expiration dateOptional
usage_limitintMaximum number of users that can join using this linkOptional
request_neededBoolWhether admin confirmation is required before admitting each separate user into the chatOptional
titlestringDescription of the invite link, visible only to administratorsOptional

Return type: messages.ExportedChatInvite

Can bots use this method: YES

MadelineProto Example (now async for huge speed and parallelism!):

if (!file_exists('madeline.php')) {
    copy('', 'madeline.php');
include 'madeline.php';

$MadelineProto = new \danog\MadelineProto\API('session.madeline');

$messages_ExportedChatInvite = $MadelineProto->messages->editExportedChatInvite(revoked: $Bool, peer: $InputPeer, link: 'string', expire_date: $int, usage_limit: $int, request_needed: $Bool, title: 'string', );