Eleirbag89 / TelegramBotPHP

A very simple PHP Telegram Bot API for sending messages.
http://eleirbag89.github.io/TelegramBotPHP
MIT License
800 stars 340 forks source link

Bot stops working in my group #210

Closed teflontoni closed 4 years ago

teflontoni commented 4 years ago

Hey,

I used this for a very simple WeatherForecast Bot... Basically /weather location and then the bot will send the result.

I have no errors in the log of my update.php, no apache errors and no Telegram Api errors, but after every x hours the bot stops responding...

I have to go to the botfather tell him about weather and then force a error message out of my bot to get him back to work. How do I keep the bot to listen?

I'm using a webhook by the way.

teflontoni commented 4 years ago

Okay, I could pin it down...

Whenever another bot says something my bot gets awestruck and basically has to be revived by /command@mybotsname_bot

Is there something I could add to my update.php to avoid this?

Eleirbag89 commented 4 years ago

I've never experieced something like this. The massages from other bots trigger some specific action? Maybe the script is to slow and exceds the maximum execution time?

teflontoni commented 4 years ago

Nope just the basic admin stuff, prove you're human, filters - nothing special.

A timeout seems unlikely, the group isn't very chatty and the other bots don't trigger a wall of text.

And this bot is set up with privacy enabled, so it's just waiting for that one command...

teflontoni commented 4 years ago

Don't ask me why, but promoting the bot to be an group admin solved the issue for me (or so I hope)