Skip to content

Feature/24 fix poll field in message #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Mar 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ matrix:
include:
- php: 7.2
env: 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'
- php: 7.4
env: 'COMPOSER_FLAGS="--ignore-platform-reqs"'

before_script:
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist --ignore-platform-reqs
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist

script:
- vendor/bin/phpcs --standard=psr2 src/
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
- Nothing
--->

## 1.3.3 - 2020-03-06

### Fixed
- fixed Poll field in MessageType. bug #24.

## 1.3.2 - 2020-02-26

### Fixed
Expand Down
7 changes: 7 additions & 0 deletions src/Type/MessageType.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,13 @@ class MessageType implements HasParseModeVariableInterface
*/
public $venue;

/**
* Optional. Message is a native poll, information about the poll.
*
* @var PollType|null
*/
public $poll;

/**
* Optional. New members that were added to the group or supergroup and information about them
* (the bot itself may be one of these members).
Expand Down