Skip to content

Commit

Permalink
Update handlers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
iskomir committed Apr 29, 2024
1 parent b094a36 commit 6d3df94
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,17 +153,17 @@ async def handler_print(update: Update, context: ContextTypes.DEFAULT_TYPE):
return
elif r.status_code == 413:
await update.message.reply_text(
text=ans.file_size_error.format(update.message.document.file_name),
reply_to_message_id=update.message.id,
parse_mode=ParseMode('HTML'),
text=ans.file_size_error.format(update.message.document.file_name),
reply_to_message_id=update.message.id,
parse_mode=ParseMode('HTML'),
)
logging.warning(f'{log_actor(update)} print api 413 SizeErr')
return
elif r.status_code == 415:
await update.message.reply_text(
text=ans.unreadable_file_error.format(update.message.document.file_name),
reply_to_message_id=update.message.id,
parse_mode=ParseMode('HTML'),
text=ans.unreadable_file_error.format(update.message.document.file_name),
reply_to_message_id=update.message.id,
parse_mode=ParseMode('HTML'),
)
logging.warning(f'{log_actor(update)} print api 415 UnreadableErr')
return
Expand Down

0 comments on commit 6d3df94

Please sign in to comment.