Layer 224
constructor
error#c4b9f9bb code:int text:string = Error;

Parameters

Name Type Description
Code int Error code
Text string Message

Returns

Error

Gogram Example

// Creating ErrorObj constructor
obj := &tg.ErrorObj{
    Code: 42,
    Text: "Hello, World!",
}