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

HttpClient NPE #1246

Closed 4o4-Not-Found closed 7 months ago

4o4-Not-Found commented 1 year ago

telegrambots-spring-boot-starter:6.7 springboot:2.6.5

The bot is implemented by inheriting the SpringWebhookBot.

    @Autowired
    public Bot(SetWebhook setWebhook, @Value("${telegrambot.token}") String botToken) {
        super(setWebhook, botToken);
    }

When using the defaultAbsSender.execute() method, sending a SendMessage is ok, but when sending a SendSticker the httpClient is null.

image image
4o4-Not-Found commented 1 year ago

somebody help T.T

rubenlagus commented 7 months ago

Please check new version HttpClient is no used anymore