i just tried to lunch my bot i got this error
why?
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 base.Main.main(Main.java:11)
and here is my main class
public class Main {
public static void main(String[] args) throws TelegramApiRequestException {
// write your code here
TelegramBotsApi telegramBotsApi = new TelegramBotsApi();
telegramBotsApi.registerBot(new bot()); // this is the error line
}
i just tried to lunch my bot i got this error why?
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 base.Main.main(Main.java:11)
and here is my main class
public class Main {
}