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

Refactor: API inline query handler #2

Merged
merged 2 commits into from
Sep 30, 2024
Merged

Refactor: API inline query handler #2

merged 2 commits into from
Sep 30, 2024

Conversation

AshokShau
Copy link
Owner

No description provided.

@AshokShau
Copy link
Owner Author

This pull request includes several enhancements and refactoring changes to the Telegram/modules package to improve the code readability, maintainability, and functionality. The most important changes include the introduction of a new API URL constant, addition of a ping command, and the refactoring of various functions for better performance and readability.

Enhancements and Refactoring:

  • API URL Constant and Cache Handling:

  • Function Refactoring:

  • New Functionality:

    • Added a new ping command to check bot latency and uptime, utilizing a new helper function getFormattedDuration for uptime formatting. (Telegram/modules/start.go, [1]; Telegram/modules/misc.go, [2]
  • Miscellaneous Improvements:

These changes enhance the functionality and maintainability of the codebase, making it more robust and easier to extend in the future.

@AshokShau AshokShau merged commit ba28619 into master Sep 30, 2024
2 checks passed
@AshokShau AshokShau deleted the beta branch October 18, 2024 11:33
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.

1 participant