Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. import org.telegram.telegrambots.ApiContextInitializer;
  2. import org.telegram.telegrambots.meta.TelegramBotsApi;
  3. import org.telegram.telegrambots.meta.exceptions.TelegramApiException;
  4.  
  5. public class Main {
  6.  
  7. public static void main(String[] args) {
  8.  
  9. ApiContextInitializer.init();
  10.  
  11. TelegramBotsApi botsApi = new TelegramBotsApi();
  12.  
  13. try {
  14. botsApi.registerBot(new Bot());
  15. } catch (TelegramApiException e) {
  16. e.getStackTrace();
  17. }
  18.  
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement