mirror of
https://github.com/miloszowi/everyone-mention-telegram-bot.git
synced 2025-12-08 13:49:24 +00:00
no newlines at the end of files fixed
This commit is contained in:
@@ -4,4 +4,3 @@ WORKDIR /src
|
||||
|
||||
COPY ./src/requirements.txt /src
|
||||
RUN pip install -r ./requirements.txt
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
from typing import Optional
|
||||
from urllib.parse import quote_plus
|
||||
|
||||
from config.credentials import (MONGODB_DATABASE, MONGODB_HOSTNAME,
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -61,6 +61,3 @@ class UserRepository():
|
||||
result.append(User.from_mongo_document(record))
|
||||
|
||||
return result
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user