Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Telegram Media Type

Security covered Maintenance fixes only 13 sites

This module adds a new media type to your Drupal site that allows you to easily embed Telegram posts and videos. Once configured, you can add Telegram media through the Media Library or entity forms by simply pasting a Telegram URL.

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.

Drupal 9–11

Ask your assistant about Telegram Media Type

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

  • media Drupal core

Required by

1 tracked project depends on this one

Activity

Tracked releases
2
Tracked since
Jun 2023
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Slowing

Releases

Version Type Core PHP Release date
1.0.4 Stable 9–11 Jun 11, 2024
1.0.3 Stable 9–10 Jun 7, 2023