Skip to content

Commit

Permalink
feat: #465 add full reactions 2.0 support as defined in api 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
bernard-ng committed Jul 30, 2024
1 parent 8b75285 commit 3e02832
Show file tree
Hide file tree
Showing 7 changed files with 284 additions and 62 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ All Notable changes to `PHP Telegram Bot Api` will be documented in this file
- Add `\TelegramBot\Api\Types\Update::$messageReactionCount` field
- Add `\TelegramBot\Api\BotApi::setMessageReaction` api method

### Deprecated
- Deprecate `reply_to_message_id` and `allow_sending_without_reply` parameters to `\TelegramBot\Api\BotApi` methods. Use `reply_parameters` instead.

## 2.5.0 - 2023-08-09

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/BaseType.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function validate($data)
}

$missingParams = implode(', ', array_diff(static::$requiredParams, array_keys($data)));
throw new InvalidArgumentException(sprintf("Validation failed. Missing required parameters: %s", $missingParams));
throw new InvalidArgumentException(sprintf('Validation failed. Missing required parameters: %s', $missingParams));
}

/**
Expand Down
Loading

0 comments on commit 3e02832

Please sign in to comment.