-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from TimNekk/develop
Made imports more generic
- Loading branch information
Showing
9 changed files
with
51 additions
and
50 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
from aiogram import Dispatcher | ||
|
||
from .admin import register_admin_handlers | ||
from .start import register_start_handlers | ||
from .subscription import register_subscription_handlers | ||
from tgbot.handlers import admin | ||
from tgbot.handlers import start | ||
from tgbot.handlers import subscription | ||
|
||
|
||
def register_handlers(dp: Dispatcher) -> None: | ||
register_admin_handlers(dp) | ||
register_start_handlers(dp) | ||
register_subscription_handlers(dp) | ||
def register(dp: Dispatcher) -> None: | ||
admin.register(dp) | ||
start.register(dp) | ||
subscription.register(dp) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
from aiogram import Dispatcher | ||
|
||
from .send_all import register_send_all_handlers | ||
from .ping import register_ping_handlers | ||
from tgbot.handlers.admin import send_all | ||
from tgbot.handlers.admin import ping | ||
|
||
|
||
def register_admin_handlers(dp: Dispatcher) -> None: | ||
register_send_all_handlers(dp) | ||
register_ping_handlers(dp) | ||
def register(dp: Dispatcher) -> None: | ||
send_all.register(dp) | ||
ping.register(dp) |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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