Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot interface for TelegramBot is extracted #334

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AndreyTW
Copy link

Extract interface for better testing approach

@pengrad
Copy link
Owner

pengrad commented Aug 27, 2023

How does it help? This interface is not used anywhere in the library

@AndreyTW
Copy link
Author

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

@pengrad
Copy link
Owner

pengrad commented Sep 23, 2023

You can extend TelegramBot class and make own TestTelegramBot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants