mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-10 17:53:17 +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
|
import asyncio
|
||||||
|
|
||||||
from aiogram import Bot, types
|
from aiogram import Bot, types
|
||||||
|
from aiogram.contrib.fsm_storage.memory import MemoryStorage
|
||||||
from aiogram.dispatcher import Dispatcher
|
from aiogram.dispatcher import Dispatcher
|
||||||
from aiogram.dispatcher.storage import MemoryStorage
|
|
||||||
from aiogram.types import ParseMode
|
from aiogram.types import ParseMode
|
||||||
from aiogram.utils.markdown import text, bold
|
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))
|
await state.update_data(age=int(message.text))
|
||||||
|
|
||||||
# Configure ReplyKeyboardMarkup
|
# Configure ReplyKeyboardMarkup
|
||||||
markup = types.ReplyKeyboardMarkup(resize_keyboard=True)
|
markup = types.ReplyKeyboardMarkup(resize_keyboard=True, selective=True)
|
||||||
markup.add("Male", "Female")
|
markup.add("Male", "Female")
|
||||||
markup.add("Other")
|
markup.add("Other")
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue