yx1hlqbk / telegram
v1.0
2023-03-07 08:17 UTC
Requires
- guzzlehttp/guzzle: ^7.4
This package is auto-updated.
Last update: 2025-03-07 12:45:54 UTC
README
簡易Telegram bot api 功能
安裝
composer require yx1hlqbk/telegram
環境要求
- >= PHP 7.0
範例
use Ian\TelegramApi\Telegram; $botKey = ''; $chatId = ''; try { $telegram = new Telegram($botKey); $result = $telegram->sendMessage($chatId, ''); var_dump($result); } catch (\Throwable $th) { exit($th->getMessage()); }