feature/FenyaBot blur questionable (q) rating in /uwu command #36

Merged
q merged 4 commits from Dan4ick/bot_tg:feature/FenyaBot into main 2026-05-20 10:00:13 +00:00
Showing only changes of commit 5304428738 - Show all commits

View file

@ -180,7 +180,7 @@ async def handle_uwu_cmd(message: types.Message):
file_url = post["url"] file_url = post["url"]
ext = post["ext"] ext = post["ext"]
caption = post["caption"] caption = post["caption"]
spoiler = post.get("rating") == "e" # спойлер для explicit spoiler = post.get("rating") in ("e", "q") # спойлер для explicit и questionable
if ext in ("gif", "webm", "mp4"): if ext in ("gif", "webm", "mp4"):
# Для анимаций: отправляем caption отдельным сообщением, # Для анимаций: отправляем caption отдельным сообщением,