This commit is contained in:
Daniil Gentili 2024-07-02 16:02:49 +02:00
parent c786c5b204
commit 4b7c4dcf94
7 changed files with 18 additions and 22 deletions

View File

@ -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<int, \danog\MadelineProto\VoIP>`](#getAllCalls)
* [`getAllMethods(): array`](#getAllMethods)
@ -1092,7 +1092,7 @@ Get info about the logged-in user, not cached.
### <a name="genVectorHash"></a> `genVectorHash(array $longs): string`
### <a name="genVectorHash"></a> `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

View File

@ -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<int, \danog\MadelineProto\VoIP>`](#getAllCalls)
* [`getAllMethods(): array`](#getAllMethods)
@ -1100,7 +1100,7 @@ Get info about the logged-in user, not cached.
### <a name="genVectorHash"></a> `genVectorHash(array $longs): string`
### <a name="genVectorHash"></a> `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

View File

@ -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<int, \danog\MadelineProto\VoIP>`](#getAllCalls)
* [`getAllMethods(): array`](#getAllMethods)
@ -1116,7 +1116,7 @@ Get info about the logged-in user, not cached.
### <a name="genVectorHash"></a> `genVectorHash(array $longs): string`
### <a name="genVectorHash"></a> `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

View File

@ -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<int, \danog\MadelineProto\VoIP>`](#getAllCalls)
* [`getAllMethods(): array`](#getAllMethods)
@ -1099,7 +1099,7 @@ Get info about the logged-in user, not cached.
### <a name="genVectorHash"></a> `genVectorHash(array $longs): string`
### <a name="genVectorHash"></a> `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

View File

@ -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<int, \danog\MadelineProto\VoIP>`](#getAllCalls)
* [`getAllMethods(): array`](#getAllMethods)
@ -1100,7 +1100,7 @@ Get info about the logged-in user, not cached.
### <a name="genVectorHash"></a> `genVectorHash(array $longs): string`
### <a name="genVectorHash"></a> `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

View File

@ -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:
### <a name="genVectorHash"></a> `genVectorHash(array<(int|string)> $longs): string`
### <a name="genVectorHash"></a> `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

View File

@ -214,10 +214,6 @@ class MyEventHandler extends SimpleEventHandler
{
return [self::ADMIN];
}
public function onAny(array $update) {
var_dump($update);
}
/**
* Initialization logic.
*/