Skip to content

Conversation

@sergix44
Copy link
Member

After only 1 year stuck on my PC...

This pull request introduces updates to the nutgram/nutgram dependency, adds a new console command for development purposes, and refactors how Telegram routes are loaded in the service provider. Below are the most important changes grouped by theme:

Dependency Update:

  • Updated the nutgram/nutgram dependency in composer.json from version ^4.17.0 to ^4.20 to ensure compatibility with the latest features and fixes.

New Feature:

  • Added a new ListenCommand class in src/Console/ListenCommand.php to enable development-friendly bot listening with automatic reloads after every update. This command is intended for development only and warns against use in production environments.

Service Provider Enhancements:

  • Refactored the register method in NutgramServiceProvider to dynamically load Telegram routes when the nutgram.routes configuration is enabled. This replaces the previous approach of loading routes directly in the boot method.
  • Registered the new ListenCommand in the boot method of NutgramServiceProvider, making it available as part of the application's console commands.
  • Removed the redundant Telegram route loading logic from the boot method of NutgramServiceProvider, as it is now handled during the resolution of the Nutgram instance.

@sergix44 sergix44 requested a review from Lukasss93 as a code owner June 12, 2025 20:38
@sergix44
Copy link
Member Author

Might be an alternative with no deps of #28

@sergix44 sergix44 merged commit 3ac2156 into master Jun 13, 2025
14 checks passed
@sergix44 sergix44 deleted the listen-command branch June 13, 2025 22:18
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