proximity sensor – Telegram doesn’t turn off the screen on calls

I just buyed a new Samsung Galaxy A32 and on my first call using Telegram I noted that the screen doesn’t turn off, also seems like the sound is using another speaker than the regular call app is using.
I can’t find any configuration in Android settings or in Telegram settings.
Also I downloaded an App to test the sensors and it never detects anything, always displays “5cm”.