mirror of
https://github.com/Steffo99/greed.git
synced 2024-11-21 21:44:19 +00:00
Fixed the vanishing keyboard bug
This commit is contained in:
parent
4658cdc31b
commit
fa32ed9f6a
1 changed files with 3 additions and 3 deletions
|
@ -288,7 +288,7 @@ class ChatWorker(threading.Thread):
|
||||||
product_list += cart[product_id][0].text(style="short", cart_qty=cart[product_id][1]) + "\n"
|
product_list += cart[product_id][0].text(style="short", cart_qty=cart[product_id][1]) + "\n"
|
||||||
total_cost += cart[product_id][0].price * cart[product_id][1]
|
total_cost += cart[product_id][0].price * cart[product_id][1]
|
||||||
self.bot.edit_message_text(chat_id=self.chat.id, message_id=final.message_id,
|
self.bot.edit_message_text(chat_id=self.chat.id, message_id=final.message_id,
|
||||||
text=strings.conversation_confirm_cart.format(product_list=product_list, total_cost=str(total_cost), reply_markup=final_inline_keyboard))
|
text=strings.conversation_confirm_cart.format(product_list=product_list, total_cost=str(total_cost)), reply_markup=final_inline_keyboard)
|
||||||
# If the Remove from cart button has been pressed...
|
# If the Remove from cart button has been pressed...
|
||||||
elif callback.data == "cart_remove":
|
elif callback.data == "cart_remove":
|
||||||
# Get the selected product
|
# Get the selected product
|
||||||
|
@ -326,8 +326,8 @@ class ChatWorker(threading.Thread):
|
||||||
total_cost += cart[product_id][0].price * cart[product_id][1]
|
total_cost += cart[product_id][0].price * cart[product_id][1]
|
||||||
self.bot.edit_message_text(chat_id=self.chat.id, message_id=final.message_id,
|
self.bot.edit_message_text(chat_id=self.chat.id, message_id=final.message_id,
|
||||||
text=strings.conversation_confirm_cart.format(product_list=product_list,
|
text=strings.conversation_confirm_cart.format(product_list=product_list,
|
||||||
total_cost=str(total_cost),
|
total_cost=str(total_cost)),
|
||||||
reply_markup=final_inline_keyboard))
|
reply_markup=final_inline_keyboard)
|
||||||
# If the done button has been pressed...
|
# If the done button has been pressed...
|
||||||
elif callback.data == "cart_done":
|
elif callback.data == "cart_done":
|
||||||
# End the loop
|
# End the loop
|
||||||
|
|
Loading…
Reference in a new issue