mehdihamid1223/telemon
最新稳定版本:1.0.0
Composer 安装命令:
composer require mehdihamid1223/telemon
包简介
A simple PHP wrapper for the Telegram Bot API
README 文档
README
A simple PHP wrapper for the Telegram Bot API, providing object-oriented access to Telegram responses with autocomplete support in IDEs.
Installation
composer require MehdiHamid32/telemon
Usage
<?php use Telemon\Telemon; require_once __DIR__ . '/vendor/autoload.php'; try { $telemon = Telemon::create('YOUR_BOT_TOKEN'); $message = $telemon->sendMessage([ 'chat_id' => 123, 'text' => 'Hello, world!' ]); if ($message->ok()) { echo "Message ID: " . $message->result()->messageId(); } else { echo "Error: " . $message->description(); } } catch (Exception $e) { echo "Exception: " . $e->getMessage(); }
Features
✅ Easy-to-use OOP wrapper for Telegram Bot API ✅ IDE autocomplete support for Telegram objects (Message, User, Chat, etc.) ✅ Error handling with exceptions ✅ Supports all Telegram Bot API methods
License
MIT License © 2025 Mehdi Hamid
统计信息
- 总下载量: 0
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-10-01