Method: contacts.setBlocked
Parameters:
Name | Type | Required |
---|---|---|
my_stories_from | Bool | Optional |
id | Array of Username, chat ID, Update, Message or InputPeer | Yes |
limit | int | Yes |
Return type: Bool
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();
$Bool = $MadelineProto->contacts->setBlocked(my_stories_from: $Bool, id: [$InputPeer, $InputPeer], limit: $int, );