MadelineProtoDocs/old_docs/API_docs_v53/constructors/error.md
Daniil Gentili f73c175203 Update docs
2018-12-26 01:56:50 +00:00

731 B

title description image
error Error https://docs.madelineproto.xyz/favicons/android-chrome-256x256.png

Constructor: error

Back to constructors index

Error

Attributes:

Name Type Required Description
code int Yes Code
text string Yes Text

Type: Error

Example:

$error = ['_' => 'error', 'code' => int, 'text' => 'string'];

PWRTelegram json-encoded version:

{"_": "error", "code": int, "text": "string"}

Or, if you're into Lua:

error={_='error', code=int, text='string'}