Skip to content

Commit

Permalink
perf: adjust Status_message.error_template
Browse files Browse the repository at this point in the history
  • Loading branch information
hlf20010508 committed Sep 21, 2023
1 parent e44b25d commit 59264fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ async def create(cls, event):
self.msg_link = '[Status:](https://t.me/c/%d/%d)' % (self.event.message.peer_id.channel_id, self.event.message.id)
self.status = 'In progress...'
self.template = "Uploaded %.2fMB out of %.2fMB: %.2f%%"
self.error_template = 'Error:\n%s\nUpload url: %s\nProgress url: %s\n\nResponse: %s'
self.error_template = '- Error:\n%s\n- Upload url:\n%s\n\n- Progress url:\n%s\n\n- Response:\n%s'
self.error_template_full = '- Error:\n%s\n- Upload url:\n%s\n\n- Progress url:\n%s\n\n- Response:\n%s\n\n-Analysis:\n%s'
self.message = await self.event.respond(self.response)
return self
Expand Down

0 comments on commit 59264fb

Please sign in to comment.