3
3
![ PHP] ( https://img.shields.io/badge/php-%3E%3D5.3-8892bf.svg )
4
4
![ CURL] ( https://img.shields.io/badge/cURL-required-green.svg )
5
5
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 )
9
9
10
10
A very simple PHP [ Telegram Bot API] ( https://core.telegram.org/bots ) .
11
11
Compliant with the April 16, 2022 Telegram Bot API update.
@@ -31,23 +31,23 @@ Download
31
31
32
32
From your project directory, run:
33
33
```
34
- composer require eleirbag89 /telegrambotphp
34
+ composer require parsapooorsh /telegrambotphp
35
35
```
36
36
or
37
37
```
38
- php composer.phar require eleirbag89 /telegrambotphp
38
+ php composer.phar require parsapooorsh /telegrambotphp
39
39
```
40
40
Note: If you don't have Composer you can download it [ HERE] ( https://getcomposer.org/download/ ) .
41
41
42
42
#### Using release archives
43
43
44
- https://github.com/Eleirbag89 /TelegramBotPHP/releases
44
+ https://github.com/parsapooorsh /TelegramBotPHP/releases
45
45
46
46
#### Using Git
47
47
48
48
From a project directory, run:
49
49
```
50
- git clone https://github.com/Eleirbag89 /TelegramBotPHP.git
50
+ git clone https://github.com/parsapooorsh /TelegramBotPHP.git
51
51
```
52
52
53
53
Installation
@@ -117,9 +117,9 @@ $telegram->downloadFile($file['result']['file_path'], './my_downloaded_file_on_l
117
117
```
118
118
119
119
See 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 ) .
121
121
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.
123
123
``` php
124
124
$telegram = new Telegram('YOUR TELEGRAM TOKEN HERE');
125
125
@@ -144,16 +144,14 @@ See getUpdates.php for the complete example.
144
144
Functions
145
145
------------
146
146
147
- For a complete and up-to-date functions documentation check http://eleirbag89.github.io/TelegramBotPHP/
148
-
149
147
Build keyboards
150
148
------------
151
149
152
150
Telegram's bots can have two different kind of keyboards: Inline and Reply.
153
151
The 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 )
157
155
using this code:
158
156
``` php
159
157
$option = array(
@@ -169,7 +167,7 @@ $telegram->sendMessage($content);
169
167
```
170
168
When a user click on the button, the button text is send back to the bot.
171
169
For 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 )
173
171
``` php
174
172
$option = array(
175
173
//First row
@@ -244,11 +242,4 @@ All kinds of contributions are welcome - code, tests, documentation, bug reports
244
242
Contact me
245
243
------------
246
244
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