📝 Adding API context initialization to example code snippet

This commit is contained in:
Marcus Fihlon 2017-07-25 14:44:41 +02:00
parent ffcdbd126e
commit b83d77c78d
No known key found for this signature in database
GPG Key ID: C6B7F469EE363E1F

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());