Method: contacts.blockFromReplies
Stop getting notifications about discussion 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 | Optional |
Return type: Updates
Can userbots use this method: YES
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();
$Updates = $MadelineProto->contacts->blockFromReplies(delete_message: $Bool, delete_history: $Bool, report_spam: $Bool, msg_id: $int, );