1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-23 06:51:23 +01:00

Update docs

This commit is contained in:
Daniil Gentili 2023-08-29 22:33:39 +02:00
parent 7a9718cd98
commit a42fe534b2
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
3 changed files with 3 additions and 3 deletions

View File

@ -316,7 +316,7 @@ Want to add your own open-source project to this list? [Click here!](https://doc
* <a href="https://docs.madelineproto.xyz/PHP/danog/MadelineProto/API.html#isforum-mixed-peer-bool" name="isForum">Check if the specified peer is a forum: isForum</a> * <a href="https://docs.madelineproto.xyz/PHP/danog/MadelineProto/API.html#isforum-mixed-peer-bool" name="isForum">Check if the specified peer is a forum: isForum</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.checkChatInvite.html" name="messages.checkChatInvite">Check the validity of a chat invite link and get basic info about it: messages.checkChatInvite</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.checkChatInvite.html" name="messages.checkChatInvite">Check the validity of a chat invite link and get basic info about it: messages.checkChatInvite</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.checkHistoryImportPeer.html" name="messages.checkHistoryImportPeer">Check whether chat history exported from another chat app can be imported into a specific Telegram chat, click here for more info »: messages.checkHistoryImportPeer</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.checkHistoryImportPeer.html" name="messages.checkHistoryImportPeer">Check whether chat history exported from another chat app can be imported into a specific Telegram chat, click here for more info »: messages.checkHistoryImportPeer</a>
* <a href="https://docs.madelineproto.xyz/PHP/danog/MadelineProto/API.html#issupergroup-int-id-bool" name="isSupergroup">Check whether provided bot API ID is a channel or supergroup: isSupergroup</a> * <a href="https://docs.madelineproto.xyz/PHP/danog/MadelineProto/API.html#issupergrouporchannel-int-id-bool" name="isSupergroupOrChannel">Check whether provided bot API ID is a channel or supergroup: isSupergroupOrChannel</a>
* <a href="https://docs.madelineproto.xyz/PHP/danog/MadelineProto/API.html#hassecretchat-array-int-chat-bool" name="hasSecretChat">Check whether secret chat exists: hasSecretChat</a> * <a href="https://docs.madelineproto.xyz/PHP/danog/MadelineProto/API.html#hassecretchat-array-int-chat-bool" name="hasSecretChat">Check whether secret chat exists: hasSecretChat</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/stickers.checkShortName.html" name="stickers.checkShortName">Check whether the given short name is available: stickers.checkShortName</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/stickers.checkShortName.html" name="stickers.checkShortName">Check whether the given short name is available: stickers.checkShortName</a>
* <a href="https://docs.madelineproto.xyz/API_docs/methods/phone.checkGroupCall.html" name="phone.checkGroupCall">Check whether the group call Server Forwarding Unit is currently receiving the streams with the specified WebRTC source IDs. : phone.checkGroupCall</a> * <a href="https://docs.madelineproto.xyz/API_docs/methods/phone.checkGroupCall.html" name="phone.checkGroupCall">Check whether the group call Server Forwarding Unit is currently receiving the streams with the specified WebRTC source IDs. : phone.checkGroupCall</a>

2
docs

@ -1 +1 @@
Subproject commit 7840caf793a5416453ef85f9f6799d0442b18dcb Subproject commit f9479b5ed73a5140b98bb70bb48f3c8b3e551a38

View File

@ -679,7 +679,7 @@ trait PeerHandler
} }
$id = $this->getIdInternal($id); $id = $this->getIdInternal($id);
Assert::notNull($id); Assert::notNull($id);
if (self::isSupergroup($id)) { if (self::isSupergroupOrChannel($id)) {
$supergroups []= $id; $supergroups []= $id;
} elseif ($id < 0) { } elseif ($id < 0) {
$chats []= $id; $chats []= $id;