Skip to content

Commit 9a0e068

Browse files
committed
#27: add Bot API 4.7 added release info
1 parent 44a4e08 commit 9a0e068

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,30 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
2323
- Nothing
2424
--->
2525

26+
## 1.4.0 - 2020-03-31
27+
28+
#### March 30, 2020
29+
#### Bot API 4.7
30+
31+
### Added
32+
- Added the method `sendDice` `send(SendDiceMethod)` for sending a dice message, which will have a random value from 1 to 6.
33+
(Yes, we're aware of the “proper” singular of die. But it's awkward, and we decided to help it change One dice at a time!)
34+
- Added the field `dice` to the `MessageType` object.
35+
- Added the method `getMyCommands` for getting the current list of the bot's commands.
36+
- Added the method `setMyCommands` `set(SetMyCommandMethod)` for changing the list of the bot's commands
37+
through the Bot API instead of @BotFather.
38+
- Added the ability to create animated sticker sets by specifying the
39+
parameter `tgsSticker` instead of `pngSticker` in the class `CreateNewStickerSetMethod`.
40+
- Added the ability to add animated stickers to sets created by the bot by specifying
41+
the parameter `tgsSticker` instead of `pngSticker` in the class `AddStickerToSetMethod`.
42+
- Added the field `thumb` to the `StickerSetType` object.
43+
- Added the ability to change thumbnails of sticker sets created by the bot
44+
using the method `setStickerSetThumb` `set(SetStickerSetThumbMethod)`.
45+
46+
### Deprecated
47+
- `AddStickerToSetMethod::create()` - please use `createStatic` or `createAnimated` methods
48+
- `CreateNewStickerSetMethod::create()` - please use `createStatic` or `createAnimated` methods
49+
2650
## 1.3.3 - 2020-03-06
2751

2852
### Fixed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ You can configure it to work in symfony, for example, in [this way](https://gist
6363
|pin|PinChatMessageMethod|bool|
6464
|promote|PromoteChatMemberMethod|bool|
6565
|restrict|RestrictChatMemberMethod|bool|
66-
|send|SendPhotoMethod, SendAudioMethod, SendDocumentMethod, SendVideoMethod, SendAnimationMethod, SendVoiceMethod, SendVideoNoteMethod, SendGameMethod, SendInvoiceMethod, SendLocationMethod, SendVenueMethod, SendContactMethod, SendStickerMethod, SendMessageMethod, SendPollMethod|MessageType|
67-
|set|SetChatDescriptionMethod, SetChatPhotoMethod, SetChatStickerSetMethod, SetChatTitleMethod, SetGameScoreMethod, SetStickerPositionInSetMethod, SetWebhookMethod, SetPassportDataErrorsMethod, SetChatPermissionsMethod, SetChatAdministratorCustomTitleMethod|bool|
66+
|send|SendPhotoMethod, SendAudioMethod, SendDocumentMethod, SendVideoMethod, SendAnimationMethod, SendVoiceMethod, SendVideoNoteMethod, SendGameMethod, SendInvoiceMethod, SendLocationMethod, SendVenueMethod, SendContactMethod, SendStickerMethod, SendMessageMethod, SendPollMethod, SendDiceMethod|MessageType|
67+
|set|SetChatDescriptionMethod, SetChatPhotoMethod, SetChatStickerSetMethod, SetChatTitleMethod, SetGameScoreMethod, SetStickerPositionInSetMethod, SetWebhookMethod, SetPassportDataErrorsMethod, SetChatPermissionsMethod, SetChatAdministratorCustomTitleMethod, SetMyCommandMethod, SetStickerSetThumbMethod|bool|
6868
|stop|StopMessageLiveLocationMethod|bool|
6969
|stopPoll|StopPollMethod|Poll|
7070
|unban|UnbanChatMemberMethod|bool|
@@ -74,6 +74,7 @@ You can configure it to work in symfony, for example, in [this way](https://gist
7474
|sendChatAction|SendChatActionMethod|bool|
7575
|getUpdates|GetUpdatesMethod|UpdateType[]|
7676
|getMe|GetMeMethod|UserType|
77+
|getMyCommands|GetMyCommandsMethod|BotCommandType|
7778
|getUserProfilePhotos|GetUserProfilePhotosMethod|UserProfilePhotosType|
7879
|getWebhookInfo|GetWebhookInfoMethod|WebhookInfoType|
7980
|getChatMembersCount|GetChatMembersCountMethod|int|
@@ -145,7 +146,7 @@ If you discover any security related issues, please email wformps@gmail.com inst
145146
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
146147

147148
[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.6-blue.svg?style=flat-square
149+
[ico-bot-api]: https://img.shields.io/badge/Bot%20API-4.7-blue.svg?style=flat-square
149150
[ico-version]: https://img.shields.io/packagist/v/tg-bot-api/bot-api-base.svg?style=flat-square
150151
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square
151152
[ico-travis]: https://img.shields.io/travis/tg-bot-api/bot-api-base/master.svg?style=flat-square

0 commit comments

Comments
 (0)