Skip to content

Commit 2be1c8f

Browse files
committed
Update CHANGES with v11 stuff + README to reflect bot api 4.0 support
1 parent 78f08c4 commit 2be1c8f

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed

CHANGES.rst

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,49 @@
11
=======
22
Changes
33
=======
4+
5+
*Released 11.0.0*
6+
7+
Fully support Bot API version 4.0!
8+
9+
Telegram Passport (`#1174`_):
10+
11+
- Add full support for telegram passport.
12+
- New types: PassportData, PassportFile, EncryptedPassportElement, EncryptedCredentials, PassportElementError, PassportElementErrorDataField, PassportElementErrorFrontSide, PassportElementErrorReverseSide, PassportElementErrorSelfie, PassportElementErrorFile and PassportElementErrorFiles.
13+
- New bot method: set_passport_data_errors
14+
- New filter: Filters.passport_data
15+
- Field passport_data field on Message
16+
- PassportData is automagically decrypted when you specify your private key when creating Updater or Bot.
17+
- PassportFiles is also automagically decrypted as you download/retrieve them.
18+
- See new passportbot.py example for details on how to use, or go to `our telegram passport wiki page`_ for more info
19+
- NOTE: Passport decryption requires new dependency `cryptography`.
20+
21+
Inputfile rework (`#1184`_):
22+
23+
- Change how Inputfile is handled internally
24+
- This allows support for specifying the thumbnails of photos and videos using the thumb= argument in the different send\_ methods.
25+
- Also allows Bot.send_media_group to actually finally send more than one media.
26+
- Add thumb to Audio, Video and Videonote
27+
- Add Bot.edit_message_media together with InputMediaAnimation, InputMediaAudio, and inputMediaDocument.
28+
29+
Other Bot API 4.0 changes:
30+
31+
- Add forusquare_type to Venue, InlineQueryResultVenue, InputVenueMessageContent, and Bot.send_venue. (`#1170`_)
32+
- Add vCard support by adding vcard field to Contact, InlineQueryResultContact, InputContactMessageContent, and Bot.send_contact. (`#1166`_)
33+
- Support new message entities: CASHTAG and PHONE_NUMBER. (`#1179`_)
34+
- Cashtag seems to be things like `$USD` and `$GBP`, but it seems telegram doesn't currently send them to bots.
35+
- Phone number also seems to have limited support for now
36+
- Add Bot.send_animation, add width, height, and duration to Animation, and add Filters.animation. (`#1172`_)
37+
38+
39+
.. _`#1174`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1174
40+
.. _`#1184`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1184
41+
.. _`#1170`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1170
42+
.. _`#1166`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1166
43+
.. _`#1179`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1179
44+
.. _`#1172`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1172
45+
.. _`our telegram passport wiki page`: https://git.io/fAvYd
46+
447
**2018-05-02**
548
*Released 10.1.0*
649

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ make the development of bots easy and straightforward. These classes are contain
9595
Telegram API support
9696
====================
9797

98-
All types and methods of the Telegram Bot API 3.6 are supported.
98+
All types and methods of the Telegram Bot API **4.0** are supported.
9999

100100
==========
101101
Installing

0 commit comments

Comments
 (0)