Skip to content

Commit 80bed9e

Browse files
authored
Revise concurrency settings in README
Updated concurrency defaults and descriptions in README.
1 parent 619df02 commit 80bed9e

1 file changed

Lines changed: 12 additions & 10 deletions

File tree

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# BroadcastManager
22

33
**High-Performance Telegram Broadcast Manager** for [MadelineProto](https://docs.madelineproto.xyz/).
4-
Manage Telegram broadcasts efficiently: send text, media, albums, inline buttons, pin/unpin messages, delete broadcasts, edit broadcast, schedule broadcasts, run self-destruct deletion jobs, and track live progress.
4+
Manage Telegram broadcasts efficiently: send text, media, albums, inline buttons, pin/unpin messages, delete previous broadcasts, edit the last broadcast, schedule broadcasts, run self-destruct deletion jobs, and track live progress.
55

66
[![AGPL License](https://img.shields.io/badge/license-AGPL--3.0-blue.svg)](LICENSE)
77
[![Made with PHP](https://img.shields.io/badge/Made%20with-PHP-blue)](https://github.com/WizardLoop/BroadcastManager)
@@ -94,10 +94,12 @@ $progress = $manager->progress($broadcastId);
9494
Concurrency is clamped internally:
9595

9696
* Minimum: `1`
97-
* Maximum: `50`
98-
* Default: `20`
97+
* Maximum: `30`
98+
* Default: `10`
9999
* Recommended examples: `10`
100100

101+
Live status messages are updated at most once every `5` seconds and once again when the operation finishes.
102+
101103
---
102104

103105
## Message Payloads
@@ -578,7 +580,7 @@ public function broadcastWithProgress(
578580
array $messages,
579581
$chatId = null,
580582
bool $pin = false,
581-
int $concurrency = 20,
583+
int $concurrency = 10,
582584
?int $selfDestructHours = null
583585
): string;
584586

@@ -587,8 +589,8 @@ public function editLastBroadcastForAll(
587589
string $newText,
588590
$chatId = null,
589591
?array $buttons = null,
590-
?array $media = null,
591-
int $concurrency = 20,
592+
$media = null,
593+
int $concurrency = 10,
592594
string $parseMode = 'HTML',
593595
?string $broadcastId = null
594596
): string;
@@ -599,7 +601,7 @@ public function scheduleBroadcastForAll(
599601
int $scheduledAt,
600602
$chatId = null,
601603
bool $pin = false,
602-
int $concurrency = 20,
604+
int $concurrency = 10,
603605
?int $selfDestructHours = null
604606
): string;
605607

@@ -610,11 +612,11 @@ public function listScheduledBroadcasts(): array;
610612
public function deleteLastBroadcastForAll(
611613
array $allUsers,
612614
$chatId = null,
613-
int $concurrency = 20,
615+
int $concurrency = 10,
614616
?string $broadcastId = null
615617
): string;
616-
public function deleteAllBroadcastsForAll(array $allUsers, $chatId = null, int $concurrency = 20): string;
617-
public function unpinAllMessagesForAll(array $allUsers, $chatId = null, int $concurrency = 20): string;
618+
public function deleteAllBroadcastsForAll(array $allUsers, $chatId = null, int $concurrency = 10): string;
619+
public function unpinAllMessagesForAll(array $allUsers, $chatId = null, int $concurrency = 10): string;
618620

619621
public function runDueSelfDestructJobs(): array;
620622
public function cancelSelfDestructJob(string $jobId): bool;

0 commit comments

Comments
 (0)