From a42fe534b2c2e729bfe03e3ce78630781095b528 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 29 Aug 2023 22:33:39 +0200 Subject: [PATCH] Update docs --- README.md | 2 +- docs | 2 +- src/MTProtoTools/PeerHandler.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cf11c8fbc..6c5bcd989 100644 --- a/README.md +++ b/README.md @@ -316,7 +316,7 @@ Want to add your own open-source project to this list? [Click here!](https://doc * Check if the specified peer is a forum: isForum * Check the validity of a chat invite link and get basic info about it: messages.checkChatInvite * Check whether chat history exported from another chat app can be imported into a specific Telegram chat, click here for more info ยป: messages.checkHistoryImportPeer - * Check whether provided bot API ID is a channel or supergroup: isSupergroup + * Check whether provided bot API ID is a channel or supergroup: isSupergroupOrChannel * Check whether secret chat exists: hasSecretChat * Check whether the given short name is available: stickers.checkShortName * Check whether the group call Server Forwarding Unit is currently receiving the streams with the specified WebRTC source IDs. : phone.checkGroupCall diff --git a/docs b/docs index 7840caf79..f9479b5ed 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 7840caf793a5416453ef85f9f6799d0442b18dcb +Subproject commit f9479b5ed73a5140b98bb70bb48f3c8b3e551a38 diff --git a/src/MTProtoTools/PeerHandler.php b/src/MTProtoTools/PeerHandler.php index eca57b20d..d46affe47 100644 --- a/src/MTProtoTools/PeerHandler.php +++ b/src/MTProtoTools/PeerHandler.php @@ -679,7 +679,7 @@ trait PeerHandler } $id = $this->getIdInternal($id); Assert::notNull($id); - if (self::isSupergroup($id)) { + if (self::isSupergroupOrChannel($id)) { $supergroups []= $id; } elseif ($id < 0) { $chats []= $id;