rubenlagus / TelegramBots

Java library to create bots using Telegram Bots API
https://telegram.me/JavaBotsApi
MIT License
4.77k stars 1.22k forks source link

Bot crashes #277

Closed strifel closed 7 years ago

strifel commented 7 years ago

Exception in thread "main" com.google.inject.ConfigurationException: Guice configuration errors:

1) No implementation for org.telegram.telegrambots.generics.BotSession was bound. while locating org.telegram.telegrambots.generics.BotSession

1 error at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1045) at com.google.inject.internal.InjectorImpl.getProvider(InjectorImpl.java:1004) at com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1054) at org.telegram.telegrambots.ApiContext.getInstance(ApiContext.java:25) at org.telegram.telegrambots.TelegramBotsApi.registerBot(TelegramBotsApi.java:121) at de.felix.telegrammbot.Main.(Main.java:22) at de.felix.telegrammbot.Starter.main(Starter.java:10)

strifel commented 7 years ago

Forgot ApiContext init