Skip to content

Commit

Permalink
fix: fixed import error and other minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
infra-blue committed Nov 5, 2023
1 parent 0b3f276 commit a9fca56
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 8 deletions.
1 change: 0 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down
2 changes: 1 addition & 1 deletion module/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"""Modules"""
"""Modules"""
2 changes: 1 addition & 1 deletion module/commands/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"""Commands"""
"""Commands"""
4 changes: 2 additions & 2 deletions module/commands/help_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)
chat_id=update.message.chat_id, text=HELP_CMD_TEXT)
2 changes: 1 addition & 1 deletion module/commands/start.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ def start(update: Update, context: CallbackContext) -> None:
"""
context.bot.sendMessage(
chat_id=update.message.chat_id, text=START_CMD_TEXT
)
)
2 changes: 1 addition & 1 deletion module/data/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
HELP,
HELP_CMD_TEXT,
START_CMD_TEXT
)
)
2 changes: 1 addition & 1 deletion module/data/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 ❔"
HELP = "Help ❔"

0 comments on commit a9fca56

Please sign in to comment.