Advertisement
Platitude

Untitled

May 5th, 2020
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.41 KB | None | 0 0
  1. @dp.callback_query_handler(text='registration')
  2. async def inline_kb(query: types.CallbackQuery):
  3.     answer_data = query.data
  4.     if answer_data == 'registration':
  5.         send_name(query.message) #Coroutine 'send_name' is not awaited
  6.  
  7.  
  8.  
  9. async def send_name(message):
  10.     await Form_registration.name.set()
  11.     await message.answer("Укажите логин: ", reply_markup=types.ReplyKeyboardRemove())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement