Method: stories.getPinnedStories
Parameters:
Name | Type | Required |
---|---|---|
user_id | Username, chat ID, Update, Message or InputUser | Optional |
offset_id | int | Yes |
limit | int | Yes |
Return type: stories.Stories
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();
$stories_Stories = $MadelineProto->stories->getPinnedStories(user_id: $InputUser, offset_id: $int, limit: $int, );