Telegram.BotAPI
Telegram.BotAPI copied to clipboard
Bot shuts down without any error message
In my code, I tried to intercept all possible errors in the bot that could occur, but it still shuts down after a while. What could be the reason for this?
If you want our frankly bad code, here is a link to the repository: https://github.com/mindenit/nure-schedule-bot
I don't think you'll need to go any further than Program.cs.
Hello, sorry for the delay. Based only on the Program.cs file. I see that you use the chat -1002108311720 as a log. Bots have limits on how many messages they can send during a certain period of time. If the limit is exceeded, an error will appear in the catch, closing the program.