mirror of
https://github.com/sochix/TLSharp.git
synced 2026-01-05 16:29:58 +01:00
Core: improve flood exception msg
This commit is contained in:
parent
c37ecd4621
commit
90aef81908
|
|
@ -7,7 +7,7 @@ namespace TgSharp.Core.Network.Exceptions
|
|||
public TimeSpan TimeToWait { get; private set; }
|
||||
|
||||
internal FloodException(TimeSpan timeToWait)
|
||||
: base($"Flood prevention. Telegram now requires your program to do requests again only after {timeToWait.TotalSeconds} seconds have passed ({nameof(TimeToWait)} property)." +
|
||||
: base($"Flood prevention. Telegram now requires your program to do requests again only after {timeToWait.TotalSeconds} seconds have passed ({nameof(TimeToWait)} property), so if now it's {DateTime.Now}, wait until {(DateTime.Now+timeToWait)}" +
|
||||
" If you think the culprit of this problem may lie in TgSharp's implementation, open a Github issue please.")
|
||||
{
|
||||
TimeToWait = timeToWait;
|
||||
|
|
|
|||
Loading…
Reference in a new issue