I encountered this bug after downloading and trying to run telegram; the same outcome occurred by using both snap and pacman. I tried to run the executable from the terminal, and I got the following message:
<jemalloc>: Unsupported system page size
GLib (gthread-posix.c): Unexpected error from C library during 'malloc': Cannot allocate memory. Aborting.
[1] 2988 IOT instruction (core dumped) ./telegram-desktop