telegram_bot
https://api.telegram.org/botTOKEN/getWebhookInfo
openssl req -new -x509 -days 3650 -nodes -out PUBLIC_NAME.pem -keyout PRIVATE_NAME.key -subj “/C=RU/ST=SPb/L=SPb/O=Global Security/OU=IT Department/CN=rebb.ru/CN=www.rebb.ru/”
curl -F “url=https://www.rebb.ru/bot_file.php” -F “certificate=@PUBLIC_NAME.pem” “https://api.telegram.org/botTOKEN/setwebhook”
curl -F “url=https://www.rebb.ru/bot_file.php” -F “certificate=/etc/letsencrypt/live/DOMAIN/privkey.pem” “https://api.telegram.org/botTOKEN/setwebhook”
telegram_bot.txt · Last modified: 2024/07/20 18:32 by ryas