Commit 69ed1e89 authored by Armando Lüscher's avatar Armando Lüscher Committed by GitHub

Merge pull request #574 from noplanman/update_readme

Update readme to state of 0.46.0
parents bb58490f ef2b68a5
...@@ -6,6 +6,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c ...@@ -6,6 +6,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
## [Unreleased] ## [Unreleased]
### Added ### Added
### Changed ### Changed
- Updated readme to latest state of 0.46.0.
### Deprecated ### Deprecated
### Removed ### Removed
### Fixed ### Fixed
......
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
A Telegram Bot based on the official [Telegram Bot API](https://core.telegram.org/bots/api) A Telegram Bot based on the official [Telegram Bot API][Telegram-Bot-API]
## Table of Contents ## Table of Contents
- [Introduction](#introduction) - [Introduction](#introduction)
...@@ -152,9 +152,8 @@ group. This step is up to you actually. ...@@ -152,9 +152,8 @@ group. This step is up to you actually.
### Require this package with Composer ### Require this package with Composer
Install this package through [Composer](https://getcomposer.org/). Install this package through [Composer][composer].
Edit your project's `composer.json` file to require Edit your project's `composer.json` file to require `longman/telegram-bot`.
`longman/telegram-bot`.
Create *composer.json* file Create *composer.json* file
```json ```json
...@@ -162,7 +161,7 @@ Create *composer.json* file ...@@ -162,7 +161,7 @@ Create *composer.json* file
"name": "yourproject/yourproject", "name": "yourproject/yourproject",
"type": "project", "type": "project",
"require": { "require": {
"php": ">=5.6", "php": ">=5.5",
"longman/telegram-bot": "*" "longman/telegram-bot": "*"
} }
} }
...@@ -179,7 +178,7 @@ composer require longman/telegram-bot ...@@ -179,7 +178,7 @@ composer require longman/telegram-bot
### Choose how to retrieve Telegram updates ### Choose how to retrieve Telegram updates
The bot can handle updates with **webhook** or **getUpdate** method: The bot can handle updates with **Webhook** or **getUpdates** method:
| | Webhook | getUpdate | | | Webhook | getUpdate |
| ---- | :----: | :----: | | ---- | :----: | :----: |
...@@ -190,21 +189,24 @@ The bot can handle updates with **webhook** or **getUpdate** method: ...@@ -190,21 +189,24 @@ The bot can handle updates with **webhook** or **getUpdate** method:
## Webhook installation ## Webhook installation
In order to set a [Webhook](https://core.telegram.org/bots/api#setwebhook) you need a server with https and composer support. Note: For a more detailed explanation, head over to the [example-bot repository][example-bot-repository] and follow the instructions there.
In order to set a [Webhook][api-setwebhook] you need a server with HTTPS and composer support.
(For a [self signed certificate](#self-signed-certificate) you need to add some extra code) (For a [self signed certificate](#self-signed-certificate) you need to add some extra code)
Create *set.php* (or just copy and edit *examples/set.php*) and put into it: Create [*set.php*][set.php] with the following contents:
```php ```php
<?php <?php
// Load composer // Load composer
require __DIR__ . '/vendor/autoload.php'; require __DIR__ . '/vendor/autoload.php';
$API_KEY = 'your_bot_api_key'; $bot_api_key = 'your:bot_api_key';
$BOT_NAME = 'namebot'; $bot_username = 'username_bot';
$hook_url = 'https://yourdomain/path/to/hook.php'; $hook_url = 'https://your-domain/path/to/hook.php';
try { try {
// Create Telegram API object // Create Telegram API object
$telegram = new Longman\TelegramBot\Telegram($API_KEY, $BOT_NAME); $telegram = new Longman\TelegramBot\Telegram($bot_api_key, $bot_username);
// Set webhook // Set webhook
$result = $telegram->setWebhook($hook_url); $result = $telegram->setWebhook($hook_url);
...@@ -212,30 +214,33 @@ try { ...@@ -212,30 +214,33 @@ try {
echo $result->getDescription(); echo $result->getDescription();
} }
} catch (Longman\TelegramBot\Exception\TelegramException $e) { } catch (Longman\TelegramBot\Exception\TelegramException $e) {
echo $e; // log telegram errors
// echo $e->getMessage();
} }
``` ```
Open your *set.php* via the browser to register the webhook with Telegram. Open your *set.php* via the browser to register the webhook with Telegram.
You should see `Webhook was set`.
Now, create *hook.php* (or just copy and edit *examples/hook.php*) and put into it: Now, create [*hook.php*][hook.php] with the following contents:
```php ```php
<?php <?php
// Load composer // Load composer
require __DIR__ . '/vendor/autoload.php'; require __DIR__ . '/vendor/autoload.php';
$API_KEY = 'your_bot_api_key'; $bot_api_key = 'your:bot_api_key';
$BOT_NAME = 'namebot'; $bot_username = 'username_bot';
try { try {
// Create Telegram API object // Create Telegram API object
$telegram = new Longman\TelegramBot\Telegram($API_KEY, $BOT_NAME); $telegram = new Longman\TelegramBot\Telegram($bot_api_key, $bot_username);
// Handle telegram webhook request // Handle telegram webhook request
$telegram->handle(); $telegram->handle();
} catch (Longman\TelegramBot\Exception\TelegramException $e) { } catch (Longman\TelegramBot\Exception\TelegramException $e) {
// Silence is golden! // Silence is golden!
// log telegram errors // log telegram errors
// echo $e; // echo $e->getMessage();
} }
``` ```
...@@ -243,25 +248,25 @@ try { ...@@ -243,25 +248,25 @@ try {
To upload the certificate, add the certificate path as a parameter in *set.php*: To upload the certificate, add the certificate path as a parameter in *set.php*:
```php ```php
$result = $telegram->setWebhook($hook_url, ['certificate' => $certificate_path]); $result = $telegram->setWebhook($hook_url, ['certificate' => '/path/to/certificate']);
``` ```
### Unset Webhook ### Unset Webhook
Edit *example/unset.php* with your bot credentials and execute it. Edit [*unset.php*][unset.php] with your bot credentials and execute it.
### getUpdate installation ### getUpdates installation
The MySQL database must be active! The MySQL database must be enabled for the getUpdates method!
Create *getUpdateCLI.php* (or just copy and edit *examples/getUpdateCLI.php*) and put into it: Create [*getUpdatesCLI.php*][getUpdatesCLI.php] with the following contents:
```php ```php
#!/usr/bin/env php #!/usr/bin/env php
<?php <?php
require __DIR__ . '/vendor/autoload.php'; require __DIR__ . '/vendor/autoload.php';
$API_KEY = 'your_bot_api_key'; $bot_api_key = 'your:bot_api_key';
$BOT_NAME = 'namebot'; $bot_username = 'username_bot';
$mysql_credentials = [ $mysql_credentials = [
'host' => 'localhost', 'host' => 'localhost',
'user' => 'dbuser', 'user' => 'dbuser',
...@@ -271,26 +276,27 @@ $mysql_credentials = [ ...@@ -271,26 +276,27 @@ $mysql_credentials = [
try { try {
// Create Telegram API object // Create Telegram API object
$telegram = new Longman\TelegramBot\Telegram($API_KEY, $BOT_NAME); $telegram = new Longman\TelegramBot\Telegram($bot_api_key, $bot_username);
// Enable MySQL // Enable MySQL
$telegram->enableMySQL($mysql_credentials); $telegram->enableMySql($mysql_credentials);
// Handle telegram getUpdate request // Handle telegram getUpdate request
$telegram->handleGetUpdates(); $telegram->handleGetUpdates();
} catch (Longman\TelegramBot\Exception\TelegramException $e) { } catch (Longman\TelegramBot\Exception\TelegramException $e) {
// log telegram errors // log telegram errors
echo $e; // echo $e->getMessage();
} }
``` ```
give the file permission to execute: Next, give the file permission to execute:
``` ```bash
chmod 775 getUpdateCLI.php $ chmod +x getUpdatesCLI.php
```
then run
``` ```
./getUpdateCLI.php
Lastly, run it!
```bash
$ ./getUpdatesCLI.php
``` ```
## Support ## Support
...@@ -317,14 +323,17 @@ $result = Request::sendMessage(['chat_id' => $chat_id, 'text' => 'Your utf8 text ...@@ -317,14 +323,17 @@ $result = Request::sendMessage(['chat_id' => $chat_id, 'text' => 'Your utf8 text
#### Send Photo #### Send Photo
To send a local photo, provide the file path as the second parameter: To send a local photo, add it properly to the `$data` parameter using the file path:
```php ```php
$data = ['chat_id' => $chat_id]; $data = [
$result = Request::sendPhoto($data, $telegram->getUploadPath() . '/image.jpg'); 'chat_id' => $chat_id,
'photo' => Request::encodeFile('/path/to/pic.jpg'),
];
$result = Request::sendPhoto($data);
``` ```
If you know the `file_id` of a previously uploaded file, just include it in the data array: If you know the `file_id` of a previously uploaded file, just use it directly in the data array:
```php ```php
$data = [ $data = [
...@@ -334,8 +343,18 @@ $data = [ ...@@ -334,8 +343,18 @@ $data = [
$result = Request::sendPhoto($data); $result = Request::sendPhoto($data);
``` ```
*sendAudio*, *sendDocument*, *sendSticker*, *sendVideo* and *sendVoice* all work in the same way. To send a remote photo, use the direct URL instead:
See *examples/Commands/ImageCommand.php* for a full example.
```php
$data = [
'chat_id' => $chat_id,
'photo' => 'https://example.com/path/to/pic.jpg',
];
$result = Request::sendPhoto($data);
```
*sendAudio*, *sendDocument*, *sendSticker*, *sendVideo*, *sendVoice* and *sendVideoNote* all work in the same way, just check the [API documentation](https://core.telegram.org/bots/api#sendphoto) for the exact usage.
See the [*ImageCommand.php*][ImageCommand.php] for a full example.
#### Send Chat Action #### Send Chat Action
...@@ -345,27 +364,28 @@ Request::sendChatAction(['chat_id' => $chat_id, 'action' => 'typing']); ...@@ -345,27 +364,28 @@ Request::sendChatAction(['chat_id' => $chat_id, 'action' => 'typing']);
#### getUserProfilePhoto #### getUserProfilePhoto
Retrieve the user photo, see *src/Commands/WhoamiCommand.php* for a full example. Retrieve the user photo, see [*WhoamiCommand.php*][WhoamiCommand.php] for a full example.
#### getFile and dowloadFile #### getFile and downloadFile
Get the file path and download it, see *src/Commands/WhoamiCommand.php* for a full example. Get the file path and download it, see [*WhoamiCommand.php*][WhoamiCommand.php] for a full example.
#### Send message to all active chats #### Send message to all active chats
To do this you have to enable the MySQL connection. To do this you have to enable the MySQL connection.
Here's an example of use: Here's an example of use (check [`DB::selectChats()`][DB::selectChats] for parameter usage):
```php ```php
$results = Request::sendToActiveChats( $results = Request::sendToActiveChats(
'sendMessage', // callback function to execute (see Request.php for available methods) 'sendMessage', // Callback function to execute (see Request.php methods)
['text' => 'Hey! Check out the new features!!'], // Data to pass to the request ['text' => 'Hey! Check out the new features!!'], // Param to evaluate the request
true, // Send to chats (group chat) [
true, // Send to chats (super group chat) 'groups' => true,
true, // Send to users (single chat) 'supergroups' => true,
null, // 'yyyy-mm-dd hh:mm:ss' date range from 'channels' => false,
null // 'yyyy-mm-dd hh:mm:ss' date range to 'users' => true,
); ]
);
``` ```
You can also broadcast a message to users, from the private chat with your bot. Take a look at the [admin commands](#admin-commands) below. You can also broadcast a message to users, from the private chat with your bot. Take a look at the [admin commands](#admin-commands) below.
...@@ -374,9 +394,7 @@ You can also broadcast a message to users, from the private chat with your bot. ...@@ -374,9 +394,7 @@ You can also broadcast a message to users, from the private chat with your bot.
### MySQL storage (Recommended) ### MySQL storage (Recommended)
If you want to save messages/users/chats for further usage If you want to save messages/users/chats for further usage in commands, create a new database (`utf8mb4_unicode_520_ci`), import *structure.sql* and enable MySQL support after object creation and BEFORE `handle()` method:
in commands, create a new database, import *structure.sql* and enable
MySQL support after object creation and BEFORE handle method:
```php ```php
$mysql_credentials = [ $mysql_credentials = [
...@@ -386,22 +404,25 @@ $mysql_credentials = [ ...@@ -386,22 +404,25 @@ $mysql_credentials = [
'database' => 'dbname', 'database' => 'dbname',
]; ];
$telegram->enableMySQL($mysql_credentials); $telegram->enableMySql($mysql_credentials);
``` ```
You can set a custom prefix to all the tables while you are enabling MySQL: You can set a custom prefix to all the tables while you are enabling MySQL:
```php ```php
$telegram->enableMySQL($mysql_credentials, $BOT_NAME . '_'); $telegram->enableMySql($mysql_credentials, $bot_username . '_');
``` ```
Consider to use the *utf8mb4* branch if you find some special characters problems. You can also store inline query and chosen inline query data in the database.
You can also store inline query and chosen inline query in the database.
#### External Database connection #### External Database connection
Is possible to provide to the library an external mysql connection. Here's how to configure it:
It is possible to provide the library with an external MySQL PDO connection.
Here's how to configure it:
```php ```php
$telegram->enableExternalMysql($external_pdo_connection) $telegram->enableExternalMySql($external_pdo_connection)
//$telegram->enableExternalMySQL($external_pdo_connection, $table_prefix) //$telegram->enableExternalMySql($external_pdo_connection, $table_prefix)
``` ```
### Channels Support ### Channels Support
...@@ -410,22 +431,24 @@ With [admin commands](#admin-commands) you can manage your channels directly wit ...@@ -410,22 +431,24 @@ With [admin commands](#admin-commands) you can manage your channels directly wit
### Botan.io integration (Optional) ### Botan.io integration (Optional)
You can enable the integration using this line: You can enable the integration using this line in you `hook.php`:
```php ```php
$telegram->enableBotan('your_token'); $telegram->enableBotan('your_token');
``` ```
Replace ```'your_token'``` with your Botan.io token, check [this page](https://github.com/botanio/sdk#creating-an-account) to see how to obtain one. Replace `your_token` with your Botan.io token, check [this page](https://github.com/botanio/sdk#creating-an-account) to see how to obtain one.
The following actions will be tracked: The following actions will be tracked:
- Commands (shown as `Command (/command_name)` in the stats - Commands (shown as `Command (/command_name)` in the stats
- Inline Queries, Chosen Inline Results and Callback Queries - Inline Queries, Chosen Inline Results and Callback Queries
- Messages sent to the bot (or replies in groups) - Messages sent to the bot (or replies in groups)
In order to use the URL shortener you must include the class ```use Longman\TelegramBot\Botan;``` and call it like this: In order to use the URL shortener you must include the class `use Longman\TelegramBot\Botan;` and call it like this:
```Botan::shortenUrl('https://github.com/php-telegram-bot/core', $user_id);``` ```php
Botan::shortenUrl('https://github.com/php-telegram-bot/core', $user_id);
```
Shortened URLs are cached in the database (if MySQL storage is enabled). Shortened URLs are cached in the database (if MySQL storage is enabled).
...@@ -434,117 +457,117 @@ Shortened URLs are cached in the database (if MySQL storage is enabled). ...@@ -434,117 +457,117 @@ Shortened URLs are cached in the database (if MySQL storage is enabled).
#### Predefined Commands #### Predefined Commands
The bot is able to recognise commands in a chat with multiple bots (/command@mybot). The bot is able to recognise commands in a chat with multiple bots (/command@mybot).
It can execute command triggering a chat event. Here's the list:
- New chat participant (**NewchatparticipantCommand.php**) It can execute commands that get triggered by chat events.
- Left chat participant (**LeftchatparticipantCommand.php**)
- New chat title (**NewchattitleCommand.php**)
- Delete chat photo (**DeletechatphotoCommand.php**)
- Group chat created (**GroupchatcreatedCommand.php**)
- Super group chat created (**SupergroupchatcreatedCommand.php**)
- Channel chat created (**ChannelchatcreatedCommand.php**)
- Inline query (**InlinequeryCommand.php**)
- Chosen inline result (**ChoseninlineresultCommand.php**)
**GenericCommand.php** lets you handle commands that don't exist or to Here's the list:
use commands as a variable:
Favourite colour? **/black, /red** - *StartCommand.php* (A new user starts to use the bot.)
- *NewChatMembersCommand.php* (A new member(s) was added to the group, information about them.)
- *LeftChatMemberCommand.php* (A member was removed from the group, information about them.)
- *NewChatTitleCommand.php* (A chat title was changed to this value.)
- *NewChatPhotoCommand.php* (A chat photo was changed to this value.)
- *DeleteChatPhotoCommand.php* (Service message: the chat photo was deleted.)
- *GroupChatCreatedCommand.php* (Service message: the group has been created.)
- *SupergroupChatCreatedCommand.php* (Service message: the supergroup has been created.)
- *ChannelChatCreatedCommand.php* (Service message: the channel has been created.)
- *MigrateToChatIdCommand.php* (The group has been migrated to a supergroup with the specified identifier.)
- *MigrateFromChatIdCommand.php* (The supergroup has been migrated from a group with the specified identifier.)
- *PinnedMessageCommand.php* (Specified message was pinned.)
Favourite number? **/1, /134** - *GenericmessageCommand.php* (Handle any type of message.)
- *GenericCommand.php* (Handle commands that don't exist or to use commands as a variable.)
**GenericmessageCommand.php** lets you handle any type of message. - Favourite colour? */black, /red*
- Favourite number? */1, /134*
#### Custom Commands #### Custom Commands
Maybe you would like to develop your own commands. A good practice is Maybe you would like to develop your own commands.
to store them outside *vendor/*. This can be done using: There is a guide to help you [create your own commands][wiki-create-your-own-commands].
```php
$commands_folder = __DIR__ . '/Commands/';
$telegram->addCommandsPath($commands_folder);
```
Inside *examples/Commands/* there are some samples that show how to use types. Also, be sure to have a look at the [example commands][ExampleCommands-folder] to learn more about custom commands and how they work.
#### Commands Configuration #### Commands Configuration
With this method you can set some command specific parameters: With this method you can set some command specific parameters, for example:
```php ```php
//Google geocode/timezone API key for date command // Google geocode/timezone API key for /date command
$telegram->setCommandConfig('date', ['google_api_key' => 'your_google_api_key_here']); $telegram->setCommandConfig('date', ['google_api_key' => 'your_google_api_key_here']);
//OpenWeatherMap API key for weather command // OpenWeatherMap API key for /weather command
$telegram->setCommandConfig('weather', ['owm_api_key' => 'your_owm_api_key_here']); $telegram->setCommandConfig('weather', ['owm_api_key' => 'your_owm_api_key_here']);
``` ```
### Admin Commands ### Admin Commands
Enabling this feature, the admin bot can perform some super user commands like: Enabling this feature, the bot admin can perform some super user commands like:
- Send message to all chats */sendtoall*
- List all the chats started with the bot */chats* - List all the chats started with the bot */chats*
- Clean up old database entries */cleanup*
- Show debug information about the bot */debug*
- Send message to all chats */sendtoall*
- Post any content to your channels */sendtochannel* - Post any content to your channels */sendtochannel*
- inspect a user or a chat with */whois* (new!) - Inspect a user or a chat with */whois*
Take a look at all default admin commands stored in the [*src/Commands/AdminCommands/*][AdminCommands-folder] folder.
#### Set Admins #### Set Admins
You can specify one or more admins with this option: You can specify one or more admins with this option:
```php ```php
//Single admin // Single admin
$telegram->enableAdmin(your_telegram_user_id); $telegram->enableAdmin(your_telegram_user_id);
//Multiple admins // Multiple admins
$telegram->enableAdmins([your_telegram_user_id, other_telegram_user_id]); $telegram->enableAdmins([your_telegram_user_id, other_telegram_user_id]);
``` ```
Telegram user id can be retrieved with the command **/whoami**. Telegram user id can be retrieved with the [*/whoami*][WhoamiCommand.php] command.
Admin commands are stored in *src/Admin/* folder.
To get a list of all available commands, type **/help**.
#### Channel Administration #### Channel Administration
To enable this feature follow these steps: To enable this feature follow these steps:
- Add your bot as channel administrator, this can be done with any telegram client. - Add your bot as channel administrator, this can be done with any Telegram client.
- Enable admin interface for your user as explained in the admin section above. - Enable admin interface for your user as explained in the admin section above.
- Enter your channel name as a parameter for the */sendtochannel* command: - Enter your channel name as a parameter for the [*/sendtochannel*][SendtochannelCommand.php] command:
```php ```php
$telegram->setCommandConfig('sendtochannel', ['your_channel' => ['@type_here_your_channel']]); $telegram->setCommandConfig('sendtochannel', ['your_channel' => ['@type_here_your_channel']]);
``` ```
- If you want to manage more channels: - If you want to manage more channels:
```php ```php
$telegram->setCommandConfig('sendtochannel', ['your_channel'=>['@type_here_your_channel', '@type_here_another_channel', '@and_so_on']]); $telegram->setCommandConfig('sendtochannel', ['your_channel' => ['@type_here_your_channel', '@type_here_another_channel', '@and_so_on']]);
``` ```
- Enjoy! - Enjoy!
### Upload and Download directory path ### Upload and Download directory path
You can override the default Upload and Download directory with: To use the Upload and Download functionality, you need to set the paths with:
```php ```php
$telegram->setDownloadPath('yourpath/Download'); $telegram->setDownloadPath('/your/path/Download');
$telegram->setUploadPath('yourpath/Upload'); $telegram->setUploadPath('/your/path/Upload');
``` ```
## Documentation ## Documentation
Take a look at the repo [Wiki](https://github.com/php-telegram-bot/core/wiki) for further information and tutorials! Take a look at the repo [Wiki][wiki] for further information and tutorials!
Feel free to improve! Feel free to improve!
## Example bot ## Example bot
We're busy working on a full A-Z example bot, to help get you started with this library and to show you how to use all its features. We're busy working on a full A-Z example bot, to help get you started with this library and to show you how to use all its features.
You can check the progress of the [example bot repository](https://github.com/php-telegram-bot/example-bot). You can check the progress of the [example bot repository][example-bot-repository]).
## Projects with this library ## Projects with this library
Here's a list of projects that feats this library, feel free to add yours! Here's a list of projects that feats this library, feel free to add yours!
- [Super-Dice-Roll](https://github.com/RafaelDelboni/Super-Dice-Roll) [@superdiceroll_bot](https://telegram.me/superdiceroll_bot) - [Inline Games](https://github.com/jacklul/inlinegamesbot) ([@inlinegamesbot](https://telegram.me/inlinegamesbot))
- [Super-Dice-Roll](https://github.com/RafaelDelboni/Super-Dice-Roll) ([@superdiceroll_bot](https://telegram.me/superdiceroll_bot))
- [tg-mentioned-bot](https://github.com/gruessung/tg-mentioned-bot) - [tg-mentioned-bot](https://github.com/gruessung/tg-mentioned-bot)
## Troubleshooting ## Troubleshooting
If you like living on the edge, please report any bugs you find on the If you like living on the edge, please report any bugs you find on the
[PHP Telegram Bot issues](https://github.com/php-telegram-bot/core/issues) page. [PHP Telegram Bot issues][issues] page.
## Contributing ## Contributing
...@@ -558,3 +581,22 @@ which this project is licensed under. ...@@ -558,3 +581,22 @@ which this project is licensed under.
## Credits ## Credits
Credit list in [CREDITS](CREDITS) Credit list in [CREDITS](CREDITS)
[Telegram-Bot-API]: https://core.telegram.org/bots/api "Telegram Bot API"
[composer]: https://getcomposer.org/ "Composer"
[example-bot-repository]: https://github.com/php-telegram-bot/example-bot "Example Bot repository"
[api-setwebhook]: https://core.telegram.org/bots/api#setwebhook "Webhook on Telegram Bot API"
[set.php]: https://github.com/php-telegram-bot/example-bot/blob/master/set.php "example set.php"
[unset.php]: https://github.com/php-telegram-bot/example-bot/blob/master/unset.php "example unset.php"
[hook.php]: https://github.com/php-telegram-bot/example-bot/blob/master/hook.php "example hook.php"
[getUpdatesCLI.php]: https://github.com/php-telegram-bot/example-bot/blob/master/getUpdatesCLI.php "example getUpdatesCLI.php"
[AdminCommands-folder]: https://github.com/php-telegram-bot/core/tree/master/src/Commands/AdminCommands "Admin commands folder"
[ExampleCommands-folder]: https://github.com/php-telegram-bot/example-bot/blob/master/Commands "Example commands folder"
[ImageCommand.php]: https://github.com/php-telegram-bot/example-bot/blob/master/Commands/ImageCommand.php "example /image command"
[WhoamiCommand.php]: https://github.com/php-telegram-bot/example-bot/blob/master/Commands/WhoamiCommand.php "example /whoami command"
[HelpCommand.php]: https://github.com/php-telegram-bot/example-bot/blob/master/Commands/HelpCommand.php "example /help command"
[SendtochannelCommand.php]: https://github.com/php-telegram-bot/core/blob/master/src/Commands/AdminCommands/SendtochannelCommand.php "/sendtochannel admin command"
[DB::selectChats]: https://github.com/php-telegram-bot/core/blob/0.46.0/src/DB.php#L1000 "DB::selectChats() parameters"
[wiki]: https://github.com/php-telegram-bot/core/wiki "PHP Telegram Bot Wiki"
[wiki-create-your-own-commands]: https://github.com/php-telegram-bot/core/wiki/Create-your-own-commands "Create your own commands"
[issues]: https://github.com/php-telegram-bot/core/issues "PHP Telegram Bot Issues"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment