diff --git a/docs/PHP/danog/MadelineProto/API.md b/docs/PHP/danog/MadelineProto/API.md
index 1fae961cf7..03cc36554c 100644
--- a/docs/PHP/danog/MadelineProto/API.md
+++ b/docs/PHP/danog/MadelineProto/API.md
@@ -108,7 +108,7 @@ Main API wrapper for MadelineProto.
* [`completePhoneLogin(string $code): array`](#completePhoneLogin)
* [`completeSignup(string $first_name, string $last_name = ''): array`](#completeSignup)
* [`discardCall(int $id, \danog\MadelineProto\VoIP\DiscardReason $reason = \danog\MadelineProto\VoIP\DiscardReason::HANGUP, int<1, 5> $rating = NULL, string $comment = NULL): void`](#discardCall)
-* [`discardSecretChat(int $chat): void`](#discardSecretChat)
+* [`discardSecretChat(int $chat, bool $deleteHistory = false): void`](#discardSecretChat)
* [`downloadServer(string $session): void`](#downloadServer)
* [`downloadToBrowser((array|string|\danog\MadelineProto\FileCallbackInterface|\danog\MadelineProto\EventHandler\Message) $messageMedia, (null|callable) $cb = NULL, (null|int) $size = NULL, (null|string) $name = NULL, (null|string) $mime = NULL, ?\Amp\Cancellation $cancellation = NULL): void`](#downloadToBrowser)
* [`downloadToCallable(mixed $messageMedia, (callable|\danog\MadelineProto\FileCallbackInterface) $callable, callable $cb = NULL, bool $seekable = true, int $offset = 0, int $end = -1, int $part_size = NULL, ?\Amp\Cancellation $cancellation = NULL): void`](#downloadToCallable)
@@ -736,7 +736,7 @@ Parameters:
-### `discardSecretChat(int $chat): void`
+### `discardSecretChat(int $chat, bool $deleteHistory = false): void`
Discard secret chat.
@@ -744,6 +744,7 @@ Discard secret chat.
Parameters:
* `$chat`: `int` Secret chat ID
+* `$deleteHistory`: `bool` If true, deletes the entire chat history for the other user as well.
diff --git a/docs/PHP/danog/MadelineProto/EventHandler.md b/docs/PHP/danog/MadelineProto/EventHandler.md
index d90aecd0f0..a707cc4aef 100644
--- a/docs/PHP/danog/MadelineProto/EventHandler.md
+++ b/docs/PHP/danog/MadelineProto/EventHandler.md
@@ -73,7 +73,7 @@ Event handler.
* [`completePhoneLogin(string $code): array`](#completePhoneLogin)
* [`completeSignup(string $first_name, string $last_name = ''): array`](#completeSignup)
* [`discardCall(int $id, \danog\MadelineProto\VoIP\DiscardReason $reason = \danog\MadelineProto\VoIP\DiscardReason::HANGUP, int<1, 5> $rating = NULL, string $comment = NULL): void`](#discardCall)
-* [`discardSecretChat(int $chat): void`](#discardSecretChat)
+* [`discardSecretChat(int $chat, bool $deleteHistory = false): void`](#discardSecretChat)
* [`downloadServer(string $session): void`](#downloadServer)
* [`downloadToBrowser((array|string|\danog\MadelineProto\FileCallbackInterface|\danog\MadelineProto\EventHandler\Message) $messageMedia, (null|callable) $cb = NULL, (null|int) $size = NULL, (null|string) $name = NULL, (null|string) $mime = NULL, ?\Amp\Cancellation $cancellation = NULL): void`](#downloadToBrowser)
* [`downloadToCallable(mixed $messageMedia, (callable|\danog\MadelineProto\FileCallbackInterface) $callable, callable $cb = NULL, bool $seekable = true, int $offset = 0, int $end = -1, int $part_size = NULL, ?\Amp\Cancellation $cancellation = NULL): void`](#downloadToCallable)
@@ -744,7 +744,7 @@ Parameters:
-### `discardSecretChat(int $chat): void`
+### `discardSecretChat(int $chat, bool $deleteHistory = false): void`
Discard secret chat.
@@ -752,6 +752,7 @@ Discard secret chat.
Parameters:
* `$chat`: `int` Secret chat ID
+* `$deleteHistory`: `bool` If true, deletes the entire chat history for the other user as well.
diff --git a/docs/PHP/danog/MadelineProto/EventHandler/Message/SecretMessage.md b/docs/PHP/danog/MadelineProto/EventHandler/Message/SecretMessage.md
index aabede7c7a..79a69a2295 100644
--- a/docs/PHP/danog/MadelineProto/EventHandler/Message/SecretMessage.md
+++ b/docs/PHP/danog/MadelineProto/EventHandler/Message/SecretMessage.md
@@ -58,6 +58,7 @@ All messages associated to the same album will have an identical grouped ID.
## Method list:
* [`getReply(string $class = 'danog\\MadelineProto\\EventHandler\\Message\\SecretMessage'): ?\danog\MadelineProto\EventHandler\Message\SecretMessage`](#getReply)
+* [`delete(boolean $revoke = true): void`](#delete)
* [`screenShot(): \danog\MadelineProto\EventHandler\Message\Service\DialogScreenshotTaken`](#screenShot)
* [`pin(bool $pmOneside = false, bool $silent = false): void`](#pin)
* [`unpin(bool $pmOneside = false, bool $silent = false): ?\danog\MadelineProto\EventHandler\Update`](#unpin)
@@ -75,7 +76,6 @@ All messages associated to the same album will have an identical grouped ID.
* [`forward((integer|string) $peer, list $id = [], bool $dropAuthor = false, bool $dropCaption = false, int $topicId = 1, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $score = false, (integer|null) $scheduleDate = NULL, (integer|string|null) $sendAs = NULL): non-empty-list<\danog\MadelineProto\EventHandler\Message>`](#forward)
* [`getHTML(bool $allowTelegramTags = false): string`](#getHTML)
* [`isReply(): bool`](#isReply)
-* [`delete(boolean $revoke = true): void`](#delete)
* [`reply(string $message, \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $noWebpage = false, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $updateStickersetsOrder = false, ?\Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message`](#reply)
* [`replyDocument((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null) $thumb = NULL, string $caption = '', \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, ?callable $callback = NULL, ?string $fileName = NULL, ?string $mimeType = NULL, ?int $ttl = NULL, bool $spoiler = false, (array|null) $replyMarkup = NULL, (integer|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, bool $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $updateStickersetsOrder = false, boolean $forceResend = false, \Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message`](#replyDocument)
* [`replyVideo((\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream) $file, (\danog\MadelineProto\EventHandler\Message|\danog\MadelineProto\EventHandler\Media|\danog\MadelineProto\LocalFile|\danog\MadelineProto\RemoteUrl|\danog\MadelineProto\BotApiFileId|\Amp\ByteStream\ReadableStream|null) $thumb = NULL, string $caption = '', \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, ?callable $callback = NULL, ?string $fileName = NULL, string $mimeType = 'video/mp4', (integer|null) $ttl = NULL, boolean $spoiler = false, boolean $roundMessage = false, boolean $supportsStreaming = true, boolean $noSound = false, (integer|null) $duration = NULL, (integer|null) $width = NULL, (integer|null) $height = NULL, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $forceResend = false, bool $updateStickersetsOrder = false, \Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message`](#replyVideo)
@@ -107,6 +107,17 @@ Parameters:
+### `delete(boolean $revoke = true): void`
+
+Delete the message.
+
+
+Parameters:
+
+* `$revoke`: `boolean` Whether to delete the message for all participants of the chat.
+
+
+
### `screenShot(): \danog\MadelineProto\EventHandler\Message\Service\DialogScreenshotTaken`
@@ -330,17 +341,6 @@ Check if the current message replies to another message.
-### `delete(boolean $revoke = true): void`
-
-Delete the message.
-
-
-Parameters:
-
-* `$revoke`: `boolean` Whether to delete the message for all participants of the chat.
-
-
-
### `reply(string $message, \danog\MadelineProto\ParseMode $parseMode = \danog\MadelineProto\ParseMode::TEXT, (array|null) $replyMarkup = NULL, (integer|string|null) $sendAs = NULL, (integer|null) $scheduleDate = NULL, boolean $noWebpage = false, boolean $silent = false, boolean $noForwards = false, boolean $background = false, boolean $clearDraft = false, boolean $updateStickersetsOrder = false, ?\Amp\Cancellation $cancellation = NULL): \danog\MadelineProto\EventHandler\Message`
Reply to the message.
diff --git a/docs/PHP/danog/MadelineProto/EventHandler/Plugin/RestartPlugin.md b/docs/PHP/danog/MadelineProto/EventHandler/Plugin/RestartPlugin.md
index dd2f0556e0..0c6fa2353c 100644
--- a/docs/PHP/danog/MadelineProto/EventHandler/Plugin/RestartPlugin.md
+++ b/docs/PHP/danog/MadelineProto/EventHandler/Plugin/RestartPlugin.md
@@ -75,7 +75,7 @@ Plugin that offers a /restart command to admins that can be used to restart the
* [`completePhoneLogin(string $code): array`](#completePhoneLogin)
* [`completeSignup(string $first_name, string $last_name = ''): array`](#completeSignup)
* [`discardCall(int $id, \danog\MadelineProto\VoIP\DiscardReason $reason = \danog\MadelineProto\VoIP\DiscardReason::HANGUP, int<1, 5> $rating = NULL, string $comment = NULL): void`](#discardCall)
-* [`discardSecretChat(int $chat): void`](#discardSecretChat)
+* [`discardSecretChat(int $chat, bool $deleteHistory = false): void`](#discardSecretChat)
* [`downloadServer(string $session): void`](#downloadServer)
* [`downloadToBrowser((array|string|\danog\MadelineProto\FileCallbackInterface|\danog\MadelineProto\EventHandler\Message) $messageMedia, (null|callable) $cb = NULL, (null|int) $size = NULL, (null|string) $name = NULL, (null|string) $mime = NULL, ?\Amp\Cancellation $cancellation = NULL): void`](#downloadToBrowser)
* [`downloadToCallable(mixed $messageMedia, (callable|\danog\MadelineProto\FileCallbackInterface) $callable, callable $cb = NULL, bool $seekable = true, int $offset = 0, int $end = -1, int $part_size = NULL, ?\Amp\Cancellation $cancellation = NULL): void`](#downloadToCallable)
@@ -760,7 +760,7 @@ Parameters:
-### `discardSecretChat(int $chat): void`
+### `discardSecretChat(int $chat, bool $deleteHistory = false): void`
Discard secret chat.
@@ -768,6 +768,7 @@ Discard secret chat.
Parameters:
* `$chat`: `int` Secret chat ID
+* `$deleteHistory`: `bool` If true, deletes the entire chat history for the other user as well.
diff --git a/docs/PHP/danog/MadelineProto/PluginEventHandler.md b/docs/PHP/danog/MadelineProto/PluginEventHandler.md
index a369c2f7f3..c1b260be0a 100644
--- a/docs/PHP/danog/MadelineProto/PluginEventHandler.md
+++ b/docs/PHP/danog/MadelineProto/PluginEventHandler.md
@@ -74,7 +74,7 @@ Plugin event handler class.
* [`completePhoneLogin(string $code): array`](#completePhoneLogin)
* [`completeSignup(string $first_name, string $last_name = ''): array`](#completeSignup)
* [`discardCall(int $id, \danog\MadelineProto\VoIP\DiscardReason $reason = \danog\MadelineProto\VoIP\DiscardReason::HANGUP, int<1, 5> $rating = NULL, string $comment = NULL): void`](#discardCall)
-* [`discardSecretChat(int $chat): void`](#discardSecretChat)
+* [`discardSecretChat(int $chat, bool $deleteHistory = false): void`](#discardSecretChat)
* [`downloadServer(string $session): void`](#downloadServer)
* [`downloadToBrowser((array|string|\danog\MadelineProto\FileCallbackInterface|\danog\MadelineProto\EventHandler\Message) $messageMedia, (null|callable) $cb = NULL, (null|int) $size = NULL, (null|string) $name = NULL, (null|string) $mime = NULL, ?\Amp\Cancellation $cancellation = NULL): void`](#downloadToBrowser)
* [`downloadToCallable(mixed $messageMedia, (callable|\danog\MadelineProto\FileCallbackInterface) $callable, callable $cb = NULL, bool $seekable = true, int $offset = 0, int $end = -1, int $part_size = NULL, ?\Amp\Cancellation $cancellation = NULL): void`](#downloadToCallable)
@@ -743,7 +743,7 @@ Parameters:
-### `discardSecretChat(int $chat): void`
+### `discardSecretChat(int $chat, bool $deleteHistory = false): void`
Discard secret chat.
@@ -751,6 +751,7 @@ Discard secret chat.
Parameters:
* `$chat`: `int` Secret chat ID
+* `$deleteHistory`: `bool` If true, deletes the entire chat history for the other user as well.
diff --git a/docs/PHP/danog/MadelineProto/SimpleEventHandler.md b/docs/PHP/danog/MadelineProto/SimpleEventHandler.md
index 2518c7446d..31ef057e4d 100644
--- a/docs/PHP/danog/MadelineProto/SimpleEventHandler.md
+++ b/docs/PHP/danog/MadelineProto/SimpleEventHandler.md
@@ -73,7 +73,7 @@ Simple event handler class: by extending this class, you can use filters, crons
* [`completePhoneLogin(string $code): array`](#completePhoneLogin)
* [`completeSignup(string $first_name, string $last_name = ''): array`](#completeSignup)
* [`discardCall(int $id, \danog\MadelineProto\VoIP\DiscardReason $reason = \danog\MadelineProto\VoIP\DiscardReason::HANGUP, int<1, 5> $rating = NULL, string $comment = NULL): void`](#discardCall)
-* [`discardSecretChat(int $chat): void`](#discardSecretChat)
+* [`discardSecretChat(int $chat, bool $deleteHistory = false): void`](#discardSecretChat)
* [`downloadServer(string $session): void`](#downloadServer)
* [`downloadToBrowser((array|string|\danog\MadelineProto\FileCallbackInterface|\danog\MadelineProto\EventHandler\Message) $messageMedia, (null|callable) $cb = NULL, (null|int) $size = NULL, (null|string) $name = NULL, (null|string) $mime = NULL, ?\Amp\Cancellation $cancellation = NULL): void`](#downloadToBrowser)
* [`downloadToCallable(mixed $messageMedia, (callable|\danog\MadelineProto\FileCallbackInterface) $callable, callable $cb = NULL, bool $seekable = true, int $offset = 0, int $end = -1, int $part_size = NULL, ?\Amp\Cancellation $cancellation = NULL): void`](#downloadToCallable)
@@ -744,7 +744,7 @@ Parameters:
-### `discardSecretChat(int $chat): void`
+### `discardSecretChat(int $chat, bool $deleteHistory = false): void`
Discard secret chat.
@@ -752,6 +752,7 @@ Discard secret chat.
Parameters:
* `$chat`: `int` Secret chat ID
+* `$deleteHistory`: `bool` If true, deletes the entire chat history for the other user as well.
diff --git a/docs/docs/FILTERS.md b/docs/docs/FILTERS.md
index 171b41dddc..ac5909ff94 100644
--- a/docs/docs/FILTERS.md
+++ b/docs/docs/FILTERS.md
@@ -939,4 +939,4 @@ Here's a full list of all MTProto filters (click on each filter name to view the
-Next section
+Next section
\ No newline at end of file