MadelineProtoDocs/docs/PHPInternal/danog/MadelineProto/RPCErrorException.md

81 lines
1.2 KiB
Markdown
Raw Normal View History

2020-10-15 18:42:54 +02:00
---
title: danog\MadelineProto\RPCErrorException: Indicates an error returned by Telegram's API.
description:
---
# `danog\MadelineProto\RPCErrorException`
[Back to index](../../index.md)
> Author: Daniil Gentili <daniil@daniil.it>
Indicates an error returned by Telegram's API.
---
Generated by [danog/phpdoc](https://phpdoc.daniil.it).
## Method list:
* `getLocalization(): string`
* `setLocalization(string $localization): void`
* `updateTLTrace(array $trace): void`
* `getTLTrace(): string`
* `setTLTrace(string $tlTrace): void`
* `prettifyTL(string $init, array $trace): void`
## Methods:
### `getLocalization(): string`
Get localized error name.
### `setLocalization(string $localization): void`
Set localized error name.
Parameters:
* `$localization`: `string`
### `updateTLTrace(array $trace): void`
Update TL trace.
Parameters:
* `$trace`: `array`
### `getTLTrace(): string`
Get TL trace.
### `setTLTrace(string $tlTrace): void`
Set TL trace.
Parameters:
* `$tlTrace`: `string` TL trace
### `prettifyTL(string $init, array $trace): void`
Generate async trace.
Parameters:
* `$init`: `string` Method name
* `$trace`: `array` Async trace