Answer the question
In order to leave comments, you need to log in
Calling your function in aiogram?
I know how to call a function from a function, but I'm a little confused in aiogram. There is a repeating code:
await message.answer('Вы можете написать нашему менеджеру @........ ', reply_markup=ReplyKeyboardRemove())
await state.finish()
async def help_fun(??????????????):
await message.answer('Вы можете написать нашему менеджеру @......... ', reply_markup=ReplyKeyboardRemove())
await state.finish()
async def var_tea(message : types.Message, state: FSMContext):
if message.text == '/help':
help_fun(???????????)
Answer the question
In order to leave comments, you need to log in
if no parameters are needed inside the function, then nothing needs to be passed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question