Link Search Menu Expand Document

Method: contacts.blockFromReplies

Back to methods index

Stop getting notifications about thread replies of a certain user in @replies

Parameters:

NameTypeDescriptionRequired
delete_messageBoolWhether to delete the specified message as wellOptional
delete_historyBoolWhether to delete all @replies messages from this user as wellOptional
report_spamBoolWhether to also report this user for spamOptional
msg_idintID of the message in the @replies chatYes

Return type: Updates

Can bots use this method: NO

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

if (!file_exists('madeline.php')) {
    copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
}
include 'madeline.php';

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

// PHP 8+ syntax, use an array on PHP 7.
$Updates = $MadelineProto->contacts->blockFromReplies(delete_message: Bool, delete_history: Bool, report_spam: Bool, msg_id: int, );