Mime type unsupported message added
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user