eor_bah545/telegrambot

There is no license information available for the latest version (v0.1.0) of this package.

Maintainers

Package info

github.com/EORBAH/Telegram-Bot

pkg:composer/eor_bah545/telegrambot

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

v0.1.0 2026-04-02 12:56 UTC

This package is not auto-updated.

Last update: 2026-05-15 11:49:17 UTC


README

This library provides a simple and efficient way to interact with the Telegram Bot API using PHP. It allows you to send various types of messages, manage webhooks, and retrieve updates from your Telegram bot.

Installation

You can install this library via Composer or by cloning the GitHub repository and then using Composer.

Via Composer

The easiest way to install TelegramBot is by using Composer.

composer require eor_bah545/telegrambot

Via GitHub and Composer

  1. Clone the repository:

    git clone https://github.com/Eor_bah545/TelegramBot.git
    cd TelegramBot
  2. Install dependencies with Composer:

    composer install

Usage

After installation, you can include the autoloader and start using the TelegramBot class:

<?php

require_once 'vendor/autoload.php';

use TelegramBot\TelegramBot;

$botToken = 'YOUR_BOT_TOKEN';
$chatId = 'YOUR_CHAT_ID';

$bot = new TelegramBot($botToken);

$response = $bot->sendMessage($chatId, 'Hello from your Telegram Bot!');
print_r($response);

?>

For more detailed documentation on available methods and their usage, please refer to docs/TelegramBot_documentation_FR.md and docs/TelegramBot_documentation_class_FR.md.