Documentation ¶
Overview ¶
Package tgerr implements helpers for error handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Error ¶
type Error struct { Code int // 420 Message string // FLOOD_WAIT_3 Type string // FLOOD_WAIT Argument int // 3 }
Error represents RPC error returned as result to request.
func (*Error) IsCodeOneOf ¶
IsCodeOneOf returns true if error code is one of codes.
Click to show internal directories.
Click to hide internal directories.