- Clone repo.
- Edit
.env-examplefile, rename it to.env, paste BOT_TOKEN from https://t.me/botfather and paste ENDPOINT (your SERVER DOMAIN to accept requests). - Setup server to accept requests on port
45678(You can change port indocker-compose.ymlandmain.py:84). - Now you can: start
main.pymanually (not recommended) OR usedeploy.shto startBotinDocker(recommended) - Finally, go to bot PM and use
/start
๐โโ๏ธ If you use WebApp through the web.telegram.org, then Nginx will be very reluctant to give statics (WILL NOT).
๐ง This is caused by the iframe security policy, which needs to be slightly adjusted in the Nginx settings.
โ I am attaching a solution to the problem in the screenshot. If you have security settings defined in Nginx, then look for such a setting in your configs and edit it as in my screenshot.
nginx -s reload to update your config changes!
๐ As a result, Nginx will be happy to share static files with users of the web.telegram.org
๐โโ๏ธ TDesktop on a PC does not know how to use TLS 1.3, so be sure to specify the ability to use TLS 1.2 in the Nginx config.
P.S. ๐ Now it seems too early for TLS 1.3
