Compare commits
2 commits
c1f803503e
...
c64075f84d
Author | SHA1 | Date | |
---|---|---|---|
c64075f84d | |||
c66b52a29b |
3 changed files with 13 additions and 5 deletions
|
@ -9,7 +9,7 @@ from telegram.ext import ContextTypes
|
|||
|
||||
import html_parser
|
||||
from datetime import datetime, timedelta
|
||||
from config import *
|
||||
from config import general, app
|
||||
from extensions import get_json, format_rating, format_status, humanize_filesize
|
||||
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ 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
|
||||
|
||||
|
||||
|
@ -102,9 +103,16 @@ 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}",
|
||||
),
|
||||
rating,
|
||||
]
|
||||
),
|
||||
|
|
2
main.py
2
main.py
|
@ -3,7 +3,7 @@ import os
|
|||
|
||||
from telegram.ext import CommandHandler, InlineQueryHandler, ApplicationBuilder
|
||||
|
||||
from config import *
|
||||
from config import general
|
||||
|
||||
logging.basicConfig(
|
||||
format="%(asctime)s - %(name)s - %(levelname)s - %(message)s", level=logging.INFO
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue