Link Search Menu Expand Document

Method: messages.getMessageEditData

Back to methods index

Find out if a media message’s caption can be edited


peerUsername, chat ID, Update, Message or InputPeerPeer where the media was sentOptional
idintID of messageOptional

Return type: messages.MessageEditData

Can bots use this method: NO

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_MessageEditData = $MadelineProto->messages->getMessageEditData(peer: $InputPeer, id: $int, );