MadelineProtoDocs/docs/API_docs/constructors/error.md

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'}