Files
mautrix-telegram/pkg/gotd/telegram/flood_wait.go
T
2025-06-27 20:03:37 -07:00

16 lines
388 B
Go

package telegram
import (
"go.mau.fi/mautrix-telegram/pkg/gotd/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