From 8a319f4642fc699965833ac98f270ff92bccc9ee Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 16 Jun 2024 17:49:29 +0200 Subject: [PATCH] Add one more error --- .../RPCError/RequestTokenInvalidError.md | 99 +++++++++++++++++++ docs/PHP/index.md | 1 + 2 files changed, 100 insertions(+) create mode 100644 docs/PHP/danog/MadelineProto/RPCError/RequestTokenInvalidError.md diff --git a/docs/PHP/danog/MadelineProto/RPCError/RequestTokenInvalidError.md b/docs/PHP/danog/MadelineProto/RPCError/RequestTokenInvalidError.md new file mode 100644 index 0000000000..9b5c79ab65 --- /dev/null +++ b/docs/PHP/danog/MadelineProto/RPCError/RequestTokenInvalidError.md @@ -0,0 +1,99 @@ +--- +title: "danog\\MadelineProto\\RPCError\\RequestTokenInvalidError: The master DC did not accept the `request_token` from the CDN DC. Continue downloading the file from the master DC using upload.getFile." +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\RequestTokenInvalidError` +[Back to index](../../../index.html) + +> Author: Daniil Gentili + + +The master DC did not accept the `request_token` from the CDN DC. Continue downloading the file from the master DC using upload.getFile. + + +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: +### `getLocalization(): string` + +Get localized error name. + + + +### `getMessage(): string` + + + + + +### `getCode()` + + + + + +### `getFile(): string` + + + + + +### `getLine(): int` + + + + + +### `getTrace(): array` + + + + + +### `getPrevious(): ?Throwable` + + + + +#### See also: +* `Throwable` + + + + +### `getTraceAsString(): string` + + + + + +### `getTLTrace(): string` + +Get TL trace. + + + +--- +Generated by [danog/phpdoc](https://phpdoc.daniil.it) diff --git a/docs/PHP/index.md b/docs/PHP/index.md index f49a64d287..c96bae9ac7 100644 --- a/docs/PHP/index.md +++ b/docs/PHP/index.md @@ -381,6 +381,7 @@ Async PHP client API for the telegram MTProto protocol. * [\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\RateLimitError: Represents a rate limiting RPC error returned by telegram.](/PHP/danog/MadelineProto/RPCError/RateLimitError.html) +* [\danog\MadelineProto\RPCError\RequestTokenInvalidError: The master DC did not accept the `request_token` from the CDN DC. Continue downloading the file from the master DC using upload.getFile.](/PHP/danog/MadelineProto/RPCError/RequestTokenInvalidError.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\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)