Telegram.BotAPI icon indicating copy to clipboard operation
Telegram.BotAPI copied to clipboard

Bot shuts down without any error message

Open ketronix-dev opened this issue 2 years ago • 1 comments

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.

ketronix-dev avatar Apr 01 '24 19:04 ketronix-dev

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.

Eptagone avatar May 07 '24 04:05 Eptagone