Well using telegram is not illegal.
By the way, many people are using the app to use links to see the latest movies, web series, or show.
Easily people get their favorite content through such links. So that's why telegram has become a way for many users to access pirate content.