pengrad / java-telegram-bot-api

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

Java EE #22

Closed antonkazakov closed 8 years ago

antonkazakov commented 8 years ago

Hi. I am curious is this api working fine with Java EE? I am asking it because another java bot API listed in official telegram page have some troubles with concurrency in java EE.

Thanks.

pengrad commented 8 years ago

Hi, I know some problems with Google App Engine, but not with Java EE. It's very easy to test, so you could try and tell me if something wrong.

antonkazakov commented 8 years ago

Definitely I will:) Thank you

roabol commented 5 years ago

Hello, I'm trying to run the api in a JEE application, using payara server. But when I run the simple routine of sending a message to a group I get an exception. I have already tried to enter the telegram certificate in the keystore.jks and cacert.jks of the $ PAYARA_HOME / glassfish / domains / lardosmeussonhos / config server, but it did not resolve. can you help me?

This is the exception: java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at com.pengrad.telegrambot.impl.TelegramBotClient.send(TelegramBotClient.java:59) at com.pengrad.telegrambot.TelegramBot.execute(TelegramBot.java:41) ...