Method: stories.sendReaction
Parameters:
Name | Type | Required |
---|---|---|
add_to_recent | Bool | Optional |
user_id | Username, chat ID, Update, Message or InputUser | Optional |
story_id | int | Yes |
reaction | Reaction | Optional |
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->stories->sendReaction(add_to_recent: $Bool, user_id: $InputUser, story_id: $int, reaction: $Reaction, );