33![ PHP] ( https://img.shields.io/badge/php-%3E%3D5.3-8892bf.svg )
44![ CURL] ( https://img.shields.io/badge/cURL-required-green.svg )
55
6- [ ![ Total Downloads] ( https://poser.pugx.org/eleirbag89 /telegrambotphp/downloads )] ( https://packagist.org/packages/eleirbag89 /telegrambotphp )
7- [ ![ License] ( https://poser.pugx.org/eleirbag89 /telegrambotphp/license )] ( https://packagist.org/packages/eleirbag89 /telegrambotphp )
8- [ ![ StyleCI] ( https://styleci.io/repos/38492095 /shield?branch=master )] ( https://styleci.io/repos/38492095 )
6+ [ ![ Total Downloads] ( https://poser.pugx.org/parsapooorsh /telegrambotphp/downloads )] ( https://packagist.org/packages/parsapooorsh /telegrambotphp )
7+ [ ![ License] ( https://poser.pugx.org/parsapooorsh /telegrambotphp/license )] ( https://packagist.org/packages/parsapooorsh /telegrambotphp )
8+ [ ![ StyleCI] ( https://styleci.io/repos/635079074 /shield?branch=master )] ( https://styleci.io/repos/635079074 )
99
1010A very simple PHP [ Telegram Bot API] ( https://core.telegram.org/bots ) .
1111Compliant with the April 16, 2022 Telegram Bot API update.
@@ -31,23 +31,23 @@ Download
3131
3232From your project directory, run:
3333```
34- composer require eleirbag89 /telegrambotphp
34+ composer require parsapooorsh /telegrambotphp
3535```
3636or
3737```
38- php composer.phar require eleirbag89 /telegrambotphp
38+ php composer.phar require parsapooorsh /telegrambotphp
3939```
4040Note: If you don't have Composer you can download it [ HERE] ( https://getcomposer.org/download/ ) .
4141
4242#### Using release archives
4343
44- https://github.com/Eleirbag89 /TelegramBotPHP/releases
44+ https://github.com/parsapooorsh /TelegramBotPHP/releases
4545
4646#### Using Git
4747
4848From a project directory, run:
4949```
50- git clone https://github.com/Eleirbag89 /TelegramBotPHP.git
50+ git clone https://github.com/parsapooorsh /TelegramBotPHP.git
5151```
5252
5353Installation
@@ -117,9 +117,9 @@ $telegram->downloadFile($file['result']['file_path'], './my_downloaded_file_on_l
117117```
118118
119119See update.php or update cowsay.php for the complete example.
120- If you wanna see the CowSay Bot in action [ add it] ( https://telegram.me/cowmooobot ) .
120+ If you want to see the CowSay Bot in action [ add it] ( https://telegram.me/cowmooobot ) .
121121
122- If you want to use getUpdates instead of the WebHook you need to call the the ` serveUpdate ` function inside a for cycle.
122+ If you want to use getUpdates instead of the WebHook you need to call the ` serveUpdate ` function inside a for cycle.
123123``` php
124124$telegram = new Telegram('YOUR TELEGRAM TOKEN HERE');
125125
@@ -144,16 +144,14 @@ See getUpdates.php for the complete example.
144144Functions
145145------------
146146
147- For a complete and up-to-date functions documentation check http://eleirbag89.github.io/TelegramBotPHP/
148-
149147Build keyboards
150148------------
151149
152150Telegram's bots can have two different kind of keyboards: Inline and Reply.
153151The InlineKeyboard is linked to a particular message, while the ReplyKeyboard is linked to the whole chat.
154- They are both an array of array of buttons, which rapresent the rows and columns.
155- For instance you can arrange a ReplyKeyboard like this:
156- ![ ReplyKeabordExample ] ( https://picload.org/image/rilclcwr/replykeyboard.png )
152+ They are both an array of array of buttons, which represent the rows and columns.
153+ For instance, you can arrange a ReplyKeyboard like this:
154+ ![ ReplyKeyboardExample ] ( https://picload.org/image/rilclcwr/replykeyboard.png )
157155using this code:
158156``` php
159157$option = array(
@@ -169,7 +167,7 @@ $telegram->sendMessage($content);
169167```
170168When a user click on the button, the button text is send back to the bot.
171169For an InlineKeyboard it's pretty much the same (but you need to provide a valid URL or a Callback data)
172- ![ InlineKeabordExample ] ( https://picload.org/image/rilclcwa/replykeyboardinline.png )
170+ ![ InlineKeyboardExample ] ( https://picload.org/image/rilclcwa/replykeyboardinline.png )
173171``` php
174172$option = array(
175173 //First row
@@ -244,11 +242,4 @@ All kinds of contributions are welcome - code, tests, documentation, bug reports
244242Contact me
245243------------
246244
247- You can contact me [ via Telegram] ( https://telegram.me/ggrillo ) but if you have an issue please [ open] ( https://github.com/Eleirbag89/TelegramBotPHP/issues ) one.
248-
249- Support me
250- ------------
251-
252- You can support me using via LiberaPay [ ![ Donate using Liberapay] ( https://liberapay.com/assets/widgets/donate.svg )] ( https://liberapay.com/eleirbag89/donate )
253-
254- or buy me a beer or two using [ Paypal] ( https://paypal.me/eleirbag89 ) .
245+ You can contact me [ via Telegram] ( https://telegram.me/pparsa ) but if you have an issue please [ open] ( https://github.com/parsapooorsh/TelegramBotPHP/issues ) one.
0 commit comments