Don't have Telegram yet? Try it now!
https://www.unixtutorial.org/file-type-and-permissions-in-perl
How To Find Out a File Type and Permissions in Perl