lermal/laravel-telegram-bot 问题修复 & 功能扩展

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

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

lermal/laravel-telegram-bot

最新稳定版本:v1.0.0

Composer 安装命令:

composer require lermal/laravel-telegram-bot

包简介

Laravel package for Telegram Bot API interactions with webhook and polling support.

README 文档

README

Laravel package for Telegram Bot API with webhook and polling support.

Language: English | Русский

Features

  • Telegram API client with typed methods and raw API calls.
  • Webhook mode with secret validation.
  • Polling mode with retries, backoff, --max-iterations, and --stop-when-empty.
  • Update dispatcher with handler pipeline.
  • Built-in anti-spam for repeated chat commands.
  • Telemetry events for polling and update processing lifecycle.

Quick start

composer require lermal/laravel-telegram-bot
php artisan telegram:install

Then configure handlers in config/telegram.php.

Requirements

  • PHP 8.3+
  • Laravel 13+

Main commands

  • php artisan telegram:webhook:set {url?}
  • php artisan telegram:webhook:info
  • php artisan telegram:webhook:delete {--drop-pending-updates}
  • php artisan telegram:poll {--once} {--max-iterations=} {--stop-when-empty}
  • php artisan telegram:install

Documentation

Detailed setup, architecture notes, examples, and troubleshooting are in wiki: https://github.com/lermal/laravel-telegram-bot/wiki

Support

Tests

composer test

License

MIT

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-04-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固