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.
Execution, integrity, and provenance determine PDF safety.