Drupal is a registered trademark of Dries Buytaert
drupal 10.6.12 Update released for Drupal core (10.6.12)! drupal 11.3.13 Update released for Drupal core (11.3.13)! drupal 10.6.11 Update released for Drupal core (10.6.11)! drupal 11.3.12 Update released for Drupal core (11.3.12)! drupal 11.2.14 Update released for Drupal core (11.2.14)! drupal 10.5.12 Update released for Drupal core (10.5.12)! cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)! drupal 11.3.9 Update released for Drupal core (11.3.9)!

telegram_api

133 sites Security covered
View on drupal.org

The module is for developers. Add some telegram integration for your site.

New features of 2.0.x branch:

  • Value object instead of a lot of parameters in service function
  • Webform handler to send webform data to telegram
  • Send to custom endpoint
  • Queue as option (delay send)

2.0.x Send to telegram bot example

use Drupal\telegram_api\ValueObject\TelegramMessage;

$message = new TelegramMessage(
  text: 'Hello from Drupal!',
  token: '618218965:AAG...',
  chatId: '12345678',
);

\Drupal::service('telegram_api.service')?->sendToTelegramBot($message);

2.0.x Send to queue example

use Drupal\telegram_api\ValueObject\TelegramMessage;

$message = new TelegramMessage(
  text: 'Hello from Drupal!',
  token: '618218965:AAG...',
  chatId: '12345678',
);

\Drupal::service('telegram_api.service')?->queue($message);

And then drush queue:run telegram_api_queue

1.0.x Send to telegram bot example

$result = \Drupal::service('telegram_api.service')->sendToTelegramBot($text, $token, $chat_id);
if ($result !== TRUE) {
  \Drupal::logger('My module')->error($result);
}

Activity

Total releases
4
First release
Mar 2026
Latest release
2 months ago
Release cadence
0 days
Stability
75% stable

Release Timeline

Releases

Version Type Release date
2.0.2 Stable Mar 29, 2026
2.0.1 Stable Mar 29, 2026
2.0.0 Stable Mar 28, 2026
2.0.x-dev Dev Mar 28, 2026