You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When trying to send a message from WEB bot crashes with message (code was check from latest master, also tried latest v4.1.1 tag):
Web message
=== UNHANDLED ERROR ===
Mon Apr 03 2023 13:56:15: Error: TypeError: Cannot read property 'toString' of undefined
at Object.msg (/home/www/telegram-support/src/middleware.ts:67:10)
at /home/www/telegram-support/src/users.ts:126:22
at Object.getOpen (/home/www/telegram-support/src/db.ts:42:3)
at Object.chat (/home/www/telegram-support/src/users.ts:91:8)
at /home/www/telegram-support/src/text.ts:51:17
at Object.getOpen (/home/www/telegram-support/src/db.ts:42:3)
at ticketHandler (/home/www/telegram-support/src/text.ts:44:8)
at Socket.<anonymous> (/home/www/telegram-support/src/addons/web.ts:56:26)
at Socket.emit (events.js:400:28)
at Socket.emit (domain.js:475:12)
To Reproduce
Steps to reproduce the behavior:
set in config/config.yaml:
web_server: true # Enable/disable web server
web_server_port: 8080 # Port for web server
Hello there! As you are a first time Issuer please check whether your issue description is reasonable and complete. If you are having an issue always include the versions you are using (NodeJs, Typescript, ...) as well as a way to reproduce it. Thank you for reading! Now continue :)
Describe the bug
When trying to send a message from WEB bot crashes with message (code was check from latest
master
, also tried latestv4.1.1
tag):To Reproduce
Steps to reproduce the behavior:
config/config.yaml
:Versions
Also demo version specified here - https://github.com/bostrot/telegram-support-bot/wiki/Addons#web-chat seems to be not working.
The text was updated successfully, but these errors were encountered: