mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 06:39:01 +01:00
Update
This commit is contained in:
parent
f0680e42f8
commit
45394fc238
@ -125,7 +125,7 @@ final class StoriesEventHandler extends SimpleEventHandler
|
||||
$stories = $this->userInstance->stories->getPeerStories(peer: $message->commandArgs[0])['stories']['stories'];
|
||||
$last = null;
|
||||
do {
|
||||
$res = $this->userInstance->stories->getPinnedStories(peer: $message->commandArgs[0], offset_id: $last)['stories']['stories'];
|
||||
$res = $this->userInstance->stories->getPinnedStories(peer: $message->commandArgs[0], offset_id: $last)['stories'];
|
||||
$last = $res ? end($res)['id'] : null;
|
||||
$stories = array_merge($res, $stories);
|
||||
} while ($last);
|
||||
|
Loading…
Reference in New Issue
Block a user