Skip to content

Commit ab90700

Browse files
authored
Merge pull request #21 from WizardLoop/dev
v3.2.1 - Saved Media Support for Edit Last Broadcast
2 parents 1196355 + 92b2613 commit ab90700

2 files changed

Lines changed: 20 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,3 +212,22 @@ Added functionality to send initial status messages when gathering peers and sta
212212
- Workers not stopping after `done`.
213213
- Unsafe watchdog behavior that could duplicate sends.
214214
- Concurrent progress edits in `deleteAllBroadcastsForAll()`.
215+
216+
---
217+
218+
## [3.2.1] - 2026-06-13
219+
220+
### Added
221+
222+
- Added support for editing last broadcast messages with media loaded from `data/{adminId}/media.txt`.
223+
- Added compatibility for passing saved media values / `botApiFileId` into `editLastBroadcastForAll()`.
224+
225+
### Changed
226+
227+
- Relaxed the `$media` parameter in `BroadcastManager::editLastBroadcastForAll()` so it is no longer limited to `?array`.
228+
- Edit-last-broadcast flow can now reuse the same saved media format used by regular broadcast sending.
229+
230+
### Notes
231+
232+
- Passing `null` as media keeps the existing media unchanged.
233+
- Passing a saved media value attempts to update the edited message media/caption.

src/BroadcastManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public function editLastBroadcastForAll(
190190
string $newText,
191191
$chatId = null,
192192
?array $buttons = null,
193-
?array $media = null,
193+
$media = null,
194194
int $concurrency = self::DEFAULT_CONCURRENCY,
195195
string $parseMode = 'HTML',
196196
?string $broadcastId = null

0 commit comments

Comments
 (0)