Telegram Media Type
Adds a media type for embedding Telegram posts and videos to your site.
Install
Module requires Drupal 9.3 or newer.
1. Enable module
2. create Telegram media type
- Go to /admin/structure/media/add
- set Name to Telegram
- set Description to Telegram posts.
- set Media source to Telegram
- click Save
3. set formatter for field Telegram to Telegram embed if it's not set already.
4. (optional) set form widgets and form fields at /admin/structure/media/manage/telegram/form-display.
5. set permissions for editing Telegram media /admin/people/permissions
Usage
Create telegram media using entity forms (/media/add/telegram), or using Drupal core's Media Library. Just paste the URL and the module generates the embed code.
Privacy and cookies
Don't forget that with this, you embed external content via iframe. That means it will load Telegram's 3rd party cookies for the visitors. In certain countries (for example in Europe) by law you cannot load non-essential cookies to the browser until the visitor has given consent to it. So you'll need: COOKiES Telegram Media
Other info
The module's codebase was based on how Media Entity Twitter and Media Entity Facebook was written.
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.