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 8eb4885 commit b094a36
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions src/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,29 +151,28 @@ async def handler_print(update: Update, context: ContextTypes.DEFAULT_TYPE):
number=requisites[2],
)
return
elif r.status_code == 413:
await update.message.reply_text(
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'),
)
logging.warning(f'{log_actor(update)} print api 413 SizeErr')
return
elif r.status_code == 415:
await update.message.reply_text(
)
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'),
)
logging.warning(f'{log_actor(update)} print api 415 UnreadableErr')
return
else:
context.bot.send_message(
)
logging.warning(f'{log_actor(update)} print api 415 UnreadableErr')
return
await context.bot.send_message(
chat_id=update.effective_user.id,
text=ans.print_err,
parse_mode=ParseMode('HTML'),
)
logging.warning(f'{log_actor(update)} print unknown error')
logging.warning(f'{log_actor(update)} print unknown error')


@errors_solver
Expand Down

0 comments on commit b094a36

Please sign in to comment.