MadelineProtoDocs/old_docs/API_docs_v102/constructors/error.md
2019-06-24 15:45:02 +02:00

614 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'];

Or, if you're into Lua:

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