BOT_TOKEN="18045447450203:AAGEjU7HKEEGle1Zv2an5sVF49QxNxhw03w" CHAT_ID="33109821804" FILE_PATH=/etc/openvpn/client.ovpn MESSAGE="Это ваш конфиг" curl -F chat_id="$CHAT_ID" -F document=@"$FILE_PATH" -F caption="$MESSAGE" "https://api.telegram.org/bot$BOT_TOKEN/sendDocument"
IP_local=$(ip -4 a | grep inet | grep $ETH | awk '/inet/ {print $2}')
IP_global=$(curl 2ip.ru)
BOT_TOKEN="18045447450203:AAGEjU7HKEEGle1Zv2an5sVF49QxNxhw03w" CHAT_ID="33109821804" MESSAGE="LAN ip $IP_local WAN ip $WAN $IP_global" curl -s -X POST "https://api.telegram.org/bot$BOT_TOKEN/sendMessage" -d "chat_id=$CHAT_ID&text=$MESSAGE" > /dev/null