Skip to content

Commit 781af36

Browse files
authored
Merge pull request #25 from tg-bot-api/feature/24-fix-poll-field-in-message
Feature/24 fix poll field in message
2 parents d3ef14c + 881f42d commit 781af36

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.travis.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ matrix:
1919
include:
2020
- php: 7.2
2121
env: 'COMPOSER_FLAGS="--prefer-stable --prefer-lowest"'
22+
- php: 7.4
23+
env: 'COMPOSER_FLAGS="--ignore-platform-reqs"'
2224

2325
before_script:
24-
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist --ignore-platform-reqs
26+
- travis_retry composer update ${COMPOSER_FLAGS} --no-interaction --prefer-dist
2527

2628
script:
2729
- vendor/bin/phpcs --standard=psr2 src/

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
2323
- Nothing
2424
--->
2525

26+
## 1.3.3 - 2020-03-06
27+
28+
### Fixed
29+
- fixed Poll field in MessageType. bug #24.
30+
2631
## 1.3.2 - 2020-02-26
2732

2833
### Fixed

src/Type/MessageType.php

+7
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,13 @@ class MessageType implements HasParseModeVariableInterface
229229
*/
230230
public $venue;
231231

232+
/**
233+
* Optional. Message is a native poll, information about the poll.
234+
*
235+
* @var PollType|null
236+
*/
237+
public $poll;
238+
232239
/**
233240
* Optional. New members that were added to the group or supergroup and information about them
234241
* (the bot itself may be one of these members).

0 commit comments

Comments
 (0)