ZR
подскажите как вызвать ниже функцию из др функции?
@dp.message_handler(state=Form.branch)
async def choose_branch2(message: types.Message, state: FSMContext):
async with state.proxy() as data:
cid = message.chat.id
data['branch'] = message.text
print(data)
reply_markup = {'keyboard': [['Test'], ['Test'], ['Test'], ['Test'], ['Test'], ['Test']], 'resize_keyboard': True}
reply_markup = json.dumps(reply_markup)
if message.text == 'eto test':
await message.answer("Выберите пожалуйста test:", reply_markup=reply_markup)
await Form.branch.set()
await Form.next()
получаю ошибку:
line 85, in choose_branch2
async with state.proxy() as data:
AttributeError: 'str' object has no attribute 'proxy'