Skip to content

Commit

Permalink
Version 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
noplanman committed Jul 3, 2022
1 parent f9d3231 commit 72d7c38
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 22 deletions.
2 changes: 1 addition & 1 deletion .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
build:
environment:
php: 7.3.0
php: 8.0.0
nodes:
analysis:
tests:
Expand Down
14 changes: 11 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,21 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
### Notes
- [:ledger: View file changes][Unreleased]
### Added
### Changed
### Deprecated
### Removed
### Fixed
### Security

## [2.0.0] - 2022-07-04
### Notes
- [:ledger: View file changes][2.0.0]
### Added
- Enforce `secret_token` webhook validation check.
### Changed
- Bumped core to version 0.78.*.
- Upgrade code to PHP 8.0.
- Moved tests to GitHub Actions.
### Deprecated
### Removed
### Fixed
### Security
- Minimum PHP 8.0.

Expand Down Expand Up @@ -218,6 +225,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
[0.44.0-bc-parameter-structure]: https://github.com/php-telegram-bot/telegram-bot-manager/wiki/Breaking-backwards-compatibility#parameter-structure-changed "Parameter structure changed"

[Unreleased]: https://github.com/php-telegram-bot/telegram-bot-manager/compare/master...develop
[2.0.0]: https://github.com/php-telegram-bot/telegram-bot-manager/compare/1.7.0...2.0.0
[1.7.0]: https://github.com/php-telegram-bot/telegram-bot-manager/compare/1.6.0...1.7.0
[1.6.0]: https://github.com/php-telegram-bot/telegram-bot-manager/compare/1.5.0...1.6.0
[1.5.0]: https://github.com/php-telegram-bot/telegram-bot-manager/compare/1.4.0...1.5.0
Expand Down
21 changes: 4 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,22 +21,9 @@ Installation and usage is pretty straight forward:

### Require this package with [Composer]

Either run this command in your command line:

```bash
composer require php-telegram-bot/telegram-bot-manager:^1.6
```

**or**

For existing Composer projects, edit your project's `composer.json` file to require `php-telegram-bot/telegram-bot-manager`:

```yaml
"require": {
"php-telegram-bot/telegram-bot-manager": "^1.6"
}
composer require php-telegram-bot/telegram-bot-manager:^1.8
```
and then run `composer update`

**NOTE:** This will automatically also install [PHP Telegram Bot][github-tgbot-core] into your project (if it isn't already).

Expand All @@ -46,12 +33,12 @@ It is possible however, to override the core version that this library requires:

```yaml
"require": {
"php-telegram-bot/telegram-bot-manager": "^1.6",
"longman/telegram-bot": "dev-develop as 0.70"
"php-telegram-bot/telegram-bot-manager": "^1.8",
"longman/telegram-bot": "dev-master as 0.78"
}
```

This example will pull the develop version of the core library, making it appear to be version 0.70, which then satisfies the requirement.
This example will pull the master version of the core library, making it appear to be version 0.78, which then satisfies the requirement.

### Performing actions

Expand Down
2 changes: 1 addition & 1 deletion src/BotManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

class BotManager
{
public const VERSION = '1.7.0';
public const VERSION = '2.0.0';

/**
* @link https://core.telegram.org/bots/webhooks#the-short-version
Expand Down

0 comments on commit 72d7c38

Please sign in to comment.