user_id_from_test = None
@dp.message_handler(commands=['test'])
async def test(message: types.Message):
global user_id_from_test
user_id_from_test = message.from_user.id
keyboard = types.InlineKeyboardMarkup()
callback_button1 = types.InlineKeyboardButton(text="111", callback_data="test1")
keyboard.add(callback_button1)
await bot.send_message(message.chat.id, f'Test message', reply_markup=keyboard)
@dp.callback_query_handler(lambda call: True)
async def callback_inline1(call):
if call.from_user.id == user_id_from_test: