You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Cannot start when BotId exceeds int32 (2147483648).
To Reproduce
Create a new bot, fill its token into the configuration file, start.
Expected behavior
Just run.
Logs [CORE][ERROR] Unexpected error during startup: System.ArgumentException: Invalid format. A valid token looks like "1234567:4TT8bAc8GHUspu3ERYn-KGcvsvGB9u_n4ddy". (Parameter 'token') at Telegram.Bot.TelegramBotClient..ctor(String token, IWebProxy webProxy) at pmcenter.Program.MainAsync(String[] args) in <hidden>\pmcenter\Program.cs:line 195
Additional context
In int.TryParse(string s, out int result), if the content of s exceeds int32, result will be 0
The text was updated successfully, but these errors were encountered:
Describe the bug
Cannot start when BotId exceeds int32 (2147483648).
To Reproduce
Create a new bot, fill its token into the configuration file, start.
Expected behavior
Just run.
Logs
[CORE][ERROR] Unexpected error during startup: System.ArgumentException: Invalid format. A valid token looks like "1234567:4TT8bAc8GHUspu3ERYn-KGcvsvGB9u_n4ddy". (Parameter 'token') at Telegram.Bot.TelegramBotClient..ctor(String token, IWebProxy webProxy) at pmcenter.Program.MainAsync(String[] args) in <hidden>\pmcenter\Program.cs:line 195
Additional context
In
int.TryParse(string s, out int result)
, if the content ofs
exceeds int32,result
will be0
The text was updated successfully, but these errors were encountered: