Installation
Hello I confused aout howto install it correctly. (Self Hosting i mean ) I try in Linux environment / Enabled SSL on the Domain / Copy repo to my domain root /
Edited server.js file
" .post('https://api.telegram.org/bot' + process.env.538255836:AAHqk2qadasdRYLBlN025sExcmW5koTLxj8 + '/sendMessage') "
Edited chat.html file
<title>Tahlilgaran!</title>
<link rel="stylesheet" type="text/css" href="https://chat.mydomain.com/css/chat.css">
----------------------------------BUT------------------
Only a grey screen show me in
https://chat.mydomain.com/chat.html
And SyntaxError: import declarations may only appear at top level of a module widget.js:1 SyntaxError: import declarations may only appear at top level of a module chat.js:1 The character encoding of the HTML document was not declared. The document will render with garbled text in some browser configurations if the document contains characters from outside the US-ASCII range. The character encoding of the page must be declared in the document or in the transfer protocol. chat.html
Error in line 1 of widget.js: import { h, Component } from 'preact';
Just to help. I managed to install in in Heroku. There you just leave that sentence as it is (process.env.TELEGRAM_TOKEN), do not replace there with your TELEGRAM_TOKEN. Instead, go to heroku dashboard (https://dashboard.heroku.com ) in settings go to reveal config vars and then: in KEY, put "TELEGRAM_TOKEN", and in VALUE the your telegram token.
Also, I found very helpful this article https://medium.com/@xabaras/setting-your-telegram-bot-webhook-the-easy-way-c7577b2d6f72.
Hope it helps!