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

✨ New features & Code Refactoring #2

Merged
merged 2 commits into from
Feb 20, 2022
Merged

Conversation

IHosseini083
Copy link
Contributor

@IHosseini083 IHosseini083 commented Feb 20, 2022

New features 🆕

  • Added pagination for images in inline query results.
  • Added command parser system for inline queries. For example if an inline query is like Hello world page:2, the parser will extract the page:2 command from the query and sets the searching page to 2.
  • Added command handler for /help command to show the user usage and searching instructions.

Code Improvements & Minor changes ⚒️

  • Removed an unnecessary "else" statement in CSE API request handler.
  • Moved the main bot texts to a separate file named texts.py.
  • Added more TODOs 📒 to be implemented in the future.

- Removed an unnecessary "else" statement.
Added pagination and command parser system for inline queries.
Moved the main texts to a separate file.
Added a new command handler for `/help` message.
@IHosseini083 IHosseini083 changed the title ✨ Code Refactoring ✨ New features & Code Refactoring Feb 20, 2022
@Qiamast Qiamast merged commit 3604109 into Qiamast:main Feb 20, 2022
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.

2 participants