diff --git a/strings.py b/strings.py index 4c26b61..9e3af08 100644 --- a/strings.py +++ b/strings.py @@ -297,7 +297,9 @@ success_product_edited = "✅ Il prodotto è stato aggiunto/modificato con succe success_product_deleted = "✅ Il prodotto è stato eliminato con successo!" # Success: order has been created -success_order_created = "✅ L'ordine è stato inviato con successo!" +success_order_created = "✅ L'ordine è stato inviato con successo!\n" \ + "\n" \ + "{order}" # Success: order was marked as completed success_order_completed = "✅ Hai segnato l'ordine #{order_id} come completato." diff --git a/worker.py b/worker.py index ff9dcc1..3dfd187 100644 --- a/worker.py +++ b/worker.py @@ -457,7 +457,7 @@ class ChatWorker(threading.Thread): # Commit all the changes self.session.commit() # Notify the user of the order result - self.bot.send_message(self.chat.id, strings.success_order_created) + self.bot.send_message(self.chat.id, strings.success_order_created.format(order=order.get_text(self.session))) # Notify the admins (in Live Orders mode) of the new order admins = self.session.query(db.Admin).filter_by(live_mode=True).all() # Create the order keyboard