Skip to main content

BotKit

telegramsdk/botkit is just an extension for the telegramsdk/botapi package useful for having suggestions by your IDE.

It is reccommend to use this extension

Installation

You can install the library via Composer

composer require telegramsdk/botkit

Usage

<?php
require "vendor/autoload.php";

use TelegramSDK\BotKit\Bot;

$bot = new Bot("YOUR_BOT_TOKEN");

$bot->sendMessage(chat_id: 123, text: "Hello World");

That's it!