m1guelpf / chatgpt-telegram

Run your own GPTChat Telegram bot, with a single command!
MIT License
3.9k stars 560 forks source link

Bot says typing for a few seconds and then disappears. #29

Open rsmyst opened 1 year ago

rsmyst commented 1 year ago

Please help.

EricMeteorite commented 1 year ago

This should be a problem with ChatGPT. ChatGPT often delays to give you a reply when you ask some questions. Sometimes it responds faster and gives you an answer immediately. Generally, restarting chatgpt-telegram can solve the problem , or change a session token and try to run the program again.

lxy1992 commented 1 year ago

I met the same problem. It may be the token has expired. Login on web page to get the new token, replace the old one, this will fix your problem

TheGodfather69X commented 1 year ago

I met the same problem. It may be the token has expired. Login on web page to get the new token, replace the old one, this will fix your problem

I tried to replace the token but it dint helped tho. the same issue exists

sohaibahsan007 commented 1 year ago

Facing the same issue, tried to restart it twice, but after the first message, it stopped replying. Screenshot 2022-12-07 at 4 54 56 PM

EricMeteorite commented 1 year ago

This maybe is because:

  1. sometimes ChatGPT will delay to give the user a reply, or
  2. sometimes report an error due to network problems. so, we cannot recieve the reply from the chatGPT,

and if these issues happend, the chatgpt-telegram will not to get the chatGPT's replies, and then we cannot get the replies from the bot. Also, the chatgpt-telegram will still be running in the background, but it will no longer be able to send us any replies.

sohaibahsan007 commented 1 year ago

So we need to restart every time?

EricMeteorite commented 1 year ago

This is also what I hope to fix, hoping to either detect that no reply text is returned and restart, or control the server through telegram, and so on. Hopefully it will be fixed in the future.

sohaibahsan007 commented 1 year ago

this repo is a bit hard to run for a new person, but the issue doesn't exist while running. chatGPT-telegram-bot maybe you can get some idea.