From 45394fc238ec8b7012d1c49feeb7856aae082809 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 23 Nov 2023 21:34:35 +0100 Subject: [PATCH] Update --- examples/tgstories_dl_bot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/tgstories_dl_bot.php b/examples/tgstories_dl_bot.php index 1dc5bcbfd..6f9f0422c 100644 --- a/examples/tgstories_dl_bot.php +++ b/examples/tgstories_dl_bot.php @@ -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);