pengrad / java-telegram-bot-api

Telegram Bot API for Java
https://core.telegram.org/bots
Apache License 2.0
1.79k stars 372 forks source link

not work #101

Closed gkamaall closed 7 years ago

gkamaall commented 7 years ago

i add jar file in may project in netbeans but have many errore why?

Exception in thread "OkHttp Dispatcher" java.lang.AbstractMethodError: com.pengrad.telegrambot.impl.TelegramBotClient$1.onResponse(Lokhttp3/Response;)V at okhttp3.RealCall$AsyncCall.execute(RealCall.java:133) at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:33) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

pengrad commented 7 years ago

Please try to add other dependencies as well https://oss.sonatype.org/content/repositories/releases/com/github/pengrad/java-telegram-bot-api/3.1.0/java-telegram-bot-api-3.1.0.pom

I will prepare full jar with dependencies.

But better switch to maven/gradle using

pengrad commented 7 years ago

@gkamaall Please, check jar from here https://github.com/pengrad/java-telegram-bot-api/releases/tag/3.1.0