Could not find any IR library working for STM32, after looking to convert one I found it very complicated. So i did one that should work on any Arduino-board.
It is just a few lines of code so I have not made any library just a example software. Just find out which pin can use attachinterrupt and upload, serial monitor will print out code, adress and repeat. Maybe it can help somebody. Tried it on Nano and Blue Pill ! (Got better reach with my software than IRLremote on Nano, ) https://github.com/perz/irNEC