Repository navigation
Conversation
This commit deletes the package.json and package-lock.json files from the project, indicating a potential shift in project management or dependency handling. This change may affect how dependencies are managed and installed moving forward.
…api versions This commit updates the versions of dotenv, node-cron, and node-telegram-bot-api in package.json to their latest releases. These updates may include bug fixes, performance improvements, and new features that enhance the functionality and stability of the application.
…ic in agenda payment This commit refactors the handleKeyboard method in the AgendaPayment class to utilize a more structured approach for handling callback queries. It introduces a handler array to streamline the processing of different callback data types, improving code readability and maintainability. Additionally, the member selection logic is enhanced to ensure better validation and user feedback during the agenda payment process, while maintaining the overall functionality of the bot.
This commit introduces a new API endpoint that allows fetching multiple users based on their Telegram IDs. The `getByTelegramIds` function is implemented in the users controller, and corresponding repository and service methods are added to handle the database queries. Additionally, the routes are updated to include the new endpoint, enhancing the user management capabilities of the application.
…ity and organization This commit modifies the Dockerfile to explicitly copy the package.json file and the src directory, enhancing the clarity of the build process. The changes ensure that only necessary files are included in the Docker image, streamlining the application setup.
This commit modifies the Dockerfile to copy both package.json and package-lock.json in a single step, improving the build process efficiency. Additionally, the package-lock.json is updated to reflect the latest version of dotenv, enhancing dependency management and ensuring compatibility with recent changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new API endpoint and supporting backend logic to fetch multiple users by their Telegram IDs, and refactors the
AgendaPaymentclass in the Telegram bot to use a more modular, handler-based approach for processing keyboard interactions. It also updates some dependencies and makes minor improvements to Dockerfile and package management.Backend: Multi-User Fetching by Telegram IDs
/api/users-ids/:telegramIdsand supporting controller, service, and repository functions to retrieve multiple users by their Telegram IDs. This includesgetByTelegramIdsin the controller,getUsersin the service, andgetUsersByTelegramIdsin the repository. [1] [2] [3] [4]getUsersfunction in the bot's backend client for future use.Bot: Refactoring AgendaPayment Keyboard Handling
AgendaPaymentclass to use a handler pattern for keyboard interactions, improving code readability and maintainability. Each keyboard action (e.g., member toggle, month selection, bank selection) now has its own method. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11]Dependency and Build Improvements
tele_bot/package.jsonto newer versions fordotenv,node-cron, andnode-telegram-bot-api.tele_bot/Dockerfilefor more precise copying of files and directories.Other
package.json, possibly as part of a project structure cleanup.