Skip to content

✨ New features & Code Refactoring#2

Merged
Qiamast merged 2 commits intoQiamast:mainfrom
IHosseini083:main
Feb 20, 2022
Merged

✨ New features & Code Refactoring#2
Qiamast merged 2 commits intoQiamast:mainfrom
IHosseini083:main

Conversation

@IHosseini083
Copy link
Copy Markdown
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