Merge pull request #280 from McPringle/dev

Adding API context initialization to example code snippet
This commit is contained in:
Ruben Bermudez 2017-09-17 00:07:02 +02:00 committed by GitHub
commit c63117cdc1

View File

@ -50,7 +50,7 @@ Once done, you just need to create a `org.telegram.telegrambots.TelegramBotsApi`
// Example taken from https://github.com/rubenlagus/TelegramBotsExample
public class Main {
public static void main(String[] args) {
ApiContextInitializer.init();
TelegramBotsApi telegramBotsApi = new TelegramBotsApi();
try {
telegramBotsApi.registerBot(new ChannelHandlers());