Telegram bot stops rebatement 10 after launch. How to fix it?

Hello! Wrote a bot in Ruby, ordered it on the startup in the rc file.local on Raspberry pi (Raspbian OS). When you run the option bot works just fine, but after a while it stops working. You need to restart the raspberry. Please tell me how to fix this?

I wrote this article
July 12th 19 at 16:55
2 answers
July 12th 19 at 16:57
You need to add a loop cycle
loop do
July 12th 19 at 16:59
As a minimum you need to find out the reason by looking in the system log. Corny, may not have enough memory due to uneconomical consumption.

Find more questions by tags RubyTelegram