mohsen-najafizadeh/telegram-notifier

A PHP package that handles API requests and sends notifications to Telegram seamlessly.

Installs: 55

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 1

pkg:composer/mohsen-najafizadeh/telegram-notifier

v1.1.0 2024-12-31 14:26 UTC

README

A simple PHP package for sending messages to Telegram using the Telegram Bot API.

Features

  • Send messages to Telegram channels and users.
  • Easy integration with your PHP projects.
  • Uses Guzzle HTTP Client for robust API communication.

Installation

You can install the package via Composer:

  composer require mohsen-najafizadeh/telegram-notifier

Requirements

  • PHP 8.0 and above.
  • Guzzle HTTP Client (Version 7.0 and above).

Quick Start

Here’s how you can send a simple message using the package:

use MohsenNajafizadeh\TelegramNotifier\Telegram;

$response = Telegram::sendMessage($message, $botToken, $chatId);

For detailed documentation and examples, refer to the Documentation / Documentation that created by PHPDocumentor.

Contribution

If you want to contribute to the project, please read the Contributing Guidelines.

License

This package is open-sourced software licensed under the MIT license.