Skip to content

Commit d1c5355

Browse files
authored
Merge pull request #17 from tg-bot-api/feature/bot-api-4.6
Bot Api 4.6
2 parents fe08a6f + 6b4438f commit d1c5355

File tree

265 files changed

+3531
-2283
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

265 files changed

+3531
-2283
lines changed

CHANGELOG.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,29 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
2121
### Security
2222
- Nothing
2323

24+
## 1.3.0 - 2020-01-25
25+
26+
### Added
27+
- Added support Bot API 4.6 (January 23, 2020)
28+
- Supported Polls 2.0.
29+
- Added the ability to send non-anonymous, multiple answer, and quiz-style polls: added the parameters
30+
`isAnonymous`, `type`, `allowsMultipleAnswers`, `correctOptionId`,
31+
`isClosed` options to the `SendPollMethod` class.
32+
- Added the class `Poll\KeyboardButtonPollType` and the field `requestPoll` to the `KeyboardButtonType` class.
33+
- Added `PollAnswerType` class
34+
- Added updates about changes of user answers in non-anonymous polls, represented by the `PollAnswerType` class
35+
and the field `pollAnswer` in the `UpdateType` class.
36+
- Added the fields `totalVoterCount`, `isAnonymous`, `type`, `allowsMultipleAnswers`,
37+
`correctOptionId` to the Poll object.
38+
- Bots can now send polls to private chats.
39+
- Added more information about the bot in response to the `getMe` request:
40+
added the fields `canJoinGroups`, `canReadAllGroupMessages` and `supportsInlineQueries` to the `UserType` class.
41+
- Added the optional field `language` to the `MessageEntityType` class.
42+
2443
## 1.2.0 - 2020-01-23
2544

2645
### Added
27-
- Added support bot api 4.5 (December 31, 2019)
46+
- Added support Bot API 4.5 (December 31, 2019)
2847
- Added support for two new `MessageEntityType` types, underline and strikethrough.
2948
- Added support for nested `MessageEntityType` objects. Entities can now contain other entities.
3049
If two entities have common characters then one of them is fully contained inside the other.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
[![Duplicated Lines (%)][sonar-duplicated-lines-icon]][sonar-path]
1515
[![Security Rating][sonar-security-rating-icon]][sonar-path]
1616

17-
#### Supported Telegram Bot API v4.5 (December 31, 2019 update)
17+
#### Supported Telegram Bot API v4.6 (January 23, 2020 update)
1818

1919
## Installation
2020

@@ -145,7 +145,7 @@ If you discover any security related issues, please email wformps@gmail.com inst
145145
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
146146

147147
[ico-php-v]: https://img.shields.io/travis/php-v/tg-bot-api/bot-api-base.svg?style=flat-square
148-
[ico-bot-api]: https://img.shields.io/badge/Bot%20API-4.5-blue.svg?style=flat-square
148+
[ico-bot-api]: https://img.shields.io/badge/Bot%20API-4.6-blue.svg?style=flat-square
149149
[ico-version]: https://img.shields.io/packagist/v/tg-bot-api/bot-api-base.svg?style=flat-square
150150
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
151151
[ico-travis]: https://img.shields.io/travis/tg-bot-api/bot-api-base/master.svg?style=flat-square

docs/api/classes.svg

Lines changed: 1220 additions & 1179 deletions
Loading

docs/api/classes/TgBotApi.BotApiBase.ApiClient.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
3434
Reports <b class="caret"></b></a><ul class="dropdown-menu">
3535
<li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
36-
<span class="label label-info">586</span></a></li>
36+
<span class="label label-info">619</span></a></li>
3737
<li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
3838
<ul></ul></a></li>
3939
<li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
@@ -336,7 +336,7 @@ <h3>Default</h3>
336336
<div class="row"><footer class="span12">
337337
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
338338
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.9.0</a> and<br>
339-
generated on 2020-01-23T23:48:00+03:00.<br></footer></div>
339+
generated on 2020-01-25T00:05:23+03:00.<br></footer></div>
340340
</div>
341341
</body>
342342
</html>

docs/api/classes/TgBotApi.BotApiBase.ApiClientInterface.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
3434
Reports <b class="caret"></b></a><ul class="dropdown-menu">
3535
<li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
36-
<span class="label label-info">586</span></a></li>
36+
<span class="label label-info">619</span></a></li>
3737
<li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
3838
<ul></ul></a></li>
3939
<li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
@@ -149,7 +149,7 @@ <h4>$endPoint</h4>
149149
<div class="row"><footer class="span12">
150150
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
151151
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.9.0</a> and<br>
152-
generated on 2020-01-23T23:48:01+03:00.<br></footer></div>
152+
generated on 2020-01-25T00:05:23+03:00.<br></footer></div>
153153
</div>
154154
</body>
155155
</html>

docs/api/classes/TgBotApi.BotApiBase.BotApi.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
3434
Reports <b class="caret"></b></a><ul class="dropdown-menu">
3535
<li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
36-
<span class="label label-info">586</span></a></li>
36+
<span class="label label-info">619</span></a></li>
3737
<li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
3838
<ul></ul></a></li>
3939
<li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
@@ -1017,7 +1017,7 @@ <h3>Default</h3>
10171017
<div class="row"><footer class="span12">
10181018
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
10191019
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.9.0</a> and<br>
1020-
generated on 2020-01-23T23:47:59+03:00.<br></footer></div>
1020+
generated on 2020-01-25T00:05:21+03:00.<br></footer></div>
10211021
</div>
10221022
</body>
10231023
</html>

docs/api/classes/TgBotApi.BotApiBase.BotApiAliasInterface.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
3434
Reports <b class="caret"></b></a><ul class="dropdown-menu">
3535
<li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
36-
<span class="label label-info">586</span></a></li>
36+
<span class="label label-info">619</span></a></li>
3737
<li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
3838
<ul></ul></a></li>
3939
<li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
@@ -402,7 +402,7 @@ <h3>Returns</h3>
402402
<div class="row"><footer class="span12">
403403
Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
404404
Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.9.0</a> and<br>
405-
generated on 2020-01-23T23:47:59+03:00.<br></footer></div>
405+
generated on 2020-01-25T00:05:21+03:00.<br></footer></div>
406406
</div>
407407
</body>
408408
</html>

0 commit comments

Comments
 (0)