Daily Archives: 13.10.2019
Make your bot for telegram using go
It’s really not that difficult. Here are the docs: https://core.telegram.org/bots https://core.telegram.org/bots/api Here is a simple library in go for telegram — https://github.com/go-telegram-bot-api/telegram-bot-api/ (too simple, from my point of view, does not cover all functionality, but okay). And here is a skeletton for making your bots if you want it as just standalone binary — https://github.com/nezorflame/example-telegram-bot/
Letsencrypt — easy way
Now you can install certbot-nginx and it will do everything for you.
1 |
sudo yum install certbot-nginx |
And then
1 |
sudo certbot --nginx -d example.com -d www.example.com |
If it does not work, try this sudo certbot -d example.com -d www.example.com and then select nginx in a prompt. https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-centos-7
Install postgresql 11 on CentOs7
Just what to do, no discussion.