java-telegram-bot-api
java-telegram-bot-api copied to clipboard
Bot interface for TelegramBot is extracted
Extract interface for better testing approach
How does it help? This interface is not used anywhere in the library
This interface will improve testing capabilities of project that uses your library.
Otherwise user has to find workarounds to test his own code. For example: https://github.com/AndreyTW/roman-calculator/blob/main/roman-calculator-telegram/src/main/kotlin/ru/andreyTw/romanCalculator/telegram/TelegramBotWrapper.kt
You can extend TelegramBot class and make own TestTelegramBot