Skip to content

Introduction

TGbot Laravel is a high-performance package for building Telegram bots on Laravel. It uses Go to process webhooks and provides maximum performance when handling a large number of updates.

  • Using Go for fast webhook processing
  • Optimized queue and rate limiting handling
  • Support for asynchronous message sending
  • API similar to Laravel Router
  • Support for all Telegram update types
  • Route grouping and middleware
  • Support for multiple bots
  • Operation modes: Webhook and Polling
  • Configuration through config files
  • Chat and user states
  • Simple API for working with conversations
  • Route filtering by states
  • Middleware system for routes
  • User authorization
  • Logging and rate limiting
  • PHP ^8.4
  • Laravel ^11.0
  • Composer
  1. Installation — install the package in your project
  2. Configuration — configure the package for your bot
  3. Routing — create your first handlers