timerunner2359 / phelegram
A simple solution for telegram bots
Requires
- php: >=7.4
This package is auto-updated.
Last update: 2023-06-11 18:42:25 UTC
README
A simple (yet feature-rich) solution for developing Telegram bots!
this is a mini framework ( or you may call it library ) to make simple or complex telegram bots easily and without getting your hands dirty with Telegram API manualy 😀
Notes
First of all, I'm not a very good developer, you may call me baby developer 😅
I wanted to develop my skill's while writing this project, so, everything is PURE PHP, no ready-to-use library where used. And I don't know how much good I wrote everything but I did my best.
So feel free to find bugs. And it'll be an honor to get suggestions from you guys to make this project better 😉
Why another library for Telegram bots in php?
Well, I've got some very good reasons :
-
I really wanted something to improve my coding skill's , and what's better than a real life situation in Telegram 😁
-
I saw other repos out there for writing Telegram bots and they're great, but I found them hard to deploy and it would take much time ( for me ) to understand how to send a simple message with them. and :
A lazy person will find an easy way to do it. Bill Gates
I wrote this library as simple as possible, methods are easy to use, everything is understandable and you don't have to mess with the core of library at all. You Make Magic Happen 😉
-
Telegram API for bots is a great documention to read, but it's too much detailed to make a simple bot ASAP. this library is the right solution to that 😄
Installation
Installation is as simple as possible.
-
Create a project with Composer :
composer create-project timerunner2359/phelegram
You'll be asked to enter your bot token and your chatID.
Your bot's token is available in @BotFather.
You can get your chatID via @GetMeMyChatIDBot
-
Make Magic Happen in
index.php
file 😉
How to use
For now, The
Bot
class method names are self-describing.
I'll list all methods whenever i could 😅
License
This library is under GNU GPL 3.0 license.