edisonchee / slimbot

Telegram Bot API for Node.js
MIT License
223 stars 37 forks source link

bot died in 20 seconds #36

Closed suntong closed 4 years ago

suntong commented 4 years ago

Hi,

Please take a look at this simpleUsage.js copied from https://github.com/edisonchee/slimbot/blob/master/examples/simpleUsage.js, just without slimbot.stopPolling.

However, it will die in 20 seconds:

$ time node simpleUsage.js 
polling...

real    0m20.915s
user    0m0.335s
sys     0m0.041s

I was expecting that the bot stay listening as long as I don't kill it.

suntong commented 4 years ago

This basically means that the module is unusable.
Switching to https://github.com/yagop/node-telegram-bot-api and am very happy now.

Feel free to close it or fix it...

ohenley commented 4 years ago

@suntong Thx for refering a working repo... this will be my third try.

edisonchee commented 4 years ago

Can't replicate the issue on my end. Tested on Node versions 10.16.0, 12.10.0 and 13.8.0. Without further information I can't help you debug.

Closed till more people have similar issues.

qelphybox commented 4 years ago

@edisonchee thx, i had the same problem, update to 13.8.0 helped

paskausks commented 4 years ago

This issue was encountered on v12.14.0, but an update to v12.18.2 seemed to fix it. Very interesting what the cause is.