From 4b7c4dcf943bff95e2c16eb56fed0317242ba500 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Tue, 2 Jul 2024 16:02:49 +0200 Subject: [PATCH] Bump --- docs/PHP/danog/MadelineProto/API.md | 6 +++--- docs/PHP/danog/MadelineProto/EventHandler.md | 6 +++--- .../MadelineProto/EventHandler/Plugin/RestartPlugin.md | 6 +++--- docs/PHP/danog/MadelineProto/PluginEventHandler.md | 6 +++--- docs/PHP/danog/MadelineProto/SimpleEventHandler.md | 6 +++--- docs/PHP/danog/MadelineProto/Tools.md | 6 +++--- docs/docs/UPDATES.md | 4 ---- 7 files changed, 18 insertions(+), 22 deletions(-) diff --git a/docs/PHP/danog/MadelineProto/API.md b/docs/PHP/danog/MadelineProto/API.md index 67a7b3cebd..be9ebc5ba7 100644 --- a/docs/PHP/danog/MadelineProto/API.md +++ b/docs/PHP/danog/MadelineProto/API.md @@ -130,7 +130,7 @@ Main API wrapper for MadelineProto. * [`flock(string $file, integer $operation, float $polling = 0.1, ?\Amp\Cancellation $token = NULL, ?\Closure $failureCb = NULL): ($token is null ? Closure(): void : (Closure(): void | null))`](#flock) * [`fullChatLastUpdated(mixed $id): int`](#fullChatLastUpdated) * [`fullGetSelf(): array|false`](#fullGetSelf) -* [`genVectorHash(array $longs): string`](#genVectorHash) +* [`genVectorHash(array<(int|string)> $longs): string`](#genVectorHash) * [`getAdminIds(): array`](#getAdminIds) * [`getAllCalls(): array`](#getAllCalls) * [`getAllMethods(): array`](#getAllMethods) @@ -1092,7 +1092,7 @@ Get info about the logged-in user, not cached. -### `genVectorHash(array $longs): string` +### `genVectorHash(array<(int|string)> $longs): string` Generate MTProto vector hash. @@ -1101,7 +1101,7 @@ Returns a vector hash. Parameters: -* `$longs`: `array` IDs +* `$longs`: `array<(int|string)>` IDs diff --git a/docs/PHP/danog/MadelineProto/EventHandler.md b/docs/PHP/danog/MadelineProto/EventHandler.md index 0b14ff0a13..a987c77150 100644 --- a/docs/PHP/danog/MadelineProto/EventHandler.md +++ b/docs/PHP/danog/MadelineProto/EventHandler.md @@ -95,7 +95,7 @@ Event handler. * [`flock(string $file, integer $operation, float $polling = 0.1, ?\Amp\Cancellation $token = NULL, ?\Closure $failureCb = NULL): ($token is null ? Closure(): void : (Closure(): void | null))`](#flock) * [`fullChatLastUpdated(mixed $id): int`](#fullChatLastUpdated) * [`fullGetSelf(): array|false`](#fullGetSelf) -* [`genVectorHash(array $longs): string`](#genVectorHash) +* [`genVectorHash(array<(int|string)> $longs): string`](#genVectorHash) * [`getAdminIds(): array`](#getAdminIds) * [`getAllCalls(): array`](#getAllCalls) * [`getAllMethods(): array`](#getAllMethods) @@ -1100,7 +1100,7 @@ Get info about the logged-in user, not cached. -### `genVectorHash(array $longs): string` +### `genVectorHash(array<(int|string)> $longs): string` Generate MTProto vector hash. @@ -1109,7 +1109,7 @@ Returns a vector hash. Parameters: -* `$longs`: `array` IDs +* `$longs`: `array<(int|string)>` IDs diff --git a/docs/PHP/danog/MadelineProto/EventHandler/Plugin/RestartPlugin.md b/docs/PHP/danog/MadelineProto/EventHandler/Plugin/RestartPlugin.md index d87491ba44..de762abc0d 100644 --- a/docs/PHP/danog/MadelineProto/EventHandler/Plugin/RestartPlugin.md +++ b/docs/PHP/danog/MadelineProto/EventHandler/Plugin/RestartPlugin.md @@ -97,7 +97,7 @@ Plugin that offers a /restart command to admins that can be used to restart the * [`flock(string $file, integer $operation, float $polling = 0.1, ?\Amp\Cancellation $token = NULL, ?\Closure $failureCb = NULL): ($token is null ? Closure(): void : (Closure(): void | null))`](#flock) * [`fullChatLastUpdated(mixed $id): int`](#fullChatLastUpdated) * [`fullGetSelf(): array|false`](#fullGetSelf) -* [`genVectorHash(array $longs): string`](#genVectorHash) +* [`genVectorHash(array<(int|string)> $longs): string`](#genVectorHash) * [`getAdminIds(): array`](#getAdminIds) * [`getAllCalls(): array`](#getAllCalls) * [`getAllMethods(): array`](#getAllMethods) @@ -1116,7 +1116,7 @@ Get info about the logged-in user, not cached. -### `genVectorHash(array $longs): string` +### `genVectorHash(array<(int|string)> $longs): string` Generate MTProto vector hash. @@ -1125,7 +1125,7 @@ Returns a vector hash. Parameters: -* `$longs`: `array` IDs +* `$longs`: `array<(int|string)>` IDs diff --git a/docs/PHP/danog/MadelineProto/PluginEventHandler.md b/docs/PHP/danog/MadelineProto/PluginEventHandler.md index f9707970ac..d82fc9bab7 100644 --- a/docs/PHP/danog/MadelineProto/PluginEventHandler.md +++ b/docs/PHP/danog/MadelineProto/PluginEventHandler.md @@ -96,7 +96,7 @@ Plugin event handler class. * [`flock(string $file, integer $operation, float $polling = 0.1, ?\Amp\Cancellation $token = NULL, ?\Closure $failureCb = NULL): ($token is null ? Closure(): void : (Closure(): void | null))`](#flock) * [`fullChatLastUpdated(mixed $id): int`](#fullChatLastUpdated) * [`fullGetSelf(): array|false`](#fullGetSelf) -* [`genVectorHash(array $longs): string`](#genVectorHash) +* [`genVectorHash(array<(int|string)> $longs): string`](#genVectorHash) * [`getAdminIds(): array`](#getAdminIds) * [`getAllCalls(): array`](#getAllCalls) * [`getAllMethods(): array`](#getAllMethods) @@ -1099,7 +1099,7 @@ Get info about the logged-in user, not cached. -### `genVectorHash(array $longs): string` +### `genVectorHash(array<(int|string)> $longs): string` Generate MTProto vector hash. @@ -1108,7 +1108,7 @@ Returns a vector hash. Parameters: -* `$longs`: `array` IDs +* `$longs`: `array<(int|string)>` IDs diff --git a/docs/PHP/danog/MadelineProto/SimpleEventHandler.md b/docs/PHP/danog/MadelineProto/SimpleEventHandler.md index 62657a6282..18af248505 100644 --- a/docs/PHP/danog/MadelineProto/SimpleEventHandler.md +++ b/docs/PHP/danog/MadelineProto/SimpleEventHandler.md @@ -95,7 +95,7 @@ Simple event handler class: by extending this class, you can use filters, crons * [`flock(string $file, integer $operation, float $polling = 0.1, ?\Amp\Cancellation $token = NULL, ?\Closure $failureCb = NULL): ($token is null ? Closure(): void : (Closure(): void | null))`](#flock) * [`fullChatLastUpdated(mixed $id): int`](#fullChatLastUpdated) * [`fullGetSelf(): array|false`](#fullGetSelf) -* [`genVectorHash(array $longs): string`](#genVectorHash) +* [`genVectorHash(array<(int|string)> $longs): string`](#genVectorHash) * [`getAdminIds(): array`](#getAdminIds) * [`getAllCalls(): array`](#getAllCalls) * [`getAllMethods(): array`](#getAllMethods) @@ -1100,7 +1100,7 @@ Get info about the logged-in user, not cached. -### `genVectorHash(array $longs): string` +### `genVectorHash(array<(int|string)> $longs): string` Generate MTProto vector hash. @@ -1109,7 +1109,7 @@ Returns a vector hash. Parameters: -* `$longs`: `array` IDs +* `$longs`: `array<(int|string)>` IDs diff --git a/docs/PHP/danog/MadelineProto/Tools.md b/docs/PHP/danog/MadelineProto/Tools.md index 3dda5e37a5..b6b5182c63 100644 --- a/docs/PHP/danog/MadelineProto/Tools.md +++ b/docs/PHP/danog/MadelineProto/Tools.md @@ -25,7 +25,7 @@ Some tools. * [`getMaps(): ?int`](#getMaps) * [`getMaxMaps(): ?int`](#getMaxMaps) * [`stringToStream(string $str): \Amp\ByteStream\ReadableBuffer`](#stringToStream) -* [`genVectorHash(array<(int|string)> $longs): string`](#genVectorHash) +* [`genVectorHash(array $longs): string`](#genVectorHash) * [`randomInt(integer $modulus = 0): int`](#randomInt) * [`random(integer $length): string`](#random) * [`posmod(int $a, int $b): int`](#posmod) @@ -119,7 +119,7 @@ Parameters: -### `genVectorHash(array<(int|string)> $longs): string` +### `genVectorHash(array $longs): string` Generate MTProto vector hash. @@ -128,7 +128,7 @@ Returns a vector hash. Parameters: -* `$longs`: `array<(int|string)>` IDs +* `$longs`: `array` IDs diff --git a/docs/docs/UPDATES.md b/docs/docs/UPDATES.md index 896479fd87..5d31ed21fc 100644 --- a/docs/docs/UPDATES.md +++ b/docs/docs/UPDATES.md @@ -214,10 +214,6 @@ class MyEventHandler extends SimpleEventHandler { return [self::ADMIN]; } - - public function onAny(array $update) { - var_dump($update); - } /** * Initialization logic. */