mirror of
https://github.com/miloszowi/everyone-mention-telegram-bot.git
synced 2025-07-04 23:34:07 +00:00
no newlines at the end of files fixed
This commit is contained in:
parent
01030671f0
commit
1644aa35a1
@ -4,4 +4,3 @@ WORKDIR /src
|
|||||||
|
|
||||||
COPY ./src/requirements.txt /src
|
COPY ./src/requirements.txt /src
|
||||||
RUN pip install -r ./requirements.txt
|
RUN pip install -r ./requirements.txt
|
||||||
|
|
||||||
|
@ -109,4 +109,4 @@ Will display available groups for this chat as well with members count that opte
|
|||||||
/silent <group_name>
|
/silent <group_name>
|
||||||
```
|
```
|
||||||
|
|
||||||
Will display all users that opted-in but without notyfing them.
|
Will display all users that opted-in but without notyfing them.
|
||||||
|
@ -34,4 +34,4 @@ networks:
|
|||||||
driver: bridge
|
driver: bridge
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
db-data:
|
db-data:
|
||||||
|
@ -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 = re.escape('You have opted-off for everyone-mentions.')
|
||||||
opted_off_failed = re.escape('You need to opt-in first before processing this command.')
|
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.')
|
mention_failed = re.escape('There are no users to mention.')
|
||||||
no_groups = re.escape('There are no groups for this chat.')
|
no_groups = re.escape('There are no groups for this chat.')
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
from typing import Optional
|
|
||||||
from urllib.parse import quote_plus
|
from urllib.parse import quote_plus
|
||||||
|
|
||||||
from config.credentials import (MONGODB_DATABASE, MONGODB_HOSTNAME,
|
from config.credentials import (MONGODB_DATABASE, MONGODB_HOSTNAME,
|
||||||
@ -37,4 +36,4 @@ class Client():
|
|||||||
)
|
)
|
||||||
|
|
||||||
def aggregate(self, collection, pipeline: list):
|
def aggregate(self, collection, pipeline: list):
|
||||||
return self.database.get_collection(collection).aggregate(pipeline)
|
return self.database.get_collection(collection).aggregate(pipeline)
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
class InvalidArgumentException(Exception):
|
class InvalidArgumentException(Exception):
|
||||||
pass
|
pass
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
class NotFoundException(Exception):
|
class NotFoundException(Exception):
|
||||||
pass
|
pass
|
||||||
|
@ -17,6 +17,9 @@ class AbstractHandler:
|
|||||||
def get_update_data(self, update: Update, context: CallbackContext) -> UpdateData:
|
def get_update_data(self, update: Update, context: CallbackContext) -> UpdateData:
|
||||||
return UpdateData.create_from_arguments(update, context)
|
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:
|
def reply_markdown(self, update: Update, message: str) -> None:
|
||||||
update.effective_message.reply_markdown_v2(text=message)
|
update.effective_message.reply_markdown_v2(text=message)
|
||||||
|
|
||||||
|
@ -61,6 +61,3 @@ class UserRepository():
|
|||||||
result.append(User.from_mongo_document(record))
|
result.append(User.from_mongo_document(record))
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -2,4 +2,4 @@ python-dotenv==0.19.0
|
|||||||
python-telegram-bot==13.7
|
python-telegram-bot==13.7
|
||||||
pymongo==3.12.0
|
pymongo==3.12.0
|
||||||
names==0.3.0
|
names==0.3.0
|
||||||
prettytable==2.2.1
|
prettytable==2.2.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user