From ebe6a3f62fb93a903c7b203d0ab51cd09380bdb9 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Thu, 5 Sep 2024 19:18:25 +0200 Subject: [PATCH] Bump --- .../EventHandler/AbstractPrivateMessage.md | 2 + .../MadelineProto/EventHandler/Message.md | 2 + .../EventHandler/Message/ChannelMessage.md | 2 + .../EventHandler/Message/CommentReply.md | 2 + .../EventHandler/Message/GroupMessage.md | 2 + .../EventHandler/Message/PrivateMessage.md | 2 + .../EventHandler/Message/SecretMessage.md | 2 + docs/PHP/danog/MadelineProto/PsrLogger.md | 64 +++++++++---------- docs/docs/REQUIREMENTS.md | 2 +- docs/index.md | 2 +- 10 files changed, 48 insertions(+), 34 deletions(-) diff --git a/docs/PHP/danog/MadelineProto/EventHandler/AbstractPrivateMessage.md b/docs/PHP/danog/MadelineProto/EventHandler/AbstractPrivateMessage.md index 79e886bb01..dfc1024c20 100644 --- a/docs/PHP/danog/MadelineProto/EventHandler/AbstractPrivateMessage.md +++ b/docs/PHP/danog/MadelineProto/EventHandler/AbstractPrivateMessage.md @@ -30,6 +30,8 @@ Regex matches, if a filter multiple match regex is present * `$fromScheduled`: `bool` Whether this message is a *sent* scheduled message * `$viaBotId`: `?int` If the message was generated by an inline query, ID of the bot that generated it * `$editDate`: `?int` Last edit date of the message +* `$editHide`: `bool` Indicates if the post has a hidden edit, which is an edit that does not modify the actual message content. +Used to signify non-content related updates such as reactions. * `$keyboard`: `(danog\MadelineProto\EventHandler\Keyboard\InlineKeyboard | danog\MadelineProto\EventHandler\Keyboard\ReplyKeyboard | null)` Inline or reply keyboard. * `$imported`: `bool` Whether this message was [imported from a foreign chat service](https://core.telegram.org/api/import) * `$psaType`: `?string` For Public Service Announcement messages, the PSA type diff --git a/docs/PHP/danog/MadelineProto/EventHandler/Message.md b/docs/PHP/danog/MadelineProto/EventHandler/Message.md index d8ac20bc54..50b27577a9 100644 --- a/docs/PHP/danog/MadelineProto/EventHandler/Message.md +++ b/docs/PHP/danog/MadelineProto/EventHandler/Message.md @@ -30,6 +30,8 @@ Regex matches, if a filter multiple match regex is present * `$fromScheduled`: `bool` Whether this message is a *sent* scheduled message * `$viaBotId`: `?int` If the message was generated by an inline query, ID of the bot that generated it * `$editDate`: `?int` Last edit date of the message +* `$editHide`: `bool` Indicates if the post has a hidden edit, which is an edit that does not modify the actual message content. +Used to signify non-content related updates such as reactions. * `$keyboard`: `(danog\MadelineProto\EventHandler\Keyboard\InlineKeyboard | danog\MadelineProto\EventHandler\Keyboard\ReplyKeyboard | null)` Inline or reply keyboard. * `$imported`: `bool` Whether this message was [imported from a foreign chat service](https://core.telegram.org/api/import) * `$psaType`: `?string` For Public Service Announcement messages, the PSA type diff --git a/docs/PHP/danog/MadelineProto/EventHandler/Message/ChannelMessage.md b/docs/PHP/danog/MadelineProto/EventHandler/Message/ChannelMessage.md index 690b8b50fa..214248484b 100644 --- a/docs/PHP/danog/MadelineProto/EventHandler/Message/ChannelMessage.md +++ b/docs/PHP/danog/MadelineProto/EventHandler/Message/ChannelMessage.md @@ -30,6 +30,8 @@ Regex matches, if a filter multiple match regex is present * `$fromScheduled`: `bool` Whether this message is a *sent* scheduled message * `$viaBotId`: `?int` If the message was generated by an inline query, ID of the bot that generated it * `$editDate`: `?int` Last edit date of the message +* `$editHide`: `bool` Indicates if the post has a hidden edit, which is an edit that does not modify the actual message content. +Used to signify non-content related updates such as reactions. * `$keyboard`: `(danog\MadelineProto\EventHandler\Keyboard\InlineKeyboard | danog\MadelineProto\EventHandler\Keyboard\ReplyKeyboard | null)` Inline or reply keyboard. * `$imported`: `bool` Whether this message was [imported from a foreign chat service](https://core.telegram.org/api/import) * `$psaType`: `?string` For Public Service Announcement messages, the PSA type diff --git a/docs/PHP/danog/MadelineProto/EventHandler/Message/CommentReply.md b/docs/PHP/danog/MadelineProto/EventHandler/Message/CommentReply.md index 3852c5332b..c6b01fa6b7 100644 --- a/docs/PHP/danog/MadelineProto/EventHandler/Message/CommentReply.md +++ b/docs/PHP/danog/MadelineProto/EventHandler/Message/CommentReply.md @@ -30,6 +30,8 @@ Regex matches, if a filter multiple match regex is present * `$fromScheduled`: `bool` Whether this message is a *sent* scheduled message * `$viaBotId`: `?int` If the message was generated by an inline query, ID of the bot that generated it * `$editDate`: `?int` Last edit date of the message +* `$editHide`: `bool` Indicates if the post has a hidden edit, which is an edit that does not modify the actual message content. +Used to signify non-content related updates such as reactions. * `$keyboard`: `(danog\MadelineProto\EventHandler\Keyboard\InlineKeyboard | danog\MadelineProto\EventHandler\Keyboard\ReplyKeyboard | null)` Inline or reply keyboard. * `$imported`: `bool` Whether this message was [imported from a foreign chat service](https://core.telegram.org/api/import) * `$psaType`: `?string` For Public Service Announcement messages, the PSA type diff --git a/docs/PHP/danog/MadelineProto/EventHandler/Message/GroupMessage.md b/docs/PHP/danog/MadelineProto/EventHandler/Message/GroupMessage.md index d4e2ddc33e..660648f273 100644 --- a/docs/PHP/danog/MadelineProto/EventHandler/Message/GroupMessage.md +++ b/docs/PHP/danog/MadelineProto/EventHandler/Message/GroupMessage.md @@ -30,6 +30,8 @@ Regex matches, if a filter multiple match regex is present * `$fromScheduled`: `bool` Whether this message is a *sent* scheduled message * `$viaBotId`: `?int` If the message was generated by an inline query, ID of the bot that generated it * `$editDate`: `?int` Last edit date of the message +* `$editHide`: `bool` Indicates if the post has a hidden edit, which is an edit that does not modify the actual message content. +Used to signify non-content related updates such as reactions. * `$keyboard`: `(danog\MadelineProto\EventHandler\Keyboard\InlineKeyboard | danog\MadelineProto\EventHandler\Keyboard\ReplyKeyboard | null)` Inline or reply keyboard. * `$imported`: `bool` Whether this message was [imported from a foreign chat service](https://core.telegram.org/api/import) * `$psaType`: `?string` For Public Service Announcement messages, the PSA type diff --git a/docs/PHP/danog/MadelineProto/EventHandler/Message/PrivateMessage.md b/docs/PHP/danog/MadelineProto/EventHandler/Message/PrivateMessage.md index cf1f9dd0e2..e9443308ed 100644 --- a/docs/PHP/danog/MadelineProto/EventHandler/Message/PrivateMessage.md +++ b/docs/PHP/danog/MadelineProto/EventHandler/Message/PrivateMessage.md @@ -30,6 +30,8 @@ Regex matches, if a filter multiple match regex is present * `$fromScheduled`: `bool` Whether this message is a *sent* scheduled message * `$viaBotId`: `?int` If the message was generated by an inline query, ID of the bot that generated it * `$editDate`: `?int` Last edit date of the message +* `$editHide`: `bool` Indicates if the post has a hidden edit, which is an edit that does not modify the actual message content. +Used to signify non-content related updates such as reactions. * `$keyboard`: `(danog\MadelineProto\EventHandler\Keyboard\InlineKeyboard | danog\MadelineProto\EventHandler\Keyboard\ReplyKeyboard | null)` Inline or reply keyboard. * `$imported`: `bool` Whether this message was [imported from a foreign chat service](https://core.telegram.org/api/import) * `$psaType`: `?string` For Public Service Announcement messages, the PSA type diff --git a/docs/PHP/danog/MadelineProto/EventHandler/Message/SecretMessage.md b/docs/PHP/danog/MadelineProto/EventHandler/Message/SecretMessage.md index 79a69a2295..1b69746776 100644 --- a/docs/PHP/danog/MadelineProto/EventHandler/Message/SecretMessage.md +++ b/docs/PHP/danog/MadelineProto/EventHandler/Message/SecretMessage.md @@ -30,6 +30,8 @@ Regex matches, if a filter multiple match regex is present * `$fromScheduled`: `bool` Whether this message is a *sent* scheduled message * `$viaBotId`: `?int` If the message was generated by an inline query, ID of the bot that generated it * `$editDate`: `?int` Last edit date of the message +* `$editHide`: `bool` Indicates if the post has a hidden edit, which is an edit that does not modify the actual message content. +Used to signify non-content related updates such as reactions. * `$keyboard`: `(danog\MadelineProto\EventHandler\Keyboard\InlineKeyboard | danog\MadelineProto\EventHandler\Keyboard\ReplyKeyboard | null)` Inline or reply keyboard. * `$imported`: `bool` Whether this message was [imported from a foreign chat service](https://core.telegram.org/api/import) * `$psaType`: `?string` For Public Service Announcement messages, the PSA type diff --git a/docs/PHP/danog/MadelineProto/PsrLogger.md b/docs/PHP/danog/MadelineProto/PsrLogger.md index b9b7b4d605..4b31866b11 100644 --- a/docs/PHP/danog/MadelineProto/PsrLogger.md +++ b/docs/PHP/danog/MadelineProto/PsrLogger.md @@ -19,14 +19,14 @@ PSR-3 wrapper for MadelineProto's Logger. ## Method list: * [`__construct(\danog\MadelineProto\Logger $logger)`](#__construct) * [`log(mixed $level, mixed $message, array $context = []): void`](#log) -* [`emergency((string|\Stringable) $message, array $context = []): void`](#emergency) -* [`alert((string|\Stringable) $message, array $context = []): void`](#alert) -* [`critical((string|\Stringable) $message, array $context = []): void`](#critical) -* [`error((string|\Stringable) $message, array $context = []): void`](#error) -* [`warning((string|\Stringable) $message, array $context = []): void`](#warning) -* [`notice((string|\Stringable) $message, array $context = []): void`](#notice) -* [`info((string|\Stringable) $message, array $context = []): void`](#info) -* [`debug((string|\Stringable) $message, array $context = []): void`](#debug) +* [`emergency(Stringable|string $message, array $context = []): void`](#emergency) +* [`alert(Stringable|string $message, array $context = []): void`](#alert) +* [`critical(Stringable|string $message, array $context = []): void`](#critical) +* [`error(Stringable|string $message, array $context = []): void`](#error) +* [`warning(Stringable|string $message, array $context = []): void`](#warning) +* [`notice(Stringable|string $message, array $context = []): void`](#notice) +* [`info(Stringable|string $message, array $context = []): void`](#info) +* [`debug(Stringable|string $message, array $context = []): void`](#debug) ## Methods: ### `__construct(\danog\MadelineProto\Logger $logger)` @@ -58,24 +58,24 @@ Parameters: -### `emergency((string|\Stringable) $message, array $context = []): void` +### `emergency(Stringable|string $message, array $context = []): void` System is unusable. Parameters: -* `$message`: `(string|\Stringable)` +* `$message`: `Stringable|string` * `$context`: `array` #### See also: -* `\Stringable` +* `Stringable` -### `alert((string|\Stringable) $message, array $context = []): void` +### `alert(Stringable|string $message, array $context = []): void` Action must be taken immediately. @@ -85,17 +85,17 @@ trigger the SMS alerts and wake you up. Parameters: -* `$message`: `(string|\Stringable)` +* `$message`: `Stringable|string` * `$context`: `array` #### See also: -* `\Stringable` +* `Stringable` -### `critical((string|\Stringable) $message, array $context = []): void` +### `critical(Stringable|string $message, array $context = []): void` Critical conditions. @@ -104,17 +104,17 @@ Example: Application component unavailable, unexpected exception. Parameters: -* `$message`: `(string|\Stringable)` +* `$message`: `Stringable|string` * `$context`: `array` #### See also: -* `\Stringable` +* `Stringable` -### `error((string|\Stringable) $message, array $context = []): void` +### `error(Stringable|string $message, array $context = []): void` Runtime errors that do not require immediate action but should typically be logged and monitored. @@ -122,17 +122,17 @@ be logged and monitored. Parameters: -* `$message`: `(string|\Stringable)` +* `$message`: `Stringable|string` * `$context`: `array` #### See also: -* `\Stringable` +* `Stringable` -### `warning((string|\Stringable) $message, array $context = []): void` +### `warning(Stringable|string $message, array $context = []): void` Exceptional occurrences that are not errors. @@ -142,34 +142,34 @@ that are not necessarily wrong. Parameters: -* `$message`: `(string|\Stringable)` +* `$message`: `Stringable|string` * `$context`: `array` #### See also: -* `\Stringable` +* `Stringable` -### `notice((string|\Stringable) $message, array $context = []): void` +### `notice(Stringable|string $message, array $context = []): void` Normal but significant events. Parameters: -* `$message`: `(string|\Stringable)` +* `$message`: `Stringable|string` * `$context`: `array` #### See also: -* `\Stringable` +* `Stringable` -### `info((string|\Stringable) $message, array $context = []): void` +### `info(Stringable|string $message, array $context = []): void` Interesting events. @@ -178,29 +178,29 @@ Example: User logs in, SQL logs. Parameters: -* `$message`: `(string|\Stringable)` +* `$message`: `Stringable|string` * `$context`: `array` #### See also: -* `\Stringable` +* `Stringable` -### `debug((string|\Stringable) $message, array $context = []): void` +### `debug(Stringable|string $message, array $context = []): void` Detailed debug information. Parameters: -* `$message`: `(string|\Stringable)` +* `$message`: `Stringable|string` * `$context`: `array` #### See also: -* `\Stringable` +* `Stringable` diff --git a/docs/docs/REQUIREMENTS.md b/docs/docs/REQUIREMENTS.md index b7bdb2d455..6f9858a9f2 100644 --- a/docs/docs/REQUIREMENTS.md +++ b/docs/docs/REQUIREMENTS.md @@ -58,4 +58,4 @@ cd PrimeModule-ext && make -j$(nproc) && sudo make install The `max_map_count` sysctl configuration is required to avoid "Fiber stack allocate failed" and "Fiber stack protect failed" errors, since the PHP engine mmaps two memory regions per fiber, and the `soft/hard nofile` limits increase the maximum open FD limit, to allow opening many TCP sockets for improved upload and download performance, and to avoid errors. -Next section +Next section \ No newline at end of file diff --git a/docs/index.md b/docs/index.md index c5f2943e7b..f4d4be5e44 100644 --- a/docs/index.md +++ b/docs/index.md @@ -65,13 +65,13 @@ Tip: if you receive an error (or nothing), [send us](https://t.me/pwrtelegramgro The following open source projects were created using MadelineProto: you can directly install them, or explore the source code as direct examples on how to use MadelineProto's many features! * [magnaluna webradio](https://magna.madelineproto.xyz) - Multifeatured Telegram VoIP webradio -* [TelegramApiServer](https://github.com/xtrime-ru/TelegramApiServer) - Fast, simple, async php telegram api server: an HTTP JSON API for MadelineProto! * [`simpleBot.php`](https://github.com/danog/MadelineProto/blob/v8/examples/simpleBot.php) - Extremely basic example * [`tgstories_dl_bot.php`](https://github.com/danog/MadelineProto/blob/v8/examples/tgstories_dl_bot.php) - Source code of [@tgstories_dl_bot](https://t.me/tgstories_dl_bot) - Bot to download any Telegram Story! * [`downloadRenameBot.php`](https://github.com/danog/downloadRenameBot/blob/main/bot.php) - Download files by URL and rename Telegram files using this async parallelized bot! * [`secret_bot.php`](https://github.com/danog/MadelineProto/blob/v8/examples/secret_bot.php) - Secret chat bot! * [`pipesbot.php`](https://github.com/danog/pipesbot) - Creating inline bots and using other inline bots via a userbot! * [`bot.php`](https://github.com/danog/MadelineProto/blob/v8/examples/bot.php) - Examples for how to use filters, updates, get download links for any file, Telegram Stories and much more! +* [TelegramApiServer](https://github.com/xtrime-ru/TelegramApiServer) - Fast, simple, async php telegram api server: an HTTP JSON API for MadelineProto (for use in languages other than PHP, if using PHP use directly MadelineProto) Want to add your own open-source project to this list? [Click here!](https://docs.madelineproto.xyz/FOSS.html)