Browse Source

1. Fix bug

master
Rubenlagu 11 years ago
committed by Rubenlagus
parent
commit
04b9f9686d
  1. 2
      src/main/java/org/telegram/updateshandlers/WeatherHandlers.java

2
src/main/java/org/telegram/updateshandlers/WeatherHandlers.java

@ -144,7 +144,7 @@ public class WeatherHandlers implements UpdatesCallback {
private static boolean isCommandForOther(String text) { private static boolean isCommandForOther(String text) {
boolean isSimpleCommand = text.equals("/start") || text.equals("/help"); boolean isSimpleCommand = text.equals("/start") || text.equals("/help");
boolean isCommandForMe = text.equals("/start@weatherbot") || text.equals("/help@weatherbot"); boolean isCommandForMe = text.equals("/start@weatherbot") || text.equals("/help@weatherbot");
return text.startWith("/") && !isSimpleCommand && !isCommandForMe; return text.startsWith("/") && !isSimpleCommand && !isCommandForMe;
} }
// endregion Incoming messages handlers // endregion Incoming messages handlers

Loading…
Cancel
Save