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

Closed
wants to merge 1 commit into 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

@anfanik
Copy link
Collaborator

anfanik commented Jan 26, 2025

Extracted to TelegramAware in #412

@anfanik anfanik closed this Jan 26, 2025
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.

3 participants