You need the libunity9 package installed and in Telegram desktop file at the command section:
env XDG_CURRENT_DESKTOP=unity