Skip to content
Snippets Groups Projects

Draft: initial user flow for creating a wallet

Merged Janssen, D.D. (Dylan, Student M-CS) requested to merge 2-implement_all_user_flows into main
Files
2
+ 3
5
@@ -43,10 +43,8 @@ def start(update: Update, context: CallbackContext):
else:
update.effective_message.reply_text("You cannot join a wallet twice")
# TODO. when the last one is added send mnemonics to users
user.set_state(1)
# TODO: clear variables
user.set_variable({})
reply_msg, reply_markup = generate_message(1)
update.effective_message.reply_text(reply_msg, reply_markup=reply_markup)
@@ -90,8 +88,8 @@ def choose_wallet(update: Update, context: CallbackContext):
def wallet_options(update: Update, context: CallbackContext, user: AppUser):
query = update.callback_query.data
print("We are in the wallet options: " + query)
wallet_name = update.callback_query.data
user.set_variable("wallet_name", wallet_name)
next_state = user.next_state()
reply_msg, reply_markup = generate_message(next_state)
update.effective_message.reply_text(reply_msg, reply_markup=reply_markup)
Loading