Don't have Telegram yet? Try it now!
https://avila.net.br/2014/04/29/ubuntu-como-obter-o-mime-type-de-um-arquivo/