Before getting started with telegram-files, you should apply a telegram api id and hash. You can apply for it on the Telegram API page.
PdfDing is a PDF manager, viewer and editor that you can host yourself. It offers a seamless user experience on multiple devices. It's designed be to be minimal, fast, and easy to set up using Docker.