diff --git a/locale/uk.json b/locale/uk.json index d1dd2a9..5ad6f86 100644 --- a/locale/uk.json +++ b/locale/uk.json @@ -46,7 +46,16 @@ ] }, "force_reply": { - "question1": "Ім'я або звертання" + "question1": "Ім'я або звертання", + "question2": "Твій вік", + "question3": "Місто або область", + "question4": "Орієнтовний час", + "question5": "Риси, особливості", + "question6": "Ім'я дівчини", + "question7": "П'ять японських холодівчат", + "question8": "Так або ні", + "question9": "Ім'я дівчини або дівчин", + "question10": "Трошки про себе" }, "button": { "sub_yes": "✅ Прийняти", diff --git a/main.py b/main.py index 700da6e..1ed3497 100644 --- a/main.py +++ b/main.py @@ -57,12 +57,19 @@ async def any_stage(app, msg): user_stage = configGet("stage", file=str(msg.from_user.id)) if user_stage == 1: - await msg.reply_text(locale(f"question{user_stage+1}", "message"), reply_markup=ForceReply(placeholder="Enter shit")) + await msg.reply_text(locale(f"question{user_stage+1}", "message"), reply_markup=ForceReply(placeholder=locale(f"question{user_stage+1}", "force_reply"))) configSet(str(user_stage), str(msg.text), "application", file=str(msg.from_user.id)) configSet("stage", user_stage+1, file=str(msg.from_user.id)) + elif user_stage == 2: + try: + configSet(str(user_stage), int(msg.text), "application", file=str(msg.from_user.id)) + await msg.reply_text(locale(f"question{user_stage+1}", "message"), reply_markup=ForceReply(placeholder=locale(f"question{user_stage+1}", "force_reply"))) + configSet("stage", user_stage+1, file=str(msg.from_user.id)) + except ValueError: + await msg.reply_text(locale(f"question2_invalid", "message"), reply_markup=ForceReply(placeholder=locale(f"question{user_stage}", "force_reply"))) else: if user_stage <= 9: - await msg.reply_text(locale(f"question{user_stage+1}", "message"), reply_markup=ForceReply(placeholder="Enter shit")) + await msg.reply_text(locale(f"question{user_stage+1}", "message"), reply_markup=ForceReply(placeholder=locale(f"question{user_stage+1}", "force_reply"))) configSet(str(user_stage), str(msg.text), "application", file=str(msg.from_user.id)) configSet("stage", user_stage+1, file=str(msg.from_user.id)) else: