Skip to content

Commit a6b58ee

Browse files
committed
Bump to layer 204
1 parent 5684fe2 commit a6b58ee

21 files changed

Lines changed: 385 additions & 200 deletions

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ To contribute to this project simply fork it, make all improvements, commit chan
44

55
If you have an issue, please *always* upload MadelineProto logs from when the error occurred to hastebin or similar websites.
66

7-
If you make breaking changes, make sure to increase the number returned by the getV function in MTProto.php.
7+
To bump the layer to the latest one, clone the repo (with all submodules) and run `composer build`.
88

99
Bye :)

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1263,10 +1263,18 @@ Some of MadelineProto's core components are also available as separate, standalo
12631263
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.finishPasskeyLogin.html" name="auth.finishPasskeyLogin">auth.finishPasskeyLogin</a>
12641264
* <a href="https://docs.madelineproto.xyz/API_docs/methods/auth.initPasskeyLogin.html" name="auth.initPasskeyLogin">auth.initPasskeyLogin</a>
12651265
* <a href="https://docs.madelineproto.xyz/PHP/danog/MadelineProto/API.html#base64urlDecode" name="base64urlDecode">base64URL decode: base64urlDecode</a>
1266+
* <a href="https://docs.madelineproto.xyz/API_docs/methods/bots.checkUsername.html" name="bots.checkUsername">bots.checkUsername</a>
1267+
* <a href="https://docs.madelineproto.xyz/API_docs/methods/bots.createBot.html" name="bots.createBot">bots.createBot</a>
1268+
* <a href="https://docs.madelineproto.xyz/API_docs/methods/bots.exportBotToken.html" name="bots.exportBotToken">bots.exportBotToken</a>
1269+
* <a href="https://docs.madelineproto.xyz/API_docs/methods/bots.getRequestedWebViewButton.html" name="bots.getRequestedWebViewButton">bots.getRequestedWebViewButton</a>
1270+
* <a href="https://docs.madelineproto.xyz/API_docs/methods/bots.requestWebViewButton.html" name="bots.requestWebViewButton">bots.requestWebViewButton</a>
12661271
* <a href="https://docs.madelineproto.xyz/API_docs/methods/contacts.updateContactNote.html" name="contacts.updateContactNote">contacts.updateContactNote</a>
1272+
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.addPollAnswer.html" name="messages.addPollAnswer">messages.addPollAnswer</a>
12671273
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.checkUrlAuthMatchCode.html" name="messages.checkUrlAuthMatchCode">messages.checkUrlAuthMatchCode</a>
1274+
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.composeMessageWithAI.html" name="messages.composeMessageWithAI">messages.composeMessageWithAI</a>
12681275
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.createForumTopic.html" name="messages.createForumTopic">messages.createForumTopic</a>
12691276
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.declineUrlAuth.html" name="messages.declineUrlAuth">messages.declineUrlAuth</a>
1277+
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.deletePollAnswer.html" name="messages.deletePollAnswer">messages.deletePollAnswer</a>
12701278
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.deleteTopicHistory.html" name="messages.deleteTopicHistory">messages.deleteTopicHistory</a>
12711279
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.editChatCreator.html" name="messages.editChatCreator">messages.editChatCreator</a>
12721280
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.editChatParticipantRank.html" name="messages.editChatParticipantRank">messages.editChatParticipantRank</a>
@@ -1275,7 +1283,11 @@ Some of MadelineProto's core components are also available as separate, standalo
12751283
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getForumTopics.html" name="messages.getForumTopics">messages.getForumTopics</a>
12761284
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getForumTopicsByID.html" name="messages.getForumTopicsByID">messages.getForumTopicsByID</a>
12771285
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getFutureChatCreatorAfterLeave.html" name="messages.getFutureChatCreatorAfterLeave">messages.getFutureChatCreatorAfterLeave</a>
1286+
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.getUnreadPollVotes.html" name="messages.getUnreadPollVotes">messages.getUnreadPollVotes</a>
1287+
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.readPollVotes.html" name="messages.readPollVotes">messages.readPollVotes</a>
12781288
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.reorderPinnedForumTopics.html" name="messages.reorderPinnedForumTopics">messages.reorderPinnedForumTopics</a>
1289+
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.reportMusicListen.html" name="messages.reportMusicListen">messages.reportMusicListen</a>
1290+
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.reportReadMetrics.html" name="messages.reportReadMetrics">messages.reportReadMetrics</a>
12791291
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.summarizeText.html" name="messages.summarizeText">messages.summarizeText</a>
12801292
* <a href="https://docs.madelineproto.xyz/API_docs/methods/messages.updatePinnedForumTopic.html" name="messages.updatePinnedForumTopic">messages.updatePinnedForumTopic</a>
12811293
* <a href="https://docs.madelineproto.xyz/PHP/danog/MadelineProto/API.html#rleDecode" name="rleDecode">null-byte RLE decode: rleDecode</a>

docs

Submodule docs updated 76 files

src/Magic.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -252,14 +252,15 @@ public static function start(bool $light): void
252252
self::$isIpcWorker = \defined('MADELINE_WORKER_TYPE') ? MADELINE_WORKER_TYPE === 'madeline-ipc' : false;
253253
// Important, obtain root relative to caller script
254254
$backtrace = debug_backtrace(0);
255-
255+
256256
$last_entry = end($backtrace);
257257
$_cwd = '/tmp';
258-
if (array_key_exists('file', $last_entry))
259-
$_cwd = \dirname($last_entry['file']);
260-
else {
261-
if (preg_match('/^\{closure\:(.+?)\:/ui', $last_entry['function'], $m))
262-
$_cwd = \dirname($m[1]);
258+
if (\array_key_exists('file', $last_entry)) {
259+
$_cwd = \dirname($last_entry['file']);
260+
} else {
261+
if (preg_match('/^\{closure\:(.+?)\:/ui', $last_entry['function'], $m)) {
262+
$_cwd = \dirname($m[1]);
263+
}
263264
}
264265

265266
self::$script_cwd = self::$cwd = $_cwd;

0 commit comments

Comments
 (0)