This repository has been archived by the owner on Sep 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to Telegram Bot API 4.5 + 4.6 Improved PHPDocs Updated code indentation to PSR-12 standard Updated LICENSE file Updated CHANGELOG file using Keep a Changelog Missing fields in some types Dropped support for PHP 5.6
- Loading branch information
Showing
112 changed files
with
6,944 additions
and
4,320 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,139 +1,192 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
## [1.6.14] | ||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [1.7] - 2020-03-18 | ||
### Changed | ||
- Added support for **PHP 7.2+** | ||
- Updated to Telegram Bot API 4.5 + 4.6 | ||
- Improved PHPDocs | ||
- Updated code indentation to PSR-12 standard | ||
- Updated LICENSE file | ||
- Updated CHANGELOG file using [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) | ||
|
||
### Fixed | ||
- Missing fields in some types | ||
|
||
### Removed | ||
- Dropped support for **PHP 5.6** | ||
|
||
## [1.6.14] - 2019-08-01 | ||
### Changed | ||
- Updated to Telegram Bot API 4.4 | ||
|
||
## [1.6.13] | ||
## [1.6.13] - 2019-06-01 | ||
### Changed | ||
- Updated to Telegram Bot API 4.3 | ||
- Updated phpdocs | ||
- Updated PHPDocs | ||
|
||
### Fixed | ||
- Missing $poll variable inside `Message` class | ||
- Missing `poll` variable inside Message class | ||
|
||
## [1.6.12] | ||
## [1.6.12] - 2019-04-14 | ||
### Changed | ||
- Updated to Telegram Bot API 4.2 | ||
|
||
## [1.6.11] | ||
## [1.6.11] - 2018-08-28 | ||
### Added | ||
- Added custom method: `clearUpdates()`. It's an alias for `$this->getUpdates(-1);` | ||
- Added `TelegramLimits` class constants to get the download/upload file limit. | ||
- Added `clearUpdates()` custom method (it's an alias for `getUpdates(-1)`) | ||
- Added `TelegramLimits` class constants to get the download/upload file limit | ||
|
||
### Changed | ||
- Updated to __Telegram Bot API 4.1__ | ||
- You can now get the string argument at the array index position with the `getArgs()` method. Pass: | ||
- True to get an array of strings; | ||
- False to get a string; | ||
- Integer to get the string at the array index position. | ||
- Updated to Telegram Bot API 4.1 | ||
- You can now pass an interger to `getArgs()` method to get the string at the array index position | ||
|
||
## [1.6.10] | ||
## [1.6.10] - 2018-08-22 | ||
### Fixed | ||
- `JsonMapper Exception` PHPDoc message in all methods. | ||
- Exception using `sendMessage + split message feature` with unicode strings. | ||
- Missing php extensions in `composer.json`. | ||
- Fixed `JsonMapper Exception` PHPDoc message in all methods | ||
- Fixed exception using `sendMessage()` method + split message feature with unicode strings | ||
- Missing php extensions in *composer.json* file | ||
|
||
## [1.6.9] | ||
## [1.6.9] - 2018-07-28 | ||
### Added | ||
- Added 3 classes in constants namespace: | ||
- *MessageEntityTypes* | ||
- *PassportSources* | ||
- *PassportTypes* | ||
### Changed | ||
- Updated to __Telegram Bot API 4.0__ | ||
- Updated license file. | ||
- Updated phpdocs in methods. | ||
- Updated code indentation. | ||
- Replaced whitespaces with tabs. | ||
- Added *MessageEntityTypes*, *PassportSources*, *PassportTypes* classes in constants namespace | ||
|
||
### Changed | ||
- Updated to Telegram Bot API 4.0 | ||
- Updated LICENSE file | ||
- Updated PHPDocs in methods | ||
- Updated code indentation | ||
- Replaced whitespaces with tabs | ||
|
||
### Removed | ||
- Removed unused variables. | ||
### Fixed | ||
- JsonMapper Exception `true` type | ||
- `$pay` parameter unused in `buildInlineKeyboardButton()` method. | ||
- Missing `$allowed_updates` parameter to `getUpdates()` method. | ||
- Removed unused variables | ||
|
||
## [1.6.8] | ||
### Fixed | ||
- Bug fix: JsonMapper Exception `true` type | ||
- Fixed JsonMapper Exception `true` type | ||
- Fixed `pay` parameter unused in `buildInlineKeyboardButton()` method | ||
- Missing `allowed_updates` parameter from `getUpdates()` method | ||
|
||
## [1.6.8] - 2018-04-10 | ||
### Added | ||
- Added `isCommand()` method to `Message` Class | ||
- Added `isCommand()` method to Message class | ||
|
||
## [1.6.7] | ||
### Changed | ||
- Fixed uploadStickerFile method | ||
### Fixed | ||
- Fixed JsonMapper Exception `true` type | ||
|
||
## [1.6.7] - 2018-02-14 | ||
### Fixed | ||
- Fixed `uploadStickerFile()` method | ||
|
||
## [1.6.6] | ||
## [1.6.6] - 2018-02-14 | ||
### Changed | ||
- Updated to Telegram Bot API 3.6 | ||
|
||
## [1.6.5] | ||
## [1.6.5] - 2017-11-20 | ||
### Changed | ||
- Updated to Telegram Bot API 3.5 | ||
|
||
## [1.6.4] | ||
## [1.6.4] - 2017-10-11 | ||
### Changed | ||
- Updated to Telegram Bot API 3.4 | ||
|
||
## [1.6.3] | ||
## [1.6.3] - 2017-09-21 | ||
### Fixed | ||
- Fixed `getCommand()` method in Message object. | ||
- Fixed `getCommand()` method in Message class. | ||
|
||
## [1.6.2] | ||
## [1.6.2] - 2017-09-17 | ||
### Fixed | ||
- Fixed `getCommand()` method in Message object. | ||
- Fixed `getCommand()` method in Message class | ||
|
||
## [1.6.1] | ||
## [1.6.1] - 2017-09-17 | ||
### Changed | ||
- Now `getCommand()` method in Message object return `null` if `text` property isn't a command. | ||
- The `getCommand()` method in Message class now return `null` if `text` property isn't a command | ||
|
||
## [1.6.0] | ||
## [1.6.0] - 2017-08-23 | ||
### Changed | ||
- Updated to Telegram Bot API 3.3 | ||
|
||
## [1.5.2] | ||
## [1.5.2] - 2017-08-20 | ||
### Changed | ||
- Renamed curl_file_create_auto_mime function in curl_file_create_automime | ||
- Renamed `curl_file_create_auto_mime()` function in `curl_file_create_automime()` | ||
|
||
## [1.5.1] | ||
## [1.5.1] - 2017-08-19 | ||
### Fixed | ||
- Fixed curl_file_create_auto_mime function | ||
- Fixed `curl_file_create_auto_mime()` function | ||
|
||
## [1.5.0] | ||
## [1.5.0] - 2017-08-14 | ||
### Added | ||
- Added new `endpoint` method to call api methods manually. Parameters: | ||
- $api `string` - api endpoint name | ||
- $parameters `array` - parameters as key/value array | ||
- $isPost=true `bool` - calling method | ||
- Added 2 classes in constants namespace: | ||
- *ChatActions* to use (if you want) in `action` parameter (sendChatAction method) | ||
- *ParseModes* to use (if you want) in `parse_mode` parameter | ||
- Auto split very long text in `sendMessage` method (4096 characters per message) | ||
- Enable it after class instantiation: | ||
```php | ||
$bot = new TelegramBot($token); | ||
$bot->splitLongMessage=true; | ||
``` | ||
- Default: `false` | ||
- The *sendMessage* method will return `Message[]` instead of `Message` | ||
- Added new `endpoint()` method to call api methods manually | ||
- Added *ChatActions* and *ParseModes* classes in constants namespace | ||
- Added `splitLongMessage` property to allow splitting text with `sendMessage()` method | ||
- Auto split very long text in `sendMessage` method | ||
|
||
## [1.4.4] | ||
## [1.4.4] - 2017-08-13 | ||
### Added | ||
- Added license file | ||
- Added todo list to readme | ||
- Added LICENSE file | ||
- Added TODO list to readme | ||
- Added changelog link to readme | ||
|
||
### Fixed | ||
- Fixed concatenation error | ||
- Fixed PhpDoc error | ||
- Fixed PHPDoc errors | ||
- Fixed TelegramHelper not available globally | ||
|
||
## [1.4.3] | ||
## [1.4.3] - 2017-08-12 | ||
### Added | ||
- Added TelegramHelper file | ||
- `curl_file_create` function if not exist | ||
- `curl_file_create_auto_mime` function | ||
- `is_json` to check if a string is json | ||
- Added `curl_file_create()` helper function | ||
- Added `curl_file_create_auto_mime()` helper function | ||
- Added `is_json()` helper function | ||
|
||
### Removed | ||
- Removed `aurax-php` dependence | ||
- Removed *aurax-php* library dependence | ||
|
||
## [1.4.2] - 2017-08-12 | ||
### Added | ||
- Added `getType()` method in Message class | ||
|
||
### Changed | ||
- Renamed and fixed `getType()` in Update class | ||
|
||
## [1.4.1] - 2017-08-09 | ||
### Added | ||
- Added `INLINE_QUERY` type to `getUpdateType()` method | ||
|
||
## [1.4] - 2017-07-21 | ||
### Changed | ||
- Updated to Telegram Bot API 3.2 | ||
|
||
## [1.3] - 2017-06-30 | ||
### Changed | ||
- Updated to Telegram Bot API 3.1 | ||
|
||
## [1.2.3] - 2017-06-12 | ||
### Added | ||
- Added `getUpdateType()` method | ||
- Added TelegramUpdateTypes class for `getUpdateType()` method | ||
- Added curl_file_create_auto_mime() function | ||
|
||
### Fixed | ||
- Fixed `isForwarded()` method in Message class | ||
|
||
## [1.2.2] - 2017-06-05 | ||
### Fixed | ||
- Fixed `sendRequest()` phpdoc and post parameters | ||
|
||
## [1.2.1] - 2017-06-04 | ||
### Added | ||
- Added `isForwarded()` method in Message class | ||
|
||
## [1.2] - 2017-06-04 | ||
### Changed | ||
- Improved code | ||
|
||
## [1.1] - 2017-05-20 | ||
### Changed | ||
- Updated to Telegram Bot API 3.0 | ||
|
||
## [1.0] - 2017-01-24 | ||
### Added | ||
- First commit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
{ | ||
"name": "lukasss93/telegrambot-php", | ||
"description": "Framework for Telegram Bot API", | ||
"license": "MIT", | ||
"type": "project", | ||
"version": "1.6.14", | ||
"authors": [ | ||
{ | ||
"name": "Luca Patera", | ||
"email": "[email protected]", | ||
"homepage": "http://www.lucapatera.it/" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.6", | ||
"ext-mbstring": "*", | ||
"ext-curl":"*", | ||
"ext-fileinfo":"*", | ||
"ext-json":"*", | ||
"netresearch/jsonmapper": "v1.4.*" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"TelegramBot\\": "src/", | ||
"TelegramBot\\Types\\": "src/Types/", | ||
"TelegramBot\\Constants\\": "src/Constants/" | ||
}, | ||
"files": [ | ||
"src/TelegramHelper.php" | ||
] | ||
} | ||
"name": "lukasss93/telegrambot-php", | ||
"description": "Framework for Telegram Bot API", | ||
"license": "MIT", | ||
"type": "project", | ||
"authors": [ | ||
{ | ||
"name": "Luca Patera", | ||
"email": "[email protected]", | ||
"homepage": "http://www.lucapatera.it/" | ||
} | ||
], | ||
"require": { | ||
"php": ">=7.2", | ||
"ext-mbstring": "*", | ||
"ext-curl": "*", | ||
"ext-fileinfo": "*", | ||
"ext-json": "*", | ||
"netresearch/jsonmapper": "v1.4.*" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"TelegramBot\\": "src/", | ||
"TelegramBot\\Types\\": "src/Types/", | ||
"TelegramBot\\Constants\\": "src/Constants/" | ||
}, | ||
"files": [ | ||
"src/TelegramHelper.php" | ||
] | ||
} | ||
} |
Oops, something went wrong.