From a575e6c9f69f7a937cc14bb95e459edaa93f5c11 Mon Sep 17 00:00:00 2001 From: XyL1GaN4eG Date: Sat, 27 Jul 2024 19:48:43 +0300 Subject: [PATCH] Hide another api key (google script translate) --- .../tgbotservice/clients/GoogleTranslateClient.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tgBotService/src/main/java/weatherproject/tgbotservice/clients/GoogleTranslateClient.java b/tgBotService/src/main/java/weatherproject/tgbotservice/clients/GoogleTranslateClient.java index 4a67077..fb9b32b 100644 --- a/tgBotService/src/main/java/weatherproject/tgbotservice/clients/GoogleTranslateClient.java +++ b/tgBotService/src/main/java/weatherproject/tgbotservice/clients/GoogleTranslateClient.java @@ -43,7 +43,7 @@ public String translateRuToEng(String text) { private String translateFromTo(String langFrom, String langTo, String text) { try { - String urlStr = "https://script.google.com/macros/s/AKfycbzO8nojwkOWKi3DjljSEf8byUYIwzNHIIhSRcPn4lGkE_1-m_LuqwU1s5SLJ0TRiarj/exec" + + String urlStr = "https://script.google.com/macros/s/{GOOGLE_SCRIPT_TRANSLATE_KEY}/exec" + "?q=" + URLEncoder.encode(text, "UTF-8") + "&target=" + langTo + "&source=" + langFrom;