You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
371 B
16 lines
371 B
3 years ago
|
package telegram
|
||
|
|
||
|
import (
|
||
|
"github.com/gotd/td/tgerr"
|
||
|
)
|
||
|
|
||
|
// ErrFloodWait is error type of "FLOOD_WAIT" error.
|
||
|
const ErrFloodWait = tgerr.ErrFloodWait
|
||
|
|
||
|
// AsFloodWait returns wait duration and true boolean if err is
|
||
|
// the "FLOOD_WAIT" error.
|
||
|
//
|
||
|
// Client should wait for that duration before issuing new requests with
|
||
|
// same method.
|
||
|
var AsFloodWait = tgerr.AsFloodWait
|