Compare commits

..

No commits in common. "c64075f84d7bd5fffddf0c4f091feec29d341763" and "c1f803503ede6cb3e59ff487ccd320d7f6140c8e" have entirely different histories.

3 changed files with 5 additions and 13 deletions

View file

@ -9,7 +9,7 @@ from telegram.ext import ContextTypes
import html_parser
from datetime import datetime, timedelta
from config import general, app
from config import *
from extensions import get_json, format_rating, format_status, humanize_filesize

View file

@ -13,7 +13,6 @@ from telegram.constants import ParseMode
from telegram.ext import ContextTypes
import html_parser
from config import app
from extensions import humanize_tags_from_json, format_rating, get_json
@ -103,16 +102,9 @@ async def answer_query(
" ".join(
[
html_parser.code(f"#{query}"),
html_parser.hyperlink(
" ".join(
[
html_parser.bold(f"{characters} ({copyrights})"),
"drawn by",
html_parser.bold(artists),
]
),
f"{app.protocol}://{app.hostname}/posts/{query}",
),
html_parser.bold(f"{characters} ({copyrights})"),
"drawn by",
html_parser.bold(artists),
rating,
]
),

View file

@ -3,7 +3,7 @@ import os
from telegram.ext import CommandHandler, InlineQueryHandler, ApplicationBuilder
from config import general
from config import *
logging.basicConfig(
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", level=logging.INFO