Download the PHP package hosseinhunta/php-telegram-api-bot without Composer

On this page you can find all versions of the php package hosseinhunta/php-telegram-api-bot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package php-telegram-api-bot

Total Downloads Latest Stable Version Telegram Group GitHub Stars License Open Source Contributors

Telegram Bot API - PHP SDK (Beta)

This is a PHP SDK for the Telegram Bot API, designed to make building Telegram bots as easy and fun as possible! Whether you're a beginner or an experienced developer, this library is built with simplicity, security, and performance in mind. It comes packed with features, tons of examples, and—most importantly—a detailed documentation site that shows you just how simple it is to create Telegram bots with PHP.

We’ve worked hard to make this library a go-to tool for anyone looking to create Telegram bots without the hassle. It’s lightweight, secure, and optimized for real-world use cases, so you can focus on building your bot instead of wrestling with complicated code.


Supported Telegram Bot API Methods

This SDK currently supports all Telegram Bot API methods! Here’s a quick overview:

Method Supported
sendMessage ✅
getMe ✅
sendPhoto ✅
sendAudio ✅
sendDocument ✅
sendVideo ✅
sendAnimation ✅
sendVoice ✅
sendVideoNote ✅
sendMediaGroup ✅
getUpdates ✅
setWebhook ✅
deleteWebhook ✅
getChat ✅
getChatMember ✅
answerCallbackQuery ✅
...and more! ✅

Yes, you read that right—every method in the Telegram Bot API is supported in this SDK! 🎉


Documentation

Want to dive deeper? Check out our detailed documentation, available in two languages:

The docs will guide you through everything—from installation to advanced usage—with plenty of examples to get you started.


TODO: Upcoming Features

We’re working hard to make this SDK even better! Here’s what’s on the horizon:

Stay tuned for these updates as we continue to improve the SDK! 🚀


Repository Creator's Note

Hey there! Yep, it’s me again—another Telegram bot library. But you might be wondering: why create yet another one? What’s wrong with the existing libraries? And what makes this one different?

These days, I’m going through a pretty strange phase in my life—a time when I don’t have much free time to dive into my true passion: coding. I really wanted to kick off my first GitHub repository with something meaningful, something that reflects the very first library I ever wrote. After coming back from some personal challenges (and a 12-day break), I thought, “How can I enjoy coding again while solving one of my problems?” During that time, I listened to a lot of music, and I got this idea to create a Telegram channel that could act like a playlist for me. I wanted a bot that could upload music links or files I send it as files in the channel, so I could always listen to them and share them with others. Plus, I wanted it to create a playlist for my favorite music platform.

When I started working on this with my old library, I realized how much room for improvement there was. So, I put the bot idea on hold and focused on building a better library instead. My goal? To create a comprehensive and complete library—at least a beta version—that can stand toe-to-toe with other similar libraries out there! When I say “comprehensive,” I mean it should have super clear, simple, and easy-to-understand documentation. So, I set my priorities: simplicity, security, tons of features, optimization, lots of examples, and—most importantly—a documentation site that shows everyone just how easy it is to build a Telegram bot with PHP.

Now, you might ask: why PHP? Why not Python, JavaScript, or even Dart—a language I’ve been working with a lot lately and absolutely love? Well, the first language I ever learned (at a very basic level) was PHP. Then I moved on to Python, and since the first library I ever wrote was in Python, I wanted to go back to those early days when I first fell in love with programming. So, I decided to build this with PHP. Plus, it’s a great chance to level up my PHP skills! Honestly, PHP 8.4 has made the language so much more exciting, and I’m done throwing shade at it.

As I’m writing this, I’ve got 3 days left of my break. My plan is to release a beta version in these 3 days and finally build that music bot I’ve been dreaming about. I hope this library keeps moving forward! :)


Awesome Telegram Bots Built with Telegram Bot SDK!

Have you built a cool Telegram bot using this SDK? Let us know, and we’ll feature it here! Stay tuned for a growing list of awesome bots created by the community.


Additional Information

Any issues, feedback, suggestions, or questions? Please use the issue tracker here.


Contributing

Thank you for considering contributing to the project! Please review the CONTRIBUTING guidelines before submitting any pull requests.


Credits

This project was created by HossienHunTa.


Disclaimer

This SDK is currently in beta, and while we’ve done our best to ensure it works smoothly, there might be bugs or unexpected behavior. Use it at your own risk, and feel free to report any issues you encounter.


License

This project is licensed under the MIT License—feel free to use, modify, and distribute it as you like!


All versions of php-telegram-api-bot with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
guzzlehttp/guzzle Version ^7.9
monolog/monolog Version ^3.9
ext-curl Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hosseinhunta/php-telegram-api-bot contains the following files

Loading the files please wait ...