MadelineProtoDocs/old_docs/API_docs_v109/constructors/error.md
2020-03-06 12:24:14 +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'}