zoparga/simple-telegram

Simple package to send message to Telegram

Installs: 31

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/zoparga/simple-telegram

0.85 2022-06-29 07:48 UTC

This package is auto-updated.

Last update: 2025-09-29 02:20:50 UTC


README

This is a simple wrapper to Telegram. You can easily send text messages to the desired channel in case you have the webhook.

Installation

You can install the package via composer:

composer require zoparga/simple-telegram

Publish config file

php artisan vendor:publish --provider="zoparga\SimpleTelegram\SimpleTelegramServiceProvider" --tag="config"

Add the following 2 lines to your .env file:

TELEGRAM_BOT_ID=""
TELEGRAM_BASIC_ROOM=""

You can call it with the following:

$text = 'Your text';
zoparga\SimpleTelegram\SimpleTelegram::prepare()->text($text)->send();