|
2 | 2 | Changelog |
3 | 3 | ========= |
4 | 4 |
|
| 5 | +Version 20.0a5 |
| 6 | +============== |
| 7 | +*Released 2022-11-22* |
| 8 | + |
| 9 | +This is the technical changelog for version 20.0a5. More elaborate release notes can be found in the news channel `@pythontelegrambotchannel <https://t.me/pythontelegrambotchannel>`_. |
| 10 | + |
| 11 | +Major Changes |
| 12 | +------------- |
| 13 | + |
| 14 | +- API 6.3 (`#3346`_, `#3343`_, `#3342`_, `#3360`_) |
| 15 | +- Explicit ``local_mode`` Setting (`#3154`_) |
| 16 | +- Make Almost All 3rd Party Dependencies Optional (`#3267`_) |
| 17 | +- Split ``File.download`` Into ``File.download_to_drive`` And ``File.download_to_memory`` (`#3223`_) |
| 18 | + |
| 19 | +New Features |
| 20 | +------------ |
| 21 | + |
| 22 | +- Add Properties for API Settings of ``Bot`` (`#3247`_) |
| 23 | +- Add ``chat_id`` and ``username`` Parameters to ``ChatJoinRequestHandler`` (`#3261`_) |
| 24 | +- Introduce ``TelegramObject.api_kwargs`` (`#3233`_) |
| 25 | +- Add Two Constants Related to Local Bot API Servers (`#3296`_) |
| 26 | +- Add ``recursive`` Parameter to ``TelegramObject.to_dict()`` (`#3276`_) |
| 27 | +- Overhaul String Representation of ``TelegramObject`` (`#3234`_) |
| 28 | +- Add Methods ``Chat.mention_{html, markdown, markdown_v2}`` (`#3308`_) |
| 29 | +- Add ``constants.MessageLimit.DEEP_LINK_LENGTH`` (`#3315`_) |
| 30 | +- Add Shortcut Parameters ``caption``, ``parse_mode`` and ``caption_entities`` to ``Bot.send_media_group`` (`#3295`_) |
| 31 | +- Add Several New Enums To Constants (`#3351`_) |
| 32 | + |
| 33 | +Bug Fixes |
| 34 | +--------- |
| 35 | + |
| 36 | +- Fix ``CallbackQueryHandler`` Not Handling Non-String Data Correctly With Regex Patterns (`#3252`_) |
| 37 | +- Fix Defaults Handling in ``Bot.answer_web_app_query`` (`#3362`_) |
| 38 | + |
| 39 | +Documentation Improvements |
| 40 | +-------------------------- |
| 41 | + |
| 42 | +- Update PR Template (`#3361`_) |
| 43 | +- Document Dunder Methods of ``TelegramObject`` (`#3319`_) |
| 44 | +- Add Several References to Wiki pages (`#3306`_) |
| 45 | +- Overhaul Search bar (`#3218`_) |
| 46 | +- Unify Documentation of Arguments and Attributes of Telegram Classes (`#3217`_, `#3292`_, `#3303`_, `#3312`_, `#3314`_) |
| 47 | +- Several Smaller Improvements (`#3214`_, `#3271`_, `#3289`_, `#3326`_, `#3370`_, `#3376`_, `#3366`_) |
| 48 | + |
| 49 | +Minor Changes, Documentation Improvements and CI |
| 50 | +------------------------------------------------ |
| 51 | + |
| 52 | +- Improve Warning About Unknown ``ConversationHandler`` States (`#3242`_) |
| 53 | +- Switch from Stale Bot to ``GitHub`` Actions (`#3243`_) |
| 54 | +- Bump Python 3.11 to RC2 in Test Matrix (`#3246`_) |
| 55 | +- Make ``Job.job`` a Property and Make ``Jobs`` Hashable (`#3250`_) |
| 56 | +- Skip ``JobQueue`` Tests on Windows Again (`#3280`_) |
| 57 | +- Read-Only ``CallbackDataCache`` (`#3266`_) |
| 58 | +- Type Hinting Fix for ``Message.effective_attachment`` (`#3294`_) |
| 59 | +- Run Unit Tests in Parallel (`#3283`_) |
| 60 | +- Update Test Matrix to Use Stable Python 3.11 (`#3313`_) |
| 61 | +- Don't Edit Objects In-Place When Inserting ``ext.Defaults`` (`#3311`_) |
| 62 | +- Add a Test for ``MessageAttachmentType`` (`#3335`_) |
| 63 | +- Add Three New Test Bots (`#3347`_) |
| 64 | +- Improve Unit Tests Regarding ``ChatMemberUpdated.difference`` (`#3352`_) |
| 65 | +- Flaky Unit Tests: Use ``pytest`` Marker (`#3354`_) |
| 66 | +- Fix ``DeepSource`` Issues (`#3357`_) |
| 67 | +- Handle Lists and Tuples and Datetimes Directly in ``TelegramObject.to_dict`` (`#3353`_) |
| 68 | +- Update Meta Config (`#3365`_) |
| 69 | +- Merge ``ChatDescriptionLimit`` Enum Into ``ChatLimit`` (`#3377`_) |
| 70 | + |
| 71 | +Dependencies |
| 72 | +------------ |
| 73 | + |
| 74 | +- Bump ``pytest`` from 7.1.2 to 7.1.3 (`#3228`_) |
| 75 | +- ``pre-commit`` Updates (`#3221`_) |
| 76 | +- Bump ``sphinx`` from 5.1.1 to 5.2.3 (`#3269`_) |
| 77 | +- Bump ``furo`` from 2022.6.21 to 2022.9.29 (`#3268`_) |
| 78 | +- Bump ``actions/stale`` from 5 to 6 (`#3277`_) |
| 79 | +- ``pre-commit`` autoupdate (`#3282`_) |
| 80 | +- Bump ``sphinx`` from 5.2.3 to 5.3.0 (`#3300`_) |
| 81 | +- Bump ``pytest-asyncio`` from 0.19.0 to 0.20.1 (`#3299`_) |
| 82 | +- Bump ``pytest`` from 7.1.3 to 7.2.0 (`#3318`_) |
| 83 | +- Bump ``pytest-xdist`` from 2.5.0 to 3.0.2 (`#3317`_) |
| 84 | +- ``pre-commit`` autoupdate (`#3325`_) |
| 85 | +- Bump ``pytest-asyncio`` from 0.20.1 to 0.20.2 (`#3359`_) |
| 86 | +- Update ``httpx`` requirement from ~=0.23.0 to ~=0.23.1 (`#3373`_) |
| 87 | + |
| 88 | +.. _`#3346`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3346 |
| 89 | +.. _`#3343`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3343 |
| 90 | +.. _`#3342`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3342 |
| 91 | +.. _`#3360`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3360 |
| 92 | +.. _`#3154`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3154 |
| 93 | +.. _`#3267`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3267 |
| 94 | +.. _`#3223`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3223 |
| 95 | +.. _`#3247`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3247 |
| 96 | +.. _`#3261`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3261 |
| 97 | +.. _`#3233`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3233 |
| 98 | +.. _`#3296`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3296 |
| 99 | +.. _`#3276`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3276 |
| 100 | +.. _`#3234`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3234 |
| 101 | +.. _`#3308`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3308 |
| 102 | +.. _`#3315`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3315 |
| 103 | +.. _`#3295`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3295 |
| 104 | +.. _`#3351`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3351 |
| 105 | +.. _`#3252`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3252 |
| 106 | +.. _`#3362`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3362 |
| 107 | +.. _`#3361`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3361 |
| 108 | +.. _`#3319`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3319 |
| 109 | +.. _`#3306`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3306 |
| 110 | +.. _`#3218`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3218 |
| 111 | +.. _`#3217`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3217 |
| 112 | +.. _`#3292`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3292 |
| 113 | +.. _`#3303`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3303 |
| 114 | +.. _`#3312`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3312 |
| 115 | +.. _`#3314`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3314 |
| 116 | +.. _`#3214`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3214 |
| 117 | +.. _`#3271`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3271 |
| 118 | +.. _`#3289`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3289 |
| 119 | +.. _`#3326`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3326 |
| 120 | +.. _`#3370`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3370 |
| 121 | +.. _`#3376`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3376 |
| 122 | +.. _`#3366`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3366 |
| 123 | +.. _`#3242`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3242 |
| 124 | +.. _`#3243`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3243 |
| 125 | +.. _`#3246`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3246 |
| 126 | +.. _`#3250`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3250 |
| 127 | +.. _`#3280`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3280 |
| 128 | +.. _`#3266`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3266 |
| 129 | +.. _`#3294`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3294 |
| 130 | +.. _`#3283`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3283 |
| 131 | +.. _`#3313`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3313 |
| 132 | +.. _`#3311`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3311 |
| 133 | +.. _`#3335`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3335 |
| 134 | +.. _`#3347`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3347 |
| 135 | +.. _`#3352`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3352 |
| 136 | +.. _`#3354`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3354 |
| 137 | +.. _`#3357`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3357 |
| 138 | +.. _`#3353`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3353 |
| 139 | +.. _`#3365`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3365 |
| 140 | +.. _`#3377`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3377 |
| 141 | +.. _`#3228`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3228 |
| 142 | +.. _`#3221`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3221 |
| 143 | +.. _`#3269`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3269 |
| 144 | +.. _`#3268`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3268 |
| 145 | +.. _`#3277`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3277 |
| 146 | +.. _`#3282`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3282 |
| 147 | +.. _`#3300`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3300 |
| 148 | +.. _`#3299`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3299 |
| 149 | +.. _`#3318`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3318 |
| 150 | +.. _`#3317`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3317 |
| 151 | +.. _`#3325`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3325 |
| 152 | +.. _`#3359`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3359 |
| 153 | +.. _`#3373`: https://github.com/python-telegram-bot/python-telegram-bot/pull/3373 |
| 154 | + |
5 | 155 | Version 20.0a4 |
6 | 156 | ============== |
7 | 157 | *Released 2022-08-27* |
|