# Method: contacts.blockFromReplies

Back to methods index

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

# Parameters:

Name Type Description Required
delete_message Bool Whether to delete the specified message as well Optional
delete_history Bool Whether to delete all @replies messages from this user as well Optional
report_spam Bool Whether to also report this user for spam Optional
msg_id int ID of the message in the @replies chat Yes

# Return type: Updates

# Can bots use this method: YES

# 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();

$Updates = $MadelineProto->contacts->blockFromReplies(['delete_message' => Bool, 'delete_history' => Bool, 'report_spam' => Bool, 'msg_id' => int, ]);

Or, if you’re into Lua:

Updates = contacts.blockFromReplies({delete_message=Bool, delete_history=Bool, report_spam=Bool, msg_id=int, })
This site uses cookies, as described in the cookie policy. By clicking on "Accept" you consent to the use of cookies.