Skip to content

Commit afc0bc1

Browse files
authored
Merge pull request #968 from noplanman/remove_botan
Completely remove Botan.io integration.
2 parents 89af4d4 + c9ad572 commit afc0bc1

File tree

7 files changed

+1
-417
lines changed

7 files changed

+1
-417
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
99
- Use PSR-12 for code style.
1010
### Deprecated
1111
### Removed
12+
- Botan.io integration completely removed.
1213
### Fixed
1314
- `forward_date` is now correctly saved to the DB.
1415
### Security

README.md

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ A Telegram Bot based on the official [Telegram Bot API][Telegram-Bot-API]
3939
- [Utils](#utils)
4040
- [MySQL storage (Recommended)](#mysql-storage-recommended)
4141
- [Channels Support](#channels-support)
42-
- [Botan.io integration (Optional)](#botanio-integration-optional)
4342
- [Commands](#commands)
4443
- [Predefined Commands](#predefined-commands)
4544
- [Custom Commands](#custom-commands)
@@ -81,7 +80,6 @@ The Bot can:
8180
- full support for **inline bots**.
8281
- inline keyboard.
8382
- Messages, InlineQuery and ChosenInlineQuery are stored in the Database.
84-
- *Botan.io* integration and database cache system. (**new!**)
8583
- Conversation feature
8684

8785
-----
@@ -444,29 +442,6 @@ $telegram->enableExternalMySql($external_pdo_connection)
444442
All methods implemented can be used to manage channels.
445443
With [admin commands](#admin-commands) you can manage your channels directly with your bot private chat.
446444

447-
### Botan.io integration (Optional)
448-
449-
You can enable the integration using this line in you `hook.php`:
450-
451-
```php
452-
$telegram->enableBotan('your_token');
453-
```
454-
455-
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.
456-
457-
The following actions will be tracked:
458-
- Commands (shown as `Command (/command_name)` in the stats
459-
- Inline Queries, Chosen Inline Results and Callback Queries
460-
- Messages sent to the bot (or replies in groups)
461-
462-
In order to use the URL shortener you must include the class `use Longman\TelegramBot\Botan;` and call it like this:
463-
464-
```php
465-
Botan::shortenUrl('https://github.com/php-telegram-bot/core', $user_id);
466-
```
467-
468-
Shortened URLs are cached in the database (if MySQL storage is enabled).
469-
470445
### Commands
471446

472447
#### Predefined Commands

src/Botan.php

Lines changed: 0 additions & 254 deletions
This file was deleted.

0 commit comments

Comments
 (0)