The module is for developers. Add some telegram integration for your site.
Send to telegram bot example (without telegram proxy)
$result = \Drupal::service('telegram_api.service')->sendToTelegramBot($text, $token, $chat_id);
if ($result !== TRUE) {
\Drupal::logger('My module')->error($result);
}
Send to telegram bot example (with telegram proxy)
$result = \Drupal::service('telegram_api.service')->sendToTelegramBot($text, $token, $chat_id, TRUE, $proxy_server, $proxy_login, $proxy_pass);
if ($result !== TRUE) {
\Drupal::logger('My module')->error($result);
}
Short name
telegram_api