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.
15 lines
371 B
15 lines
371 B
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
|
|
|