diff --git a/README.md b/README.md index 7c4f97f..1b9d5d3 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Please, **DO NOT PUSH ANY TOKEN OR API KEY**, I will never accept a pull request ## Webhooks vs GetUpdates Both ways are supported (but I still didn't tested webhooks). To change between them, just go to *BuildVars.java* and change variable *useWebHook* value. -I recommend using getUpdates methods. Webhooks only works using a certificated that is not self-signed +I recommend using getUpdates methods. Webhooks a bit less trustful ## Example bots Open them and send them */help* command to get some information about their capabilities: diff --git a/src/main/java/org/telegram/services/DirectionsService.java b/src/main/java/org/telegram/services/DirectionsService.java index 57a0821..305a651 100644 --- a/src/main/java/org/telegram/services/DirectionsService.java +++ b/src/main/java/org/telegram/services/DirectionsService.java @@ -13,7 +13,6 @@ import org.json.JSONObject; import org.jsoup.Jsoup; import org.telegram.BuildVars; -import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.URLEncoder; import java.time.format.DateTimeFormatter; diff --git a/src/main/java/org/telegram/services/LocalisationService.java b/src/main/java/org/telegram/services/LocalisationService.java index aab5ceb..48161f0 100644 --- a/src/main/java/org/telegram/services/LocalisationService.java +++ b/src/main/java/org/telegram/services/LocalisationService.java @@ -3,7 +3,10 @@ package org.telegram.services; import java.io.ByteArrayInputStream; import java.io.IOException; import java.io.InputStream; -import java.util.*; +import java.util.HashMap; +import java.util.Locale; +import java.util.MissingResourceException; +import java.util.ResourceBundle; /** * @author Ruben Bermudez diff --git a/src/main/java/org/telegram/services/TimerExecutor.java b/src/main/java/org/telegram/services/TimerExecutor.java index 2346d7b..278313e 100644 --- a/src/main/java/org/telegram/services/TimerExecutor.java +++ b/src/main/java/org/telegram/services/TimerExecutor.java @@ -1,6 +1,8 @@ package org.telegram.services; -import java.time.*; +import java.time.Clock; +import java.time.Duration; +import java.time.LocalDateTime; import java.util.concurrent.Executors; import java.util.concurrent.ScheduledExecutorService; import java.util.concurrent.TimeUnit;