@dp.message_handler(content_types=['photo'])
async def handle_docs_photo(message, state: FSMContext):
if 'media_group_id' in message:
data = message.media_group_id
async with state.proxy() as data:
try:
temp_data = data['media_group_id']
except:
temp_data = ""
print(temp_data)
print(type(data))
data['media_group_id'] = data
if(temp_data != data):
await bot.send_message(message.from_user.id, 'Ответ на группу один раз', parse_mode=types.ParseMode.HTML)
print(message.media_group_id)
else:
print("no group")
return()