Closed valkuc closed 4 months ago
@valkuc try to set webhook option useHttps to true. According to:
the SSL plugin for Javalin is only initialized when this flag is enabled.
try (final var webhookApplication = new TelegramBotsWebhookApplication(WebhookOptions.builder().useHttps(true).enableRequestLogging(true).build())) {
@valkuc try to set webhook option useHttps to true. According to:
the SSL plugin for Javalin is only initialized when this flag is enabled.
try (final var webhookApplication = new TelegramBotsWebhookApplication(WebhookOptions.builder().useHttps(true).enableRequestLogging(true).build())) {
I'm not using Javalin part of the project. And I don't need HTTP/HTTPS server functionality (i.e. I don't want for TelegramBots lib to serve HTTPS requests for my bot). I just need the library to make call to Telegram servers and set up a webhook. The only dependency I use is a telegrambots-client
. That's it.
Describe the bug OkHttpTelegramClient does not have special implementation for SetWebhook, as result webhook with custom cert is sent as JSON without file content itself.
To Reproduce
or, just try your own example https://github.com/rubenlagus/TelegramBotsExample/blob/master/src/main/java/org/telegram/updateshandlers/WebHookExampleHandlers.java but add custom certificate to SetWebhook.
Expected behavior Certificate file should be sent.