Mime type unsupported message added

This commit is contained in:
2023-06-22 08:41:42 +00:00
parent 592b83377b
commit 76855cd472
2 changed files with 11 additions and 3 deletions

View File

@@ -38,7 +38,9 @@ async def callback_query_yes(app: PyroClient, clb: CallbackQuery):
return
except SubmissionUnsupportedError:
await clb.answer(
text="Unsupported.",
text=app._("mime_not_allowed", "message", locale=user_locale).format(
", ".join(app.config["submission"]["mime_types"]), quote=True
),
show_alert=True,
)
return