rubenlagus / TelegramBots

Java library to create bots using Telegram Bots API
https://telegram.me/JavaBotsApi
MIT License
4.79k stars 1.23k forks source link

Update BotSession.java #1435

Closed auok-ingou closed 1 month ago

auok-ingou commented 1 month ago

this is not stop executor task,because createPollerTask() the fuction submit task and start task. maybe this runningPolling.cancel(false) -> runningPolling.cancel(true); or add executor.shutdown(); I hope the author can see and adopt it. I have been unable to exit the program due to this line of code