I didn't touch any settings. is there any way to get my photos back?
iCloud Photo Library may have been enabled by default on your iPhone, if you just upgraded to iOS 11. Check the settings:
- On your iPhone, iPad, or iPod touch with iOS 10.3 or later, go to Settings > [your name] > iCloud > Photos, then turn on iCloud Photo Library. In iOS 10.2 or earlier, go to Settings > iCloud > Photos.
- On your Mac check System Preferences > iCloud > Photos > Options.
Get help with your iCloud Photo Library - Apple Support
If iCloud Photos Library has been enabled on the iPhone and the Mac, when you deleted the photos from the iPhone, they have been deleted from iCloud and the Macs library as well. If they are no longer in Recently Deleted, because you emptied this album, they will be gone.
Then you should restore your Photos library from the last backup you made, before you deleted the photos from the iPhone.