@dp.message_handler(commands='broadcast')
async def broadcast_command_handler(state: FSMContext):
await message.answer('Введите текст для начала рассылки:')
await state.set_state('broadcast_text')
@dp.message_handler(state='broadcast_text', content_types=types.ContentTypes.ANY)
async def start_broadcast(state: FSMContext):
await state.finish()
joinedFile1 = open("c:/users/sousa/bot/json1.txt", "r")
for line in joinedFile1:
await MessageBroadcaster(line, msg).run()
При запуске команды выдает ошибку:
TypeError: broadcast_command_handler() got multiple values for argument 'state'