src/Prototype2.java
/**
     * @param args the command line arguments
     */
@param args the command line arguments
@param args the command line arguments
public static void main(String[] args) {
        ApiContextInitializer.init();
        TelegramBotsApi botsApi = new TelegramBotsApi();
        try {
            botsApi.registerBot(new TelegramBot());
        } catch (TelegramApiException e) {
            e.printStackTrace();
        }
        System.out.println("successfully started bot");
        MainInterface mainwindow = new MainInterface();
        mainwindow.setVisible(true);
    }
public static void main ( String [ ] args ) { ApiContextInitializer . init ( ) ; TelegramBotsApi botsApi = new TelegramBotsApi ( ) ; try { botsApi . registerBot ( new TelegramBot ( ) ) ; } catch ( TelegramApiException e ) { e . printStackTrace ( ) ; } System . out . println ( "successfully started bot" ) ; MainInterface mainwindow = new MainInterface ( ) ; mainwindow . setVisible ( true ) ; }
@param args the command line arguments
@param args the command line arguments