mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 21:14:43 +01:00
fix
This commit is contained in:
parent
9ec2f619b7
commit
51f37eb527
@ -137,7 +137,7 @@ final class StoriesEventHandler extends SimpleEventHandler
|
|||||||
usort($stories, static fn ($a, $b) => $a['date'] <=> $b['date']);
|
usort($stories, static fn ($a, $b) => $a['date'] <=> $b['date']);
|
||||||
|
|
||||||
$message = $message->reply("Total stories: ".count($stories));
|
$message = $message->reply("Total stories: ".count($stories));
|
||||||
foreach (array_chunk($stories, 50) as $sub) {
|
foreach (array_chunk($stories, 10) as $sub) {
|
||||||
$result = '';
|
$result = '';
|
||||||
foreach ($sub as $story) {
|
foreach ($sub as $story) {
|
||||||
$cur = "- ID {$story['id']}, posted ".date(DATE_RFC850, $story['date']);
|
$cur = "- ID {$story['id']}, posted ".date(DATE_RFC850, $story['date']);
|
||||||
|
Loading…
Reference in New Issue
Block a user