Closed maiconcosta closed 6 years ago
Post the stack
Sorry, I do not understand.
Error messages, error stack. Whatever I can use to fix it. I need more information to understand the problem
I do not get error messages, the library simply does not run the submenu.
I think you are not understanding how this works.
This:
mac.send_message(txtOrcamentos, message.conversation)
is an async call. It wont wait for an answer or something like that. It will just send a message and does not care about the code below.
For this to work:
# 1 Party kit
if message.command == "1":
partyKit(message)
# 2 Confectionery cake
elif message.command == "2":
confCake(message)
...
Needs to be handled by another @signals.message_received.connect
I understand, I'm going to do tests and I'll let you know.
I would like a help to make submenus, from the menu number "1" I tried using the code below but it did not work, here is my code below:
@signals.message_received.connect def handle(message):
Main menu
Below is the orcamentos function that you would like to put as a submenu:
def orcamentos(message): mac.send_message(txtOrcamentos, message.conversation)
1 Party kit