hadi-aj/intellisense-telegram-bot 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hadi-aj/intellisense-telegram-bot

最新稳定版本:v1.1.0

Composer 安装命令:

composer require hadi-aj/intellisense-telegram-bot

包简介

A Telegram Bot Package compatible with PHP IDE

README 文档

README

A Telegram Bot Package for PHP with built-in documentation support to activate IntelliSense in modern PHP IDEs.

🚀 Why use this?

  • Provides complete PHPDoc type definitions for the Telegram Bot API.
  • IDEs such as PHPStorm or VSCode get full code completion, inline docs, and static analysis support for Telegram Bot functionality.

⚙️ Installation

Install via Composer:

composer require hadi-aj/intellisense-telegram-bot

🧩 Usage

Simply import and include the package in your project:

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

use HadiAj\IntelliSenseTelegramBot\Telegram;

// Now you can instantiate new Telegram(...) and enjoy full IntelliSense support.

You’ll receive namespace-scoped classes and methods already annotated with PHPDoc types. No need for extra stubs or manual typedefs.

📦 What’s inside

  • Entire Telegram Bot API mapped to PHP classes and methods.
  • Extensive PHPDoc comments to empower static analyzers and IDE autocomplete.
  • A composer.json that requires guzzlehttp/guzzle (version ^7.9) as dependency.

📝 Example

Here’s a minimal example showcasing how completion works inside an IDE:

<?php
use HadiAj\IntelliSenseTelegramBot\Telegram;

$bot = new Telegram('TELEGRAM_BOT_TOKEN');

$response = $bot->sendMessage([
  'chat_id' => 12345678,
  'text'    => 'Hello from IntelliSense-enabled Telegram Bot!'
]);

echo $response->message_id;

Inside an IDE, as you type $bot->send…, suggestions pop up immediately, and parameter types and return objects are fully documented.

🛠 Contributing

Contributions, feature requests, and bug reports are welcome! Please open an issue or a pull request.

Getting started:

  1. Fork the repository
  2. Make your changes
  3. Submit a PR for review

📄 License

Distributed under the MIT License—see the LICENSE file.

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-09-27