Telegram is available sandboxed from the Mac App Store on macOS.
It could easily sandbox itself in the non-store distribution as well, yet the developers apparently choose not to.
That is not the same app.
It is also sandboxed in Flatpak.
It could easily sandbox itself in the non-store distribution as well, yet the developers apparently choose not to.