ChatGPTError: ChatGPT invalid session token
at new ChatGPTAPI (file:///root/chatgpt-telebot/node_modules/chatgpt/build/index.js:154:13)
at chatGpt (file:///root/chatgpt-telebot/index.js:31:17)
at msgHandler (file:///root/chatgpt-telebot/index.js:21:7)
at TelegramBot. (file:///root/chatgpt-telebot/index.js:12:3)
at TelegramBot.emit (/root/chatgpt-telebot/node_modules/eventemitter3/index.js:182:35)
at TelegramBot.processUpdate (/root/chatgpt-telebot/node_modules/node-telegram-bot-api/src/telegram.js:664:12)
at /root/chatgpt-telebot/node_modules/node-telegram-bot-api/src/telegramPolling.js:110:22
at Array.forEach ()
at /root/chatgpt-telebot/node_modules/node-telegram-bot-api/src/telegramPolling.js:106:17
at tryCatcher (/root/chatgpt-telebot/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/root/chatgpt-telebot/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/root/chatgpt-telebot/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/root/chatgpt-telebot/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/root/chatgpt-telebot/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/root/chatgpt-telebot/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/root/chatgpt-telebot/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/root/chatgpt-telebot/node_modules/bluebird/js/release/async.js:102:5)
at Async.drainQueues [as _onImmediate] (/root/chatgpt-telebot/node_modules/bluebird/js/release/async.js:15:14)
at process.processImmediate (node:internal/timers:471:21)
file:///root/chatgpt-telebot/index.js:44
tempId && bot.deleteMessage(msg.chat.id, tempId)
^
ReferenceError: tempId is not defined
at chatGpt (file:///root/chatgpt-telebot/index.js:44:5)
at msgHandler (file:///root/chatgpt-telebot/index.js:21:7)
at TelegramBot. (file:///root/chatgpt-telebot/index.js:12:3)
at TelegramBot.emit (/root/chatgpt-telebot/node_modules/eventemitter3/index.js:182:35)
at TelegramBot.processUpdate (/root/chatgpt-telebot/node_modules/node-telegram-bot-api/src/telegram.js:664:12)
at /root/chatgpt-telebot/node_modules/node-telegram-bot-api/src/telegramPolling.js:110:22
at Array.forEach ()
at /root/chatgpt-telebot/node_modules/node-telegram-bot-api/src/telegramPolling.js:106:17
at tryCatcher (/root/chatgpt-telebot/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/root/chatgpt-telebot/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/root/chatgpt-telebot/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/root/chatgpt-telebot/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/root/chatgpt-telebot/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/root/chatgpt-telebot/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/root/chatgpt-telebot/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/root/chatgpt-telebot/node_modules/bluebird/js/release/async.js:102:5)
at Async.drainQueues (/root/chatgpt-telebot/node_modules/bluebird/js/release/async.js:15:14)
at process.processImmediate (node:internal/timers:471:21)
ChatGPTError: ChatGPT invalid session token at new ChatGPTAPI (file:///root/chatgpt-telebot/node_modules/chatgpt/build/index.js:154:13) at chatGpt (file:///root/chatgpt-telebot/index.js:31:17) at msgHandler (file:///root/chatgpt-telebot/index.js:21:7) at TelegramBot. (file:///root/chatgpt-telebot/index.js:12:3)
at TelegramBot.emit (/root/chatgpt-telebot/node_modules/eventemitter3/index.js:182:35)
at TelegramBot.processUpdate (/root/chatgpt-telebot/node_modules/node-telegram-bot-api/src/telegram.js:664:12)
at /root/chatgpt-telebot/node_modules/node-telegram-bot-api/src/telegramPolling.js:110:22
at Array.forEach ()
at /root/chatgpt-telebot/node_modules/node-telegram-bot-api/src/telegramPolling.js:106:17
at tryCatcher (/root/chatgpt-telebot/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/root/chatgpt-telebot/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/root/chatgpt-telebot/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/root/chatgpt-telebot/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/root/chatgpt-telebot/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/root/chatgpt-telebot/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/root/chatgpt-telebot/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/root/chatgpt-telebot/node_modules/bluebird/js/release/async.js:102:5)
at Async.drainQueues [as _onImmediate] (/root/chatgpt-telebot/node_modules/bluebird/js/release/async.js:15:14)
at process.processImmediate (node:internal/timers:471:21)
file:///root/chatgpt-telebot/index.js:44
tempId && bot.deleteMessage(msg.chat.id, tempId)
^
ReferenceError: tempId is not defined at chatGpt (file:///root/chatgpt-telebot/index.js:44:5) at msgHandler (file:///root/chatgpt-telebot/index.js:21:7) at TelegramBot. (file:///root/chatgpt-telebot/index.js:12:3)
at TelegramBot.emit (/root/chatgpt-telebot/node_modules/eventemitter3/index.js:182:35)
at TelegramBot.processUpdate (/root/chatgpt-telebot/node_modules/node-telegram-bot-api/src/telegram.js:664:12)
at /root/chatgpt-telebot/node_modules/node-telegram-bot-api/src/telegramPolling.js:110:22
at Array.forEach ()
at /root/chatgpt-telebot/node_modules/node-telegram-bot-api/src/telegramPolling.js:106:17
at tryCatcher (/root/chatgpt-telebot/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/root/chatgpt-telebot/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/root/chatgpt-telebot/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromise0 (/root/chatgpt-telebot/node_modules/bluebird/js/release/promise.js:649:10)
at Promise._settlePromises (/root/chatgpt-telebot/node_modules/bluebird/js/release/promise.js:729:18)
at _drainQueueStep (/root/chatgpt-telebot/node_modules/bluebird/js/release/async.js:93:12)
at _drainQueue (/root/chatgpt-telebot/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/root/chatgpt-telebot/node_modules/bluebird/js/release/async.js:102:5)
at Async.drainQueues (/root/chatgpt-telebot/node_modules/bluebird/js/release/async.js:15:14)
at process.processImmediate (node:internal/timers:471:21)
Node.js v18.12.1