This commit is contained in:
Daniil Gentili 2024-06-26 17:59:28 +02:00
parent 7346b4a4d3
commit 851eccfc27
5 changed files with 297 additions and 1 deletions

View File

@ -0,0 +1,95 @@
---
title: "danog\\MadelineProto\\RPCError\\TimeoutError: Represents a request timeout RPC error returned by telegram."
description: ""
image: "https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png"
parent: "MadelineProto API"
---
# `danog\MadelineProto\RPCError\TimeoutError`
[Back to index](../../../index.html)
> Author: Daniil Gentili <daniil@daniil.it>
Represents a request timeout RPC error returned by telegram.
## Properties
* `$rpc`: `string` RPC error.
* `$description`: `string` Human-readable description of RPC error.
* `$tlTrace`: `string` TL trace.
## Method list:
* [`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="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

@ -0,0 +1,99 @@
---
title: "danog\\MadelineProto\\RPCError\\UsernameInvalidError: The provided username is not valid."
description: "\nNote: this exception is part of the raw API, and thus is not covered by the backwards-compatibility promise.\n\nAlways check the changelog when upgrading, and use tools like Psalm to easily upgrade your code.\n"
image: "https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png"
parent: "MadelineProto API"
---
# `danog\MadelineProto\RPCError\UsernameInvalidError`
[Back to index](../../../index.html)
> Author: Daniil Gentili <daniil@daniil.it>
The provided username is not valid.
Note: this exception is part of the raw API, and thus is not covered by the backwards-compatibility promise.
Always check the changelog when upgrading, and use tools like Psalm to easily upgrade your code.
## Properties
* `$rpc`: `string` RPC error.
* `$description`: `string` Human-readable description of RPC error.
* `$tlTrace`: `string` TL trace.
## Method list:
* [`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="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

@ -0,0 +1,99 @@
---
title: "danog\\MadelineProto\\RPCError\\UsernameNotOccupiedError: The provided username is not occupied."
description: "\nNote: this exception is part of the raw API, and thus is not covered by the backwards-compatibility promise.\n\nAlways check the changelog when upgrading, and use tools like Psalm to easily upgrade your code.\n"
image: "https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png"
parent: "MadelineProto API"
---
# `danog\MadelineProto\RPCError\UsernameNotOccupiedError`
[Back to index](../../../index.html)
> Author: Daniil Gentili <daniil@daniil.it>
The provided username is not occupied.
Note: this exception is part of the raw API, and thus is not covered by the backwards-compatibility promise.
Always check the changelog when upgrading, and use tools like Psalm to easily upgrade your code.
## Properties
* `$rpc`: `string` RPC error.
* `$description`: `string` Human-readable description of RPC error.
* `$tlTrace`: `string` TL trace.
## Method list:
* [`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="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

@ -388,11 +388,14 @@ Async PHP client API for the telegram MTProto protocol.
* [\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\ScheduleTooMuchError: There are too many scheduled messages.](/PHP/danog/MadelineProto/RPCError/ScheduleTooMuchError.html)
* [\danog\MadelineProto\RPCError\SessionPasswordNeededError: 2FA is enabled, use a password to login.](/PHP/danog/MadelineProto/RPCError/SessionPasswordNeededError.html)
* [\danog\MadelineProto\RPCError\TimeoutError: Represents a request timeout RPC error returned by telegram.](/PHP/danog/MadelineProto/RPCError/TimeoutError.html)
* [\danog\MadelineProto\RPCError\TopicClosedError: This topic was closed, you can't send messages to it anymore.](/PHP/danog/MadelineProto/RPCError/TopicClosedError.html)
* [\danog\MadelineProto\RPCError\TopicDeletedError: The specified topic was deleted.](/PHP/danog/MadelineProto/RPCError/TopicDeletedError.html)
* [\danog\MadelineProto\RPCError\UserBannedInChannelError: You're banned from sending messages in supergroups/channels.](/PHP/danog/MadelineProto/RPCError/UserBannedInChannelError.html)
* [\danog\MadelineProto\RPCError\UserIsBlockedError: You were blocked by this user.](/PHP/danog/MadelineProto/RPCError/UserIsBlockedError.html)
* [\danog\MadelineProto\RPCError\UserIsBotError: Bots can't send messages to other bots.](/PHP/danog/MadelineProto/RPCError/UserIsBotError.html)
* [\danog\MadelineProto\RPCError\UsernameInvalidError: The provided username is not valid.](/PHP/danog/MadelineProto/RPCError/UsernameInvalidError.html)
* [\danog\MadelineProto\RPCError\UsernameNotOccupiedError: The provided username is not occupied.](/PHP/danog/MadelineProto/RPCError/UsernameNotOccupiedError.html)
* [\danog\MadelineProto\RPCError\VoiceMessagesForbiddenError: This user's privacy settings forbid you from sending voice messages.](/PHP/danog/MadelineProto/RPCError/VoiceMessagesForbiddenError.html)
* [\danog\MadelineProto\RPCError\WebpageCurlFailedError: Failure while fetching the webpage with cURL.](/PHP/danog/MadelineProto/RPCError/WebpageCurlFailedError.html)
* [\danog\MadelineProto\RPCError\WebpageNotFoundError: A preview for the specified webpage `url` could not be generated.](/PHP/danog/MadelineProto/RPCError/WebpageNotFoundError.html)