Skip to content

Commit

Permalink
sticker: lower extra RA sleep time
Browse files Browse the repository at this point in the history
  • Loading branch information
star-39 committed Feb 23, 2023
1 parent 0ec090b commit 8bc85cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/sticker.go
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ func commitSticker(createSet bool, pos int, flCount *int, safeMode bool, sf *Sti
log.Error("RA too long! Telegram's bug? Attempt to sleep for 120 seconds.")
time.Sleep(120 * time.Second)
} else {
extraRA := *flCount * 30
extraRA := *flCount * 15
log.Warnf("Sleeping for %d seconds due to FL.", floodErr.RetryAfter+extraRA)
time.Sleep(time.Duration(floodErr.RetryAfter+extraRA) * time.Second)
}
Expand Down

0 comments on commit 8bc85cc

Please sign in to comment.