Add one more error

This commit is contained in:
Daniil Gentili 2024-06-16 17:49:29 +02:00
parent 64ecad00e1
commit 8a319f4642
2 changed files with 100 additions and 0 deletions

View File

@ -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 <daniil@daniil.it>
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:
### <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

@ -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)