Skip to content

Commit 49813ed

Browse files
committed
#15: Bot api update December 31, 2019 (readme and changelog)
1 parent eb50ef0 commit 49813ed

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

CHANGELOG.md

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

24+
## 1.2.0 - 2020-01-23
25+
26+
### Added
27+
- Added support bot api 4.5 (December 31, 2019)
28+
- Added support for two new `MessageEntityType` types, underline and strikethrough.
29+
- Added support for nested `MessageEntityType` objects. Entities can now contain other entities.
30+
If two entities have common characters then one of them is fully contained inside the other.
31+
- Added support for nested entities and the new tags
32+
`<u>/<ins> `(for underlined text) and `<s>/<strike>/<del>` (for strikethrough text) in parse mode HTML.
33+
- Added a new parse mode, MarkdownV2, which supports nested entities
34+
and two new entities (for underlined text) and (for strikethrough text).
35+
Added a new parse mode, `MarkdownV2`, which supports nested entities and two new entities
36+
`__` (for underlined text) and `~` (for strikethrough text).
37+
Parse mode Markdown remains unchanged for backward compatibility.
38+
- Added the field `fileUniqueId` to the objects `AnimationType`, `AudioType`, `DocumentType`,
39+
`PassportFileType`, `PhotoSizeType`, `StickerType`, `VideoType`, `VideoNoteType`, `VoiceType`,
40+
File and the fields `smallFileUniqueId` and `bigFileUniqueId` to the object ChatPhoto.
41+
The new fields contain a unique file identifier, which is supposed to be the same over time and for different bots,
42+
but can't be used to download or reuse the file.
43+
- Added the field customTitle to the `ChatMemberType` object.
44+
- Added the new method `SetChatAdministratorCustomTitleMethod` to manage the custom titles of administrators promoted by the bot.
45+
- Added the field `slowModeDelay` to the Chat object.
46+
2447
## 1.1.4 - 2020-01-19
2548

2649
### Fixed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ You can configure it to work in symfony, for example, in [this way](https://gist
6464
|promote|PromoteChatMemberMethod|bool|
6565
|restrict|RestrictChatMemberMethod|bool|
6666
|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|bool|
67+
|set|SetChatDescriptionMethod, SetChatPhotoMethod, SetChatStickerSetMethod, SetChatTitleMethod, SetGameScoreMethod, SetStickerPositionInSetMethod, SetWebhookMethod, SetPassportDataErrorsMethod, SetChatPermissionsMethod, SetChatAdministratorCustomTitleMethod|bool|
6868
|stop|StopMessageLiveLocationMethod|bool|
6969
|stopPoll|StopPollMethod|Poll|
7070
|unban|UnbanChatMemberMethod|bool|

0 commit comments

Comments
 (0)