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

Changed API from bot-centered to method-centered #331

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

Conversation

HarryZalessky
Copy link
Contributor

fixes #164

• Moved execute method from TelegramBot to BaseRequest
• Moved DeleteMyCommands.java from model to request
• Added BaseRequest.api member for execute method
• Added api argument to all constructors and static generator functions and passed them down to BaseRequest.
• Added wrapper functions for all requests in TelegramBot.
• Fixed tests to use new API. NOTE: LogOutCloseTest.java is inherently broken and has to be fixed.
• Deprecated the entire SetStickerSetThumb class, instead of one of the compilers.
• Fixed API usage in sample to match the new API.
• Added lambda syntax to execute method
@HarryZalessky
Copy link
Contributor Author

@pengrad review? :)

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.

Make a sweet API
1 participant