Skip to content

Commit 06b81c0

Browse files
committed
Bump to layer 218
1 parent 72af31e commit 06b81c0

17 files changed

Lines changed: 262 additions & 140 deletions

CODE_OF_CONDUCT.md

Lines changed: 0 additions & 46 deletions
This file was deleted.

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1268,8 +1268,16 @@ Some of MadelineProto's core components are also available as separate, standalo
12681268
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.updatePinnedForumTopic.html" name="messages.updatePinnedForumTopic">messages.updatePinnedForumTopic</a>
12691269
* <a href="https://docs.madelineproto.xyz/PHP/danog/MadelineProto/API.html#rleDecode" name="rleDecode">null-byte RLE decode: rleDecode</a>
12701270
* <a href="https://docs.madelineproto.xyz/PHP/danog/MadelineProto/API.html#rleEncode" name="rleEncode">null-byte RLE encode: rleEncode</a>
1271+
* <a href="https://docs.madelineproto.xyz/API_docs/methods/payments.getStarGiftActiveAuctions.html" name="payments.getStarGiftActiveAuctions">payments.getStarGiftActiveAuctions</a>
1272+
* <a href="https://docs.madelineproto.xyz/API_docs/methods/payments.getStarGiftAuctionAcquiredGifts.html" name="payments.getStarGiftAuctionAcquiredGifts">payments.getStarGiftAuctionAcquiredGifts</a>
1273+
* <a href="https://docs.madelineproto.xyz/API_docs/methods/payments.getStarGiftAuctionState.html" name="payments.getStarGiftAuctionState">payments.getStarGiftAuctionState</a>
1274+
* <a href="https://docs.madelineproto.xyz/API_docs/methods/phone.deleteGroupCallMessages.html" name="phone.deleteGroupCallMessages">phone.deleteGroupCallMessages</a>
1275+
* <a href="https://docs.madelineproto.xyz/API_docs/methods/phone.deleteGroupCallParticipantMessages.html" name="phone.deleteGroupCallParticipantMessages">phone.deleteGroupCallParticipantMessages</a>
1276+
* <a href="https://docs.madelineproto.xyz/API_docs/methods/phone.getGroupCallStars.html" name="phone.getGroupCallStars">phone.getGroupCallStars</a>
1277+
* <a href="https://docs.madelineproto.xyz/API_docs/methods/phone.saveDefaultSendAs.html" name="phone.saveDefaultSendAs">phone.saveDefaultSendAs</a>
12711278
* <a href="https://docs.madelineproto.xyz/API_docs/methods/phone.sendGroupCallEncryptedMessage.html" name="phone.sendGroupCallEncryptedMessage">phone.sendGroupCallEncryptedMessage</a>
12721279
* <a href="https://docs.madelineproto.xyz/API_docs/methods/phone.sendGroupCallMessage.html" name="phone.sendGroupCallMessage">phone.sendGroupCallMessage</a>
1280+
* <a href="https://docs.madelineproto.xyz/API_docs/methods/stories.startLive.html" name="stories.startLive">stories.startLive</a>
12731281
* <a href="https://docs.madelineproto.xyz/API_docs/methods/users.suggestBirthday.html" name="users.suggestBirthday">users.suggestBirthday</a>
12741282
* [Contributing](https://docs.madelineproto.xyz/docs/CONTRIB.html) - You can contribute in various ways.
12751283
* [Translation](https://docs.madelineproto.xyz/docs/CONTRIB.html#translation)

docs

Submodule docs updated 87 files

src/API.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ final class API extends AbstractAPI
5151
*
5252
* @var string
5353
*/
54-
public const RELEASE = '8.6.1';
54+
public const RELEASE = '8.6.2';
5555
/**
5656
* We're not logged in.
5757
*

src/EventHandler.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,13 @@ final public function internalStart(APIWrapper $MadelineProto, array $pluginsPre
299299
if (\count($reflParams) === 0) {
300300
throw new AssertionError("Handler method $method must have at least one parameter!");
301301
}
302+
$t = $reflParams[0]->getType();
303+
if ($t === null) {
304+
throw new AssertionError("First parameter of handler method $method must have a typehint!");
305+
}
302306
$filter = new FiltersAnd(
303307
$filter,
304-
Filter::fromReflectionType($reflParams[0]->getType())
308+
Filter::fromReflectionType($t)
305309
);
306310
$filter = $filter->initialize($this);
307311
if (!$this instanceof SimpleEventHandler) {

src/Namespace/Account.php

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)