Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Telegram Bot Api Bundle

Telegram Bot Api Bundle Laravel Package

shaygan/telegram-bot-api-bundle

A Laravel bundle wrapping the Telegram Bot API, giving PHP developers a clean, framework-friendly way to send messages, handle updates, and build bots without raw HTTP calls. Simple configuration and service-container integration keep bot code readable and maintainable.

View on GitHub
Deep Wiki
Context7

A simple wrapper for telegram-bot-api.

Frequently asked questions about Telegram Bot Api Bundle
Can I install shaygan/telegram-bot-api-bundle in a Laravel application?
It is a Symfony 2 bundle, not a Laravel package, so there is no bundle bootstrap or DI extension equivalent in Laravel. Composer may resolve it, but the service registration and configuration tree will not work the way composer require implies. The only reusable part is the thin Telegram API client wrapper, which you would need to fork or copy into a Laravel service provider. For a real Laravel app, choose a Laravel-native Telegram SDK instead.
Does this package support Laravel 10, 11, or 12?
There is no verified Laravel support. The package is pinned to the Symfony 2 generation, which typically means older PHP and Guzzle constraints that conflict with modern Laravel running PHP 8.2+ and Guzzle 7. Expect dependency resolution conflicts and do not plan on it as a supported Laravel dependency.
How do I send Telegram messages in Laravel without raw HTTP calls?
Use a Laravel-native SDK such as irazasyed/telegram-bot-sdk, nutgram/nutgram, or defstudio/telegraph, and wrap it behind your own TelegramClient interface. That gives you readable method calls, Laravel config and env integration, and testability without adapter shims. This bundle's client could be harvested as reference code, but it is not a drop-in Laravel solution.
What is the difference between this Symfony bundle and a Laravel Telegram package?
A Symfony bundle relies on a Kernel, a Bundle class, a DI Extension, and a Configuration tree, while a Laravel package uses a service provider, config files, and facades or bindings. Laravel has no equivalent bundle bootstrap, so the scaffolding here cannot be consumed as-is. The underlying Telegram API wrapper is the only portable piece, and it is thin plumbing rather than an opinionated bot runtime.
Is shaygan/telegram-bot-api-bundle maintained and safe for production?
The adoption signals are weak: around 22 stars, zero dependents, a single maintainer, and a release date recorded as a future or invalid timestamp. There is no visible CI, test coverage, or community security review. For production Laravel work, treat it as unmaintained reference source rather than a runtime dependency.
Does it support Telegram webhooks and secret token validation?
The package is described as webhook and polling friendly, but it comes from the Symfony 2 era and may not include modern webhook secret-token validation or current update fields. You would need to verify the actual methods in the source before relying on it. In Laravel you would normally define a webhook route and validate the secret token yourself or use a native SDK that supports it.
Which Telegram Bot API version and methods does this bundle implement?
The documentation does not reliably state the targeted Bot API version or method coverage. A wrapper from the Symfony 2 era will likely miss recent features such as topics, business accounts, mini apps, payments, and paid media. Every missing method becomes a raw HTTP call you write and maintain yourself.
Can I reuse the Telegram client class from this bundle in a Laravel service provider?
Yes in principle, but only by copying or forking the thin API client and discarding the bundle scaffolding. You would register it as a singleton in a Laravel service provider and feed the token through config and env instead of parameters.yml. That converts the package into maintained in-house code, which is roughly a day of work for a competent engineer.
What are better alternatives for building Telegram bots in Laravel?
Evaluate irazasyed/telegram-bot-sdk for a broad API wrapper, nutgram/nutgram for handler routing and conversational bots, and defstudio/telegraph for multi-bot support and testing helpers. All three are Laravel-native or Laravel-friendly and avoid the Symfony bundle adapter problem. Pick based on whether you need simple sends, conversation state, or multi-bot management.
How should I manage Telegram bot tokens and multi-bot support in Laravel?
Store tokens in environment variables and read them through Laravel config, never in a committed parameters.yml file. This bundle appears to use a single global token, so multi-bot support would require custom work. Laravel-native SDKs such as defstudio/telegraph handle multiple bots and testing helpers more cleanly.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
robertmarney/lara-hierarchial-collections
simonschaufi/rule-doc-generator
emissaoja/emissaoja
blackbricksoftware/gravityforms-civicrm-form-processor
al-rahabi/fancy-crud
jinas/dhivatar-component
mltstephane/laravel-quality
bernskiold/laravel-talentlms
bernskioldmedia/laravel-form-architect