my problem is that bot don't send photo, which it got from user(admin).Bot have to send photo all users in database.
@dp.message_handler(state='send_photo')
async def send(message: types.Message, state: FSMContext):
photo = message.photo
users = data.get_user()
for el in users:
try:
await bot_name.send_photo(el[0],photo)
if int(el[1]) != 1:
data.set_active(el[0], 1)
except:
data.set_active(el[0], 0)
await bot_name.send_message(message.from_user.id, 'The command was executed successfully!')
await state.finish()
I tried to edit something with different ways and more times, but it was unsuccessful.