idoco / intergram

Free live chat widget linked to your Telegram messenger
https://www.intergram.xyz
Mozilla Public License 2.0
1.4k stars 358 forks source link

Open chat window on first load #90

Open haizad opened 4 years ago

haizad commented 4 years ago

Hi,

It would be pleased me if anyone can show me how to let page automatically open chat windows on page load without having user to click the button below the page.

I think the workaround is somewhere inside widget.js, but I still can't figure it out.

I know this issue is related to : https://github.com/idoco/intergram/issues/68

..and I am truly aware about the WebSocket connection which can cause bad impact to the server workload if there are massive active connections. I already manage to tackle the issues where I let only one user can use the live chat at one time using one port. If there port have been used, the other user won't be allowed to chat until the one who are currently inside the port done chatting.

So back to the question, is there a way how can I let the page automatically open chat windows?

Any helps are greatly appreciated. Thank you.

p/s : I am hosting intergram on my server.