Open yanCode opened 1 year ago
it seems this bug is from node-telegram-bot-api
Error: ETELEGRAM: 400 Bad Request: can't parse entities: Character '|' is reserved and must be escaped with the preceding '\' at /Users/y/youtube/chatgpt-telegram-bot/node_modules/.pnpm/node-telegram-bot-api@0.60.0/node_modules/node-telegram-bot-api/src/telegram.js:284:15 at tryCatcher (/Users/y/youtube/chatgpt-telegram-bot/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/util.js:16:23) at Promise._settlePromiseFromHandler (/Users/y/youtube/chatgpt-telegram-bot/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:547:31) at Promise._settlePromise (/Users/y/youtube/chatgpt-telegram-bot/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:604:18) at Promise._settlePromise0 (/Users/y/youtube/chatgpt-telegram-bot/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:649:10) at Promise._settlePromises (/Users/y/youtube/chatgpt-telegram-bot/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/promise.js:729:18) at _drainQueueStep (/Users/y/youtube/chatgpt-telegram-bot/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:93:12) at _drainQueue (/Users/y/youtube/chatgpt-telegram-bot/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:86:9) at Async._drainQueues (/Users/y/youtube/chatgpt-telegram-bot/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:102:5) at Async.drainQueues [as _onImmediate] (/Users/y/youtube/chatgpt-telegram-bot/node_modules/.pnpm/bluebird@3.7.2/node_modules/bluebird/js/release/async.js:15:14) at process.processImmediate (node:internal/timers:471:21) at process.callbackTrampoline (node:internal/async_hooks:132:17) {code: "ETELEGRAM", response: IncomingMessage, stack: "Error: ETELEGRAM: 400 Bad Request: can't parse ent…backTrampoline (node:internal/async_hooks:132:17)", message: "ETELEGRAM: 400 Bad Request: can't parse entities: …served and must be escaped with the preceding '\'"}
Not a duplicate issue
Verify ChatGPT service is operational
Bot version
2.5.0
API type
official
Environment details
Node.js v19.2.0 m1 mac osx , run in local env.
Describe the Bug
When i request a table in the question, like asking
show me a table of difference between shanghai and nanjing
or用表格显示南京和上海的区别
when the response includes
|
, it prints the error:5/20/2023, 3:38:41 PM ⛔️ Edit message error: ETELEGRAM: 400 Bad Request: can't parse entities: Character '|' is reserved and must be escaped with the preceding '\'
To Reproduce
ask any questions that can return a table, like
show me a table of difference between shanghai and nanjing
or用表格显示南京和上海的区别
Logs
Additional context
No response