Version 20.0a5
Released 2022-11-22
This is the technical changelog for version 20.0a5. More elaborate release notes can be found in the news channel @pythontelegrambotchannel.
Major Changes
- API 6.3 (#3346, #3343, #3342, #3360)
- Explicit
local_mode
Setting (#3154) - Make Almost All 3rd Party Dependencies Optional (#3267)
- Split
File.download
IntoFile.download_to_drive
AndFile.download_to_memory
(#3223)
New Features
- Add Properties for API Settings of
Bot
(#3247) - Add
chat_id
andusername
Parameters toChatJoinRequestHandler
(#3261) - Introduce
TelegramObject.api_kwargs
(#3233) - Add Two Constants Related to Local Bot API Servers (#3296)
- Add
recursive
Parameter toTelegramObject.to_dict()
(#3276) - Overhaul String Representation of
TelegramObject
(#3234) - Add Methods
Chat.mention_{html, markdown, markdown_v2}
(#3308) - Add
constants.MessageLimit.DEEP_LINK_LENGTH
(#3315) - Add Shortcut Parameters
caption
,parse_mode
andcaption_entities
toBot.send_media_group
(#3295) - Add Several New Enums To Constants (#3351)
Bug Fixes
- Fix
CallbackQueryHandler
Not Handling Non-String Data Correctly With Regex Patterns (#3252) - Fix Defaults Handling in
Bot.answer_web_app_query
(#3362)
Documentation Improvements
- Update PR Template (#3361)
- Document Dunder Methods of
TelegramObject
(#3319) - Add Several References to Wiki pages (#3306)
- Overhaul Search bar (#3218)
- Unify Documentation of Arguments and Attributes of Telegram Classes (#3217, #3292, #3303, #3312, #3314)
- Several Smaller Improvements (#3214, #3271, #3289, #3326, #3370, #3376, #3366)
Minor Changes, Documentation Improvements and CI
- Improve Warning About Unknown
ConversationHandler
States (#3242) - Switch from Stale Bot to
GitHub
Actions (#3243) - Bump Python 3.11 to RC2 in Test Matrix (#3246)
- Make
Job.job
a Property and MakeJobs
Hashable (#3250) - Skip
JobQueue
Tests on Windows Again (#3280) - Read-Only
CallbackDataCache
(#3266) - Type Hinting Fix for
Message.effective_attachment
(#3294) - Run Unit Tests in Parallel (#3283)
- Update Test Matrix to Use Stable Python 3.11 (#3313)
- Don't Edit Objects In-Place When Inserting
ext.Defaults
(#3311) - Add a Test for
MessageAttachmentType
(#3335) - Add Three New Test Bots (#3347)
- Improve Unit Tests Regarding
ChatMemberUpdated.difference
(#3352) - Flaky Unit Tests: Use
pytest
Marker (#3354) - Fix
DeepSource
Issues (#3357) - Handle Lists and Tuples and Datetimes Directly in
TelegramObject.to_dict
(#3353) - Update Meta Config (#3365)
- Merge
ChatDescriptionLimit
Enum IntoChatLimit
(#3377)
Dependencies
- Bump
pytest
from 7.1.2 to 7.1.3 (#3228) pre-commit
Updates (#3221)- Bump
sphinx
from 5.1.1 to 5.2.3 (#3269) - Bump
furo
from 2022.6.21 to 2022.9.29 (#3268) - Bump
actions/stale
from 5 to 6 (#3277) pre-commit
autoupdate (#3282)- Bump
sphinx
from 5.2.3 to 5.3.0 (#3300) - Bump
pytest-asyncio
from 0.19.0 to 0.20.1 (#3299) - Bump
pytest
from 7.1.3 to 7.2.0 (#3318) - Bump
pytest-xdist
from 2.5.0 to 3.0.2 (#3317) pre-commit
autoupdate (#3325)- Bump
pytest-asyncio
from 0.20.1 to 0.20.2 (#3359) - Update
httpx
requirement from ~=0.23.0 to ~=0.23.1 (#3373)