diff --git a/main.py b/main.py index 7ccab6f..3c5c0c8 100644 --- a/main.py +++ b/main.py @@ -32,7 +32,6 @@ def add_handlers(dp:Dispatcher) -> None: dp.add_handler(CommandHandler("report", report)) dp.add_handler(MessageHandler(Filters.regex(REPORT) & Filters.chat_type.private, report)) dp.add_handler(CommandHandler("chatid", lambda u, c: u.message.reply_text(str(u.message.chat_id)))) - def main() -> None: """Main function""" diff --git a/module/__init__.py b/module/__init__.py index 997d8cc..fe19108 100644 --- a/module/__init__.py +++ b/module/__init__.py @@ -1 +1 @@ -"""Modules""" \ No newline at end of file +"""Modules""" diff --git a/module/commands/__init__.py b/module/commands/__init__.py index 9aa8763..d688acf 100644 --- a/module/commands/__init__.py +++ b/module/commands/__init__.py @@ -1 +1 @@ -"""Commands""" \ No newline at end of file +"""Commands""" diff --git a/module/commands/help_cmd.py b/module/commands/help_cmd.py index 89d7e10..efeeab7 100644 --- a/module/commands/help_cmd.py +++ b/module/commands/help_cmd.py @@ -2,7 +2,7 @@ from telegram import Update from telegram.ext import CallbackContext -from data.constants import HELP_CMD_TEXT +from module.data.constants import HELP_CMD_TEXT def help_cmd(update: Update, context: CallbackContext) -> None: """Called by the /help command @@ -13,4 +13,4 @@ def help_cmd(update: Update, context: CallbackContext) -> None: context: context passed by the handler """ context.bot.sendMessage( - chat_id=update.message.chat_id, text=HELP_CMD_TEXT) \ No newline at end of file + chat_id=update.message.chat_id, text=HELP_CMD_TEXT) diff --git a/module/commands/start.py b/module/commands/start.py index 28b9e40..cc4bce7 100644 --- a/module/commands/start.py +++ b/module/commands/start.py @@ -14,4 +14,4 @@ def start(update: Update, context: CallbackContext) -> None: """ context.bot.sendMessage( chat_id=update.message.chat_id, text=START_CMD_TEXT - ) \ No newline at end of file + ) diff --git a/module/data/__init__.py b/module/data/__init__.py index 7ac889a..549fdd1 100644 --- a/module/data/__init__.py +++ b/module/data/__init__.py @@ -4,4 +4,4 @@ HELP, HELP_CMD_TEXT, START_CMD_TEXT -) \ No newline at end of file +) diff --git a/module/data/constants.py b/module/data/constants.py index f514479..9a2244c 100644 --- a/module/data/constants.py +++ b/module/data/constants.py @@ -5,4 +5,4 @@ HELP_CMD_TEXT = """📬 /report Fornisce la possibilità di poter inviare una segnalazione agli sviluppatori riguardante qualsiasi disservizio""" REPORT = "Segnalazioni Rappresentanti 📬" -HELP = "Help ❔" \ No newline at end of file +HELP = "Help ❔"