Skip to content

Commit

Permalink
Fix update handling in supergroups and channels after botched revert
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Dec 19, 2023
1 parent fea2604 commit a9bef74
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion docs
Submodule docs updated 448 files
2 changes: 1 addition & 1 deletion schemas
Submodule schemas updated 2 files
+0 −2,172 TL_telegram_v166.tl
+0 −2,205 TL_telegram_v167.tl
2 changes: 1 addition & 1 deletion src/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ final class API extends AbstractAPI
*
* @var string
*/
public const RELEASE = '8.0.0-beta185';
public const RELEASE = '8.0.0-beta186';
/**
* We're not logged in.
*
Expand Down
5 changes: 1 addition & 4 deletions src/Loop/Update/FeedLoop.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,10 +163,7 @@ public function feedSingle(array $update)
switch ($update['_']) {
case 'updateNewChannelMessage':
case 'updateEditChannelMessage':
$channelId = $update['message']['peer_id']['channel_id'] ?? self::GENERIC;
if (!$channelId) {
return false;
}
$channelId = DialogId::toSupergroupOrChannel($update['message']['peer_id']);
break;
case 'updateChannelWebPage':
case 'updateDeleteChannelMessages':
Expand Down

0 comments on commit a9bef74

Please sign in to comment.