-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMain.java
33 lines (27 loc) · 828 Bytes
/
Main.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import org.telegram.telegrambots.ApiContextInitializer;
import org.telegram.telegrambots.TelegramBotsApi;
import org.telegram.telegrambots.api.objects.replykeyboard.ReplyKeyboardMarkup;
import org.telegram.telegrambots.exceptions.TelegramApiRequestException;
import java.io.IOException;
/**
* Created by Romina Etezadi on 3/25/2017.
*/
public class Main
{
public static void main(String args[]) throws IOException {
/**/
ApiContextInitializer.init();
TelegramBotsApi tlgrBotApi = new TelegramBotsApi();
try
{
K_BOT bt = new K_BOT();
tlgrBotApi.registerBot(bt);
} catch (TelegramApiRequestException e)
{
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
/**/
}
}