I see those errors are reported in a few issues, though in apparently unrelated circumstances.
Which makes me think, sadly they are not very indicative of what the underlying problem is.
Try also running in a terminal with -debug
option, it should drop log files in the current directory (better be a new empty one) and/or ~/.local/share/TelegramDesktop/DebugLogs
(no idea, that's what a man page found online says).
Try "Disable OpenGL rendering for Media" (from App crashes when trying to play video in picture-in-picture mode · Issue #25433 · telegramdesktop/tdesktop · GitHub)
Did it start misbehaving after an update, or was telegram installed recently?
Is it the community/telegram-desktop
package?
You may try the flatpak from the website and see if it makes any difference.
Beware if you try the "generic" linux binary from the website, it may conflict with the package and it's probably better not have both installed at the same time.
You may also want to let the telegram developers know by opening an issue at the repository, they're in a better position to advise how to pinpoint the problem.
If you do, please make sure it's not reported already (post to that thread in case) and provide the log files along with any relevant information (telegram version, installation method, operating system...)