forked from zovos/bot_tg
feat: blur questionable (q) rating in /uwu command
This commit is contained in:
parent
88ceb2ef29
commit
5304428738
1 changed files with 1 additions and 1 deletions
|
|
@ -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 отдельным сообщением,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue