fix docstring typo

This commit is contained in:
yallxe 2021-06-27 20:26:40 +02:00 committed by GitHub
parent 9e014f1122
commit 2efc04f45e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -95,7 +95,7 @@ async def process_age(message: types.Message, state: FSMContext):
@dp.message_handler(lambda message: message.text not in ["Male", "Female", "Intersex", "Prefer not to say"], state=Form.gender)
async def process_gender_invalid(message: types.Message):
"""
In this example gender has to be one of: Male, Female, Other.
In this example gender has to be one of: Male, Female, Intersex or user might choose "Prefer not to say" option.
"""
return await message.reply("Bad gender name. Choose your gender from the keyboard.")