import org.telegram.telegrambots.api.methods.send.SendMessage;
import org.telegram.telegrambots.api.objects.Message;
import org.telegram.telegrambots.api.objects.Update;
import org.telegram.telegrambots.bots.TelegramLongPollingBot;

public class TelegramBot extends TelegramLongPollingBot {
    @Override
    public void onUpdateReceived(Update update) {
        System.out.println(update.getMessage());
        try{
            SendMessage message = new SendMessage() // Create a SendMessage object with mandatory fields
                .sendChatId(update.getMessage().getChatId())
                .setReplyToMessageId(update.getMessage().getMessageId())
                .setText("Hello World!");
            this.sendMessage(message);
        }catch(Exception ex){
            System.out.println("Error");
        }
    }
    @Override
    public String getBotUsername() {
        return "Test-API";
    }
    @Override
    public String getBotToken() {
        return "<token>";
    }
}

@@ -60,62 +60,8 @@
 ge;%0A
-import org.telegram.telegrambots.api.objects.Message;%0A
 impo
@@ -230,18 +230,16 @@
 ngBot %7B%0A
-  
   @Overr
@@ -236,32 +236,58 @@
 %7B%0A  @Override%0A  
+/*%0A   * %E6%8E%A5%E6%94%B6%E8%A8%8A%E6%81%AF%E6%99%82 %E9%81%8B%E8%A1%8C%E6%AD%A4%E5%85%A7%E5%AE%B9%0A   */%0A
   public void on
@@ -318,24 +318,61 @@
 date) %7B%0A    
+/*%0A     * %E5%9C%A8%E5%91%BD%E4%BB%A4%E6%AC%84%E9%A1%AF%E7%A4%BA%E6%8E%A5%E6%94%B6%E7%9A%84%E6%B6%88%E6%81%AF json%E6%A0%BC%E5%BC%8F%0A     */%0A
     System.o
@@ -408,20 +408,16 @@
 ));%0A    
-    
 try%7B%0A   
@@ -415,24 +415,63 @@
  try%7B%0A      
+/*%0A       * %E8%A8%AD%E5%AE%9A%E7%99%BC%E6%B6%88%E6%81%AF%E5%85%A7%E5%AE%B9 %E5%B0%81%E8%A3%9D%E7%82%BA%E4%B8%80%E5%80%8B%E6%96%B0%E5%B0%81%E5%8C%85%0A       */%0A
       SendMe
@@ -575,15 +575,12 @@
     
- 
- 
 .se
-nd
+t
 Chat
@@ -611,26 +611,24 @@
 etChatId())%0A
-  
             
@@ -682,26 +682,24 @@
 essageId())%0A
-  
             
@@ -715,16 +715,17 @@
 t(%22Hello
+w
  World!%22
@@ -729,24 +729,81 @@
 d!%22);%0A      
+/*%0A       * %E8%AA%BF%E7%94%A8super class%E7%9A%84sendMessage%E5%8A%9F%E8%83%BD %E6%8A%8A%E5%B0%81%E5%8C%85%E7%99%BC%E5%87%BA%E5%8E%BB%0A       */%0A
       this.s
@@ -823,20 +823,16 @@
 ssage);%0A
-    
     %7Dcat
@@ -855,22 +855,16 @@
 %7B%0A      
-     
- 
 System.o
@@ -892,36 +892,51 @@
     
-    %7D%0A    %7D%0A    @Override%0A  
+%7D%0A  %7D%0A  @Override%0A  /*%0A   * %E7%B5%A6%E6%A9%9F%E5%99%A8%E4%BA%BA%E4%B8%80%E5%80%8B%E5%90%8D%E5%AD%97%0A   */%0A
   pu
@@ -962,36 +962,32 @@
 sername() %7B%0A    
- 
-   
 return %22Test-API
@@ -983,28 +983,24 @@
 n %22T
-est
+EST
 -API%22;%0A
-  
   %7D%0A  
- 
- 
 @Ove
@@ -1007,16 +1007,46 @@
 rride%0A  
+/*%0A   * %E8%AE%93API%E7%9F%A5%E9%81%93%E5%93%AA%E5%80%8B%E6%A9%9F%E5%99%A8%E4%BA%BA%E9%9C%80%E8%A6%81%E9%81%8B%E8%A1%8C%0A   */%0A
   public
@@ -1069,20 +1069,16 @@
 ken() %7B%0A
-    
     retu
@@ -1091,16 +1091,14 @@
 oken%3E%22;%0A
-  
   %7D%0A%7D%0A

Update TelegramBot.java