diff --git a/Dockerfile b/Dockerfile index 86cff90..e6c6914 100755 --- a/Dockerfile +++ b/Dockerfile @@ -4,4 +4,3 @@ WORKDIR /src COPY ./src/requirements.txt /src RUN pip install -r ./requirements.txt - diff --git a/README.md b/README.md index cb18a22..d0c5a59 100755 --- a/README.md +++ b/README.md @@ -109,4 +109,4 @@ Will display available groups for this chat as well with members count that opte /silent ``` -Will display all users that opted-in but without notyfing them. \ No newline at end of file +Will display all users that opted-in but without notyfing them. diff --git a/docker-compose.yml b/docker-compose.yml index ab3dc17..f05f579 100755 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,4 +34,4 @@ networks: driver: bridge volumes: - db-data: \ No newline at end of file + db-data: diff --git a/src/config/contents.py b/src/config/contents.py index f1a0abf..4a929d5 100755 --- a/src/config/contents.py +++ b/src/config/contents.py @@ -6,4 +6,4 @@ opted_in_failed = re.escape('You already opted-in for everyone-mentions.') opted_off = re.escape('You have opted-off for everyone-mentions.') opted_off_failed = re.escape('You need to opt-in first before processing this command.') mention_failed = re.escape('There are no users to mention.') -no_groups = re.escape('There are no groups for this chat.') \ No newline at end of file +no_groups = re.escape('There are no groups for this chat.') diff --git a/src/database/client.py b/src/database/client.py index 781c24a..e3ef7be 100755 --- a/src/database/client.py +++ b/src/database/client.py @@ -1,4 +1,3 @@ -from typing import Optional from urllib.parse import quote_plus from config.credentials import (MONGODB_DATABASE, MONGODB_HOSTNAME, @@ -37,4 +36,4 @@ class Client(): ) def aggregate(self, collection, pipeline: list): - return self.database.get_collection(collection).aggregate(pipeline) \ No newline at end of file + return self.database.get_collection(collection).aggregate(pipeline) diff --git a/src/exception/invalidArgumentException.py b/src/exception/invalidArgumentException.py index 53acd51..d2b2413 100644 --- a/src/exception/invalidArgumentException.py +++ b/src/exception/invalidArgumentException.py @@ -1,2 +1,2 @@ class InvalidArgumentException(Exception): - pass \ No newline at end of file + pass diff --git a/src/exception/notFoundException.py b/src/exception/notFoundException.py index 11e1ffd..0e57350 100644 --- a/src/exception/notFoundException.py +++ b/src/exception/notFoundException.py @@ -1,2 +1,2 @@ class NotFoundException(Exception): - pass \ No newline at end of file + pass diff --git a/src/handler/abstractHandler.py b/src/handler/abstractHandler.py index 5455009..1efa14c 100755 --- a/src/handler/abstractHandler.py +++ b/src/handler/abstractHandler.py @@ -17,6 +17,9 @@ class AbstractHandler: def get_update_data(self, update: Update, context: CallbackContext) -> UpdateData: return UpdateData.create_from_arguments(update, context) + def reply(self, update: Update, text: str) -> None: + update.effective_message.reply(text=text) + def reply_markdown(self, update: Update, message: str) -> None: update.effective_message.reply_markdown_v2(text=message) diff --git a/src/repository/userRepository.py b/src/repository/userRepository.py index be317ce..5b485a7 100644 --- a/src/repository/userRepository.py +++ b/src/repository/userRepository.py @@ -61,6 +61,3 @@ class UserRepository(): result.append(User.from_mongo_document(record)) return result - - - diff --git a/src/requirements.txt b/src/requirements.txt index 8db8dcc..d4f30a8 100755 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -2,4 +2,4 @@ python-dotenv==0.19.0 python-telegram-bot==13.7 pymongo==3.12.0 names==0.3.0 -prettytable==2.2.1 \ No newline at end of file +prettytable==2.2.1