This commit is contained in:
Daniil Gentili 2024-06-26 19:14:47 +02:00
parent 2da03b4f6e
commit 2a6b4556a2
5 changed files with 40 additions and 10 deletions

View File

@ -126,7 +126,7 @@ Main API wrapper for MadelineProto.
* [`extractMessageId(array $updates): int`](#extractMessageId)
* [`extractMessageUpdate(array $updates): array`](#extractMessageUpdate)
* [`extractUpdates(array $updates): array<array>`](#extractUpdates)
* [`fileGetContents(string $url): string`](#fileGetContents)
* [`fileGetContents(string $url, ?\Amp\Cancellation $cancellation = NULL): string`](#fileGetContents)
* [`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)
@ -1036,7 +1036,7 @@ Parameters:
### <a name="fileGetContents"></a> `fileGetContents(string $url): string`
### <a name="fileGetContents"></a> `fileGetContents(string $url, ?\Amp\Cancellation $cancellation = NULL): string`
Get contents of remote file asynchronously.
@ -1044,6 +1044,12 @@ Get contents of remote file asynchronously.
Parameters:
* `$url`: `string` URL
* `$cancellation`: `?\Amp\Cancellation`
#### See also:
* `\Amp\Cancellation`

View File

@ -91,7 +91,7 @@ Event handler.
* [`extractMessageId(array $updates): int`](#extractMessageId)
* [`extractMessageUpdate(array $updates): array`](#extractMessageUpdate)
* [`extractUpdates(array $updates): array<array>`](#extractUpdates)
* [`fileGetContents(string $url): string`](#fileGetContents)
* [`fileGetContents(string $url, ?\Amp\Cancellation $cancellation = NULL): string`](#fileGetContents)
* [`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)
@ -1044,7 +1044,7 @@ Parameters:
### <a name="fileGetContents"></a> `fileGetContents(string $url): string`
### <a name="fileGetContents"></a> `fileGetContents(string $url, ?\Amp\Cancellation $cancellation = NULL): string`
Get contents of remote file asynchronously.
@ -1052,6 +1052,12 @@ Get contents of remote file asynchronously.
Parameters:
* `$url`: `string` URL
* `$cancellation`: `?\Amp\Cancellation`
#### See also:
* `\Amp\Cancellation`

View File

@ -93,7 +93,7 @@ Plugin that offers a /restart command to admins that can be used to restart the
* [`extractMessageId(array $updates): int`](#extractMessageId)
* [`extractMessageUpdate(array $updates): array`](#extractMessageUpdate)
* [`extractUpdates(array $updates): array<array>`](#extractUpdates)
* [`fileGetContents(string $url): string`](#fileGetContents)
* [`fileGetContents(string $url, ?\Amp\Cancellation $cancellation = NULL): string`](#fileGetContents)
* [`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)
@ -1060,7 +1060,7 @@ Parameters:
### <a name="fileGetContents"></a> `fileGetContents(string $url): string`
### <a name="fileGetContents"></a> `fileGetContents(string $url, ?\Amp\Cancellation $cancellation = NULL): string`
Get contents of remote file asynchronously.
@ -1068,6 +1068,12 @@ Get contents of remote file asynchronously.
Parameters:
* `$url`: `string` URL
* `$cancellation`: `?\Amp\Cancellation`
#### See also:
* `\Amp\Cancellation`

View File

@ -92,7 +92,7 @@ Plugin event handler class.
* [`extractMessageId(array $updates): int`](#extractMessageId)
* [`extractMessageUpdate(array $updates): array`](#extractMessageUpdate)
* [`extractUpdates(array $updates): array<array>`](#extractUpdates)
* [`fileGetContents(string $url): string`](#fileGetContents)
* [`fileGetContents(string $url, ?\Amp\Cancellation $cancellation = NULL): string`](#fileGetContents)
* [`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)
@ -1043,7 +1043,7 @@ Parameters:
### <a name="fileGetContents"></a> `fileGetContents(string $url): string`
### <a name="fileGetContents"></a> `fileGetContents(string $url, ?\Amp\Cancellation $cancellation = NULL): string`
Get contents of remote file asynchronously.
@ -1051,6 +1051,12 @@ Get contents of remote file asynchronously.
Parameters:
* `$url`: `string` URL
* `$cancellation`: `?\Amp\Cancellation`
#### See also:
* `\Amp\Cancellation`

View File

@ -91,7 +91,7 @@ Simple event handler class: by extending this class, you can use filters, crons
* [`extractMessageId(array $updates): int`](#extractMessageId)
* [`extractMessageUpdate(array $updates): array`](#extractMessageUpdate)
* [`extractUpdates(array $updates): array<array>`](#extractUpdates)
* [`fileGetContents(string $url): string`](#fileGetContents)
* [`fileGetContents(string $url, ?\Amp\Cancellation $cancellation = NULL): string`](#fileGetContents)
* [`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)
@ -1044,7 +1044,7 @@ Parameters:
### <a name="fileGetContents"></a> `fileGetContents(string $url): string`
### <a name="fileGetContents"></a> `fileGetContents(string $url, ?\Amp\Cancellation $cancellation = NULL): string`
Get contents of remote file asynchronously.
@ -1052,6 +1052,12 @@ Get contents of remote file asynchronously.
Parameters:
* `$url`: `string` URL
* `$cancellation`: `?\Amp\Cancellation`
#### See also:
* `\Amp\Cancellation`