MadelineProtoDocs/old_docs/API_docs_v11/constructors/error.md
2020-06-16 17:50:25 +02:00

625 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 Error code
text string Yes Message

Type: Error

Example:

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

Or, if you're into Lua:

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