Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wpsocio/wptelegram-bot-api
Production Repository | Telegram Bot API library for WordPress. Development takes place in our monorepo - https://github.com/wpsocio/wp-projects/tree/main/packages/php/wptelegram-bot-api
https://github.com/wpsocio/wptelegram-bot-api
client library telegram telegram-bot telegram-bot-api wordpress
Last synced: 2 days ago
JSON representation
Production Repository | Telegram Bot API library for WordPress. Development takes place in our monorepo - https://github.com/wpsocio/wp-projects/tree/main/packages/php/wptelegram-bot-api
- Host: GitHub
- URL: https://github.com/wpsocio/wptelegram-bot-api
- Owner: wpsocio
- License: gpl-3.0
- Created: 2020-06-27T11:08:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-02-10T07:23:57.000Z (9 months ago)
- Last Synced: 2024-08-18T00:13:09.134Z (3 months ago)
- Topics: client, library, telegram, telegram-bot, telegram-bot-api, wordpress
- Language: PHP
- Homepage: https://packagist.org/packages/wpsocio/wptelegram-bot-api
- Size: 99.6 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WP Telegram Bot API
Telegram Bot API library for WordPress.
## Usage
```bash
composer require wpsocio/wptelegram-bot-api
``````php
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`