mirror of
https://github.com/sochix/TLSharp.git
synced 2026-03-04 20:43:52 +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; }
|
public TimeSpan TimeToWait { get; private set; }
|
||||||
|
|
||||||
internal FloodException(TimeSpan timeToWait)
|
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.")
|
" If you think the culprit of this problem may lie in TgSharp's implementation, open a Github issue please.")
|
||||||
{
|
{
|
||||||
TimeToWait = timeToWait;
|
TimeToWait = timeToWait;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue