MadelineProtoDocs/old_docs/API_docs_v89/constructors/error.md
2019-12-27 17:48:04 +01: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'}