m1guelpf / chatgpt-telegram

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

chatgpt-telegram.exe window disappears without error message #24

Closed Tegasus9 closed 1 year ago

Tegasus9 commented 1 year ago

I recently installed chatgpt-telegram.exe on my Windows10 system computer and was able to successfully sign in OpenAI website. However, after a few seconds the window disappears suddenly without any error message. I'm not sure what's causing this issue or how to fix it.

Also, my .env is configured and get my TELEGRAM_TOKEN writed in it.And I tried run this program with 'Run as administrator'.

Can anyone provide some guidance on what might be happening and how I can troubleshoot this problem?

Thanks in advance for your help.

Tegasus9 commented 1 year ago

The only output I can see in the window is: "2022/12/06 22:59:13 Started ChatGPT"

And there are no other messages or prompts visible in the window.

m1guelpf commented 1 year ago

Did you create the .env file as instructed in the README?

Tegasus9 commented 1 year ago

Did you create the .env file as instructed in the README?

OMG……Thank you for updating the README this morning. I didn't know until today that I could use WindowsPowerShell to open .exe program. After running, the friendly reminder told me "Couldn't start Telegram bot: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond." When I enabled the proxy and restarted the program, everything worked normally.

Finally I saw "Started Telegram bot! Message @**_bot to start.".Thank you.