dev #19
@ -149,7 +149,7 @@ async def get_submission(app: PosterClient, msg: Message):
|
|||||||
if msg.from_user.id in app.admins and configGet("admins", "submission", "require_confirmation") is False:
|
if msg.from_user.id in app.admins and configGet("admins", "submission", "require_confirmation") is False:
|
||||||
try:
|
try:
|
||||||
await app.submit_photo(str(inserted.inserted_id))
|
await app.submit_photo(str(inserted.inserted_id))
|
||||||
await msg.reply_text(locale("sub_yes_auto", "message", locale=user_locale), quote=True)
|
await msg.reply_text(locale("sub_yes_auto", "message", locale=user_locale), disable_notification=True, quote=True)
|
||||||
await msg.copy(app.owner, caption=caption, disable_notification=True)
|
await msg.copy(app.owner, caption=caption, disable_notification=True)
|
||||||
return
|
return
|
||||||
except SubmissionDuplicatesError as exp:
|
except SubmissionDuplicatesError as exp:
|
||||||
@ -161,7 +161,7 @@ async def get_submission(app: PosterClient, msg: Message):
|
|||||||
elif msg.from_user.id not in app.admins and configGet("users", "submission", "require_confirmation") is False:
|
elif msg.from_user.id not in app.admins and configGet("users", "submission", "require_confirmation") is False:
|
||||||
try:
|
try:
|
||||||
await app.submit_photo(str(inserted.inserted_id))
|
await app.submit_photo(str(inserted.inserted_id))
|
||||||
await msg.reply_text(locale("sub_yes_auto", "message", locale=user_locale), quote=True)
|
await msg.reply_text(locale("sub_yes_auto", "message", locale=user_locale), disable_notification=True, quote=True)
|
||||||
await msg.copy(app.owner, caption=caption)
|
await msg.copy(app.owner, caption=caption)
|
||||||
return
|
return
|
||||||
except SubmissionDuplicatesError as exp:
|
except SubmissionDuplicatesError as exp:
|
||||||
@ -182,7 +182,7 @@ async def get_submission(app: PosterClient, msg: Message):
|
|||||||
PosterUser(msg.from_user.id).limit()
|
PosterUser(msg.from_user.id).limit()
|
||||||
|
|
||||||
if msg.from_user.id != app.owner:
|
if msg.from_user.id != app.owner:
|
||||||
await msg.reply_text(locale("sub_sent", "message", locale=user_locale), quote=True)
|
await msg.reply_text(locale("sub_sent", "message", locale=user_locale), disable_notification=True, quote=True)
|
||||||
|
|
||||||
await msg.copy(app.owner, caption=caption, reply_markup=InlineKeyboardMarkup(buttons))
|
await msg.copy(app.owner, caption=caption, reply_markup=InlineKeyboardMarkup(buttons))
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user