RainEggplant / chatgpt-telegram-bot

A ChatGPT bot for Telegram based on Node.js. Support both browserless and browser-base APIs.
MIT License
322 stars 97 forks source link

[Error]: 404: Not Found #40

Closed DukeJerry closed 1 year ago

DukeJerry commented 1 year ago

Not a duplicate issue

Verify ChatGPT service is operational

Bot version

v.2.4.0

API type

official

Environment details

Node.js version: 18 operating system: Debian 11 x64 (bullseye)

Describe the Bug

I followed the instructions run the command "pnpm build && pnpm start" return the error

loadFromJsonFile ok 3/20/2023, 3:39:13 AM šŸ”® ChatGPT API has started... bot.launch ChatGptTelegraf:InChat : undefined start ServerApp 404: Not Found Error: 404: Not Found at Telegram.callApi (/root/chatgpt-telegram-bot_RainEggplant/node_modules/.pnpm/telegraf@4.12.2/node_modules/telegraf/lib/core/network/client.js:293:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Telegraf.launch (/root/chatgpt-telegram-bot_RainEggplant/node_modules/.pnpm/telegraf@4.12.2/node_modules/telegraf/lib/telegraf.js:182:78)

To Reproduce

No response

Logs

No response

Additional context

No response

RainEggplant commented 1 year ago

Did you modify the code? This project uses node-telegram-bot-api instead of telegraf. However, the error message seems to be related to telegraf.

DukeJerry commented 1 year ago

Did you modify the code? This project uses node-telegram-bot-api instead of telegraf. However, the error message seems to be related to telegraf.

I did not modify any codeļ¼Œ just useā€œgit cloneā€ļ¼Œand use the command to install态build and start.

RainEggplant commented 1 year ago

Please double-check that your codebase matches this project and your package installation is correct. This project should not be raising any error related to telegraf.

DukeJerry commented 1 year ago

Please double-check that your codebase matches this project and your package installation is correct. This project should not be raising any error related to telegraf.

I found the code udner BotBase.ts "import {Telegraf, session, Context} from 'telegraf';"

RainEggplant commented 1 year ago

I found the code udner BotBase.ts "import {Telegraf, session, Context} from 'telegraf';"

That's not my code. Please reclone this repository.

DukeJerry commented 1 year ago

OK, I cleanup the dir ,reclone the repository怂 rebuild it All is fineļ¼ŒThanks a lot