|
1 | 1 | ======= |
2 | 2 | Changes |
3 | 3 | ======= |
| 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 | + |
4 | 47 | **2018-05-02** |
5 | 48 | *Released 10.1.0* |
6 | 49 |
|
|
0 commit comments