mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 01:15:31 +00:00
Update FSM example.
This commit is contained in:
parent
3ab4e51dde
commit
86f7656b83
1 changed files with 2 additions and 2 deletions
|
|
@ -1,8 +1,8 @@
|
|||
import asyncio
|
||||
|
||||
from aiogram import Bot, types
|
||||
from aiogram.contrib.fsm_storage.memory import MemoryStorage
|
||||
from aiogram.dispatcher import Dispatcher
|
||||
from aiogram.dispatcher.storage import MemoryStorage
|
||||
from aiogram.types import ParseMode
|
||||
from aiogram.utils.markdown import text, bold
|
||||
|
||||
|
|
@ -84,7 +84,7 @@ async def process_age(message: types.Message):
|
|||
await state.update_data(age=int(message.text))
|
||||
|
||||
# Configure ReplyKeyboardMarkup
|
||||
markup = types.ReplyKeyboardMarkup(resize_keyboard=True)
|
||||
markup = types.ReplyKeyboardMarkup(resize_keyboard=True, selective=True)
|
||||
markup.add("Male", "Female")
|
||||
markup.add("Other")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue