Skip to content

Installation #38

@mmojadad

Description

@mmojadad

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

<script> window.intergramId = "538255836" window.intergramServer = "https://chat.mydomain.com" </script> <script id="intergram" type="text/javascript" src="https://chat.mydomain.com/src/widget/widget.js"></script>
<title>Tahlilgaran!</title>
<link rel="stylesheet" type="text/css" href="https://chat.mydomain.com/css/chat.css">
<script src="https://chat.smydomain.com/src/chat/chat.js"></script> ----------------------------------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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions