m1guelpf/chatgpt-telegram

Invalid .env config

behzads2 opened this issue · 0 comments

Hello there,

It sounds like you have set your Telegram bot token in an environment variable within a file named env.env. However, you are still encountering issues when launching the GPT bot.

To help diagnose the issue, can you provide more information about the error message or behavior that you are experiencing? This will help to narrow down the possible causes and find a solution.

In the meantime, make sure that the env.env file is in the same directory as the chatgpt-telegram executable file, and that the TELEGRAM_TOKEN environment variable is spelled correctly and matches the format expected by the GPT bot. Also, double-check that the env.env file is being loaded by the GPT bot when it launches.

Let me know if you have any further questions or if you encounter any specific error messages.

Screenshot 2023-03-16 at 20 02 02

Last login: Thu Mar 16 20:02:54 on ttys001
mrb@mym ~ % /Users/mrb/Desktop/chatgpt-telegram-Darwin-amd64/chatgpt-telegram ; exit;
2023/03/16 20:04:34 Started ChatGPT
2023/03/16 20:04:34 config file .env does not exist, using env variables
2023/03/16 20:04:34 Invalid .env config: TELEGRAM_TOKEN is not set

Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.