wpsocio/wptelegram-bot-api

Telegram Bot API library for WordPress.

Maintainers

Package info

github.com/wpsocio/wptelegram-bot-api

pkg:composer/wpsocio/wptelegram-bot-api

Statistics

Installs: 10

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 1

v1.0.2 2025-04-27 15:15 UTC

This package is auto-updated.

Last update: 2026-02-27 17:12:49 UTC


README

Telegram Bot API library for WordPress.

Usage

composer require wpsocio/wptelegram-bot-api
require_once __DIR__ . '/autoload.php';

$bot_token  = 'YOUR BOT TOKEN HERE';

$bot_api = new \WPTelegram\BotAPI\API( $bot_token );

$bot_api->sendMessage( [
    'chat_id' => 123456789,
    'text'    => 'Hello World',
] );

$bot_api->sendPhoto( [
    'chat_id' => 123456789,
    'photo'   => 'https://domain.com/path/to/photo.jpg',
] );

Requirements

  • PHP >= 8.0
  • WP >= 6.4