- Clone repo.
- Edit
.env-example
file, 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.yml
andmain.py:84
). - Now you can: start
main.py
manually (not recommended) OR usedeploy.sh
to startBot
inDocker
(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