This commit is contained in:
Daniil Gentili 2024-06-16 16:42:20 +02:00
parent ab6676b130
commit 202b075a02
4 changed files with 254 additions and 22 deletions

View File

@ -0,0 +1,120 @@
---
title: "danog\\MadelineProto\\RPCError\\FloodPremiumWaitError: Represents a FLOOD_PREMIUM_WAIT_ RPC error returned by telegram."
description: ""
image: "https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png"
parent: "MadelineProto API"
---
# `danog\MadelineProto\RPCError\FloodPremiumWaitError`
[Back to index](../../../index.html)
> Author: Daniil Gentili <daniil@daniil.it>
Represents a FLOOD_PREMIUM_WAIT_ RPC error returned by telegram.
## Properties
* `$waitTime`: `int`
* `$rpc`: `string` RPC error.
* `$description`: `string` Human-readable description of RPC error.
* `$tlTrace`: `string` TL trace.
## Method list:
* [`getWaitTime(): int`](#getWaitTime)
* [`wait(?\Amp\Cancellation $cancellation = NULL): void`](#wait)
* [`getLocalization(): string`](#getLocalization)
* [`getMessage(): string`](#getMessage)
* [`getCode()`](#getCode)
* [`getFile(): string`](#getFile)
* [`getLine(): int`](#getLine)
* [`getTrace(): array`](#getTrace)
* [`getPrevious(): ?Throwable`](#getPrevious)
* [`getTraceAsString(): string`](#getTraceAsString)
* [`getTLTrace(): string`](#getTLTrace)
## Methods:
### <a name="getWaitTime"></a> `getWaitTime(): int`
Returns the required waiting period in seconds before repeating the RPC call.
### <a name="wait"></a> `wait(?\Amp\Cancellation $cancellation = NULL): void`
Waits for the required waiting period.
Parameters:
* `$cancellation`: `?\Amp\Cancellation`
#### See also:
* `\Amp\Cancellation`
### <a name="getLocalization"></a> `getLocalization(): string`
Get localized error name.
### <a name="getMessage"></a> `getMessage(): string`
### <a name="getCode"></a> `getCode()`
### <a name="getFile"></a> `getFile(): string`
### <a name="getLine"></a> `getLine(): int`
### <a name="getTrace"></a> `getTrace(): array`
### <a name="getPrevious"></a> `getPrevious(): ?Throwable`
#### See also:
* `Throwable`
### <a name="getTraceAsString"></a> `getTraceAsString(): string`
### <a name="getTLTrace"></a> `getTLTrace(): string`
Get TL trace.
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)

View File

@ -22,9 +22,8 @@ Represents a FLOOD_WAIT_ RPC error returned by telegram.
* `$tlTrace`: `string` TL trace. * `$tlTrace`: `string` TL trace.
## Method list: ## Method list:
* [`__construct(string $message, int $code, string $caller, ?\Exception $previous = NULL)`](#__construct)
* [`getWaitTime(): int`](#getWaitTime) * [`getWaitTime(): int`](#getWaitTime)
* [`wait(): void`](#wait) * [`wait(?\Amp\Cancellation $cancellation = NULL): void`](#wait)
* [`getLocalization(): string`](#getLocalization) * [`getLocalization(): string`](#getLocalization)
* [`getMessage(): string`](#getMessage) * [`getMessage(): string`](#getMessage)
* [`getCode()`](#getCode) * [`getCode()`](#getCode)
@ -36,36 +35,27 @@ Represents a FLOOD_WAIT_ RPC error returned by telegram.
* [`getTLTrace(): string`](#getTLTrace) * [`getTLTrace(): string`](#getTLTrace)
## Methods: ## Methods:
### <a name="__construct"></a> `__construct(string $message, int $code, string $caller, ?\Exception $previous = NULL)`
Parameters:
* `$message`: `string`
* `$code`: `int`
* `$caller`: `string`
* `$previous`: `?\Exception`
#### See also:
* `\Exception`
### <a name="getWaitTime"></a> `getWaitTime(): int` ### <a name="getWaitTime"></a> `getWaitTime(): int`
Returns the required waiting period in seconds before repeating the RPC call. Returns the required waiting period in seconds before repeating the RPC call.
### <a name="wait"></a> `wait(): void` ### <a name="wait"></a> `wait(?\Amp\Cancellation $cancellation = NULL): void`
Waits for the required waiting period. Waits for the required waiting period.
Parameters:
* `$cancellation`: `?\Amp\Cancellation`
#### See also:
* `\Amp\Cancellation`
### <a name="getLocalization"></a> `getLocalization(): string` ### <a name="getLocalization"></a> `getLocalization(): string`

View File

@ -0,0 +1,120 @@
---
title: "danog\\MadelineProto\\RPCError\\RateLimitError: Represents a rate limiting RPC error returned by telegram."
description: ""
image: "https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png"
parent: "MadelineProto API"
---
# `danog\MadelineProto\RPCError\RateLimitError`
[Back to index](../../../index.html)
> Author: Daniil Gentili <daniil@daniil.it>
Represents a rate limiting RPC error returned by telegram.
## Properties
* `$waitTime`: `int`
* `$rpc`: `string` RPC error.
* `$description`: `string` Human-readable description of RPC error.
* `$tlTrace`: `string` TL trace.
## Method list:
* [`getWaitTime(): int`](#getWaitTime)
* [`wait(?\Amp\Cancellation $cancellation = NULL): void`](#wait)
* [`getLocalization(): string`](#getLocalization)
* [`getMessage(): string`](#getMessage)
* [`getCode()`](#getCode)
* [`getFile(): string`](#getFile)
* [`getLine(): int`](#getLine)
* [`getTrace(): array`](#getTrace)
* [`getPrevious(): ?Throwable`](#getPrevious)
* [`getTraceAsString(): string`](#getTraceAsString)
* [`getTLTrace(): string`](#getTLTrace)
## Methods:
### <a name="getWaitTime"></a> `getWaitTime(): int`
Returns the required waiting period in seconds before repeating the RPC call.
### <a name="wait"></a> `wait(?\Amp\Cancellation $cancellation = NULL): void`
Waits for the required waiting period.
Parameters:
* `$cancellation`: `?\Amp\Cancellation`
#### See also:
* `\Amp\Cancellation`
### <a name="getLocalization"></a> `getLocalization(): string`
Get localized error name.
### <a name="getMessage"></a> `getMessage(): string`
### <a name="getCode"></a> `getCode()`
### <a name="getFile"></a> `getFile(): string`
### <a name="getLine"></a> `getLine(): int`
### <a name="getTrace"></a> `getTrace(): array`
### <a name="getPrevious"></a> `getPrevious(): ?Throwable`
#### See also:
* `Throwable`
### <a name="getTraceAsString"></a> `getTraceAsString(): string`
### <a name="getTLTrace"></a> `getTLTrace(): string`
Get TL trace.
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it)

View File

@ -364,6 +364,7 @@ Async PHP client API for the telegram MTProto protocol.
* [\danog\MadelineProto\RPCError\EncryptionDeclinedError: The secret chat was declined.](/PHP/danog/MadelineProto/RPCError/EncryptionDeclinedError.html) * [\danog\MadelineProto\RPCError\EncryptionDeclinedError: The secret chat was declined.](/PHP/danog/MadelineProto/RPCError/EncryptionDeclinedError.html)
* [\danog\MadelineProto\RPCError\FileReferenceExpiredError: File reference expired, it must be refetched as described in [the documentation](https://core.telegram.org/api/file_reference).](/PHP/danog/MadelineProto/RPCError/FileReferenceExpiredError.html) * [\danog\MadelineProto\RPCError\FileReferenceExpiredError: File reference expired, it must be refetched as described in [the documentation](https://core.telegram.org/api/file_reference).](/PHP/danog/MadelineProto/RPCError/FileReferenceExpiredError.html)
* [\danog\MadelineProto\RPCError\FileTokenInvalidError: The specified file token is invalid.](/PHP/danog/MadelineProto/RPCError/FileTokenInvalidError.html) * [\danog\MadelineProto\RPCError\FileTokenInvalidError: The specified file token is invalid.](/PHP/danog/MadelineProto/RPCError/FileTokenInvalidError.html)
* [\danog\MadelineProto\RPCError\FloodPremiumWaitError: Represents a FLOOD_PREMIUM_WAIT_ RPC error returned by telegram.](/PHP/danog/MadelineProto/RPCError/FloodPremiumWaitError.html)
* [\danog\MadelineProto\RPCError\FloodWaitError: Represents a FLOOD_WAIT_ RPC error returned by telegram.](/PHP/danog/MadelineProto/RPCError/FloodWaitError.html) * [\danog\MadelineProto\RPCError\FloodWaitError: Represents a FLOOD_WAIT_ RPC error returned by telegram.](/PHP/danog/MadelineProto/RPCError/FloodWaitError.html)
* [\danog\MadelineProto\RPCError\FromMessageBotDisabledError: Bots can't use fromMessage min constructors.](/PHP/danog/MadelineProto/RPCError/FromMessageBotDisabledError.html) * [\danog\MadelineProto\RPCError\FromMessageBotDisabledError: Bots can't use fromMessage min constructors.](/PHP/danog/MadelineProto/RPCError/FromMessageBotDisabledError.html)
* [\danog\MadelineProto\RPCError\ImageProcessFailedError: Failure while processing image.](/PHP/danog/MadelineProto/RPCError/ImageProcessFailedError.html) * [\danog\MadelineProto\RPCError\ImageProcessFailedError: Failure while processing image.](/PHP/danog/MadelineProto/RPCError/ImageProcessFailedError.html)
@ -377,6 +378,7 @@ Async PHP client API for the telegram MTProto protocol.
* [\danog\MadelineProto\RPCError\PremiumAccountRequiredError: A premium account is required to execute this action.](/PHP/danog/MadelineProto/RPCError/PremiumAccountRequiredError.html) * [\danog\MadelineProto\RPCError\PremiumAccountRequiredError: A premium account is required to execute this action.](/PHP/danog/MadelineProto/RPCError/PremiumAccountRequiredError.html)
* [\danog\MadelineProto\RPCError\PrivacyPremiumRequiredError: You need a [Telegram Premium subscription](https://core.telegram.org/api/premium) to send a message to this user.](/PHP/danog/MadelineProto/RPCError/PrivacyPremiumRequiredError.html) * [\danog\MadelineProto\RPCError\PrivacyPremiumRequiredError: You need a [Telegram Premium subscription](https://core.telegram.org/api/premium) to send a message to this user.](/PHP/danog/MadelineProto/RPCError/PrivacyPremiumRequiredError.html)
* [\danog\MadelineProto\RPCError\QuizCorrectAnswersTooMuchError: You specified too many correct answers in a quiz, quizzes can only have one right answer!](/PHP/danog/MadelineProto/RPCError/QuizCorrectAnswersTooMuchError.html) * [\danog\MadelineProto\RPCError\QuizCorrectAnswersTooMuchError: You specified too many correct answers in a quiz, quizzes can only have one right answer!](/PHP/danog/MadelineProto/RPCError/QuizCorrectAnswersTooMuchError.html)
* [\danog\MadelineProto\RPCError\RateLimitError: Represents a rate limiting RPC error returned by telegram.](/PHP/danog/MadelineProto/RPCError/RateLimitError.html)
* [\danog\MadelineProto\RPCError\ScheduleBotNotAllowedError: Bots cannot schedule messages.](/PHP/danog/MadelineProto/RPCError/ScheduleBotNotAllowedError.html) * [\danog\MadelineProto\RPCError\ScheduleBotNotAllowedError: Bots cannot schedule messages.](/PHP/danog/MadelineProto/RPCError/ScheduleBotNotAllowedError.html)
* [\danog\MadelineProto\RPCError\ScheduleDateTooLateError: You can't schedule a message this far in the future.](/PHP/danog/MadelineProto/RPCError/ScheduleDateTooLateError.html) * [\danog\MadelineProto\RPCError\ScheduleDateTooLateError: You can't schedule a message this far in the future.](/PHP/danog/MadelineProto/RPCError/ScheduleDateTooLateError.html)
* [\danog\MadelineProto\RPCError\ScheduleStatusPrivateError: Can't schedule until user is online, if the user's last seen timestamp is hidden by their privacy settings.](/PHP/danog/MadelineProto/RPCError/ScheduleStatusPrivateError.html) * [\danog\MadelineProto\RPCError\ScheduleStatusPrivateError: Can't schedule until user is online, if the user's last seen timestamp is hidden by their privacy settings.](/PHP/danog/MadelineProto/RPCError/ScheduleStatusPrivateError.html)