MadelineProtoDocs/docs/API_docs/methods/contacts.blockFromReplies.md
2024-05-01 14:53:46 +02:00

1.8 KiB

title description grand_parent parent image redirect_from
contacts.blockFromReplies Stop getting notifications about [discussion replies](https://core.telegram.org/api/discussion) of a certain user in `@replies` Telegram RPC API Methods https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png /API_docs/methods/contacts_blockFromReplies.html

Method: contacts.blockFromReplies

Back to methods index

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 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, );