mirror of
https://github.com/miloszowi/everyone-mention-telegram-bot.git
synced 2025-07-05 15:54: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
|
||||||
|
|
||||||
|
@ -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,
|
||||||
|
@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user