Released 2020-02-08
New features:
- Set default values for arguments appearing repeatedly. We also have a wiki page for the new defaults. (#1490)
- Store data in
CallbackContext.bot_data
to access it in every callback. Also persists. (#1325) Filters.poll
allows only messages containing a poll (#1673)
Major changes:
Filters.text
now accepts messages that start with a slash, becauseCommandHandler
checks forMessageEntity.BOT_COMMAND
since v12. This might lead to your MessageHandlers receiving more updates than before (#1680).Filters.command
new checks forMessageEntity.BOT_COMMAND
instead of just a leading slash. Also byFilters.command(False)
you can now filters for messages containing a commandanywhere
in the text (#1744).
Minor changes, CI improvements or bug fixes:
- Add
disptacher
argument toUpdater
to allow passing a customizedDispatcher
(#1484) - Add missing names for
Filters
(#1632) - Documentation fixes (#1624, #1647, #1669, #1703, #1718, #1734, #1740, #1642, #1739, #1746)
- CI improvements (#1716, #1731, #1738, #1748, #1749, #1750, #1752)
- Fix spelling issue for
encode_conversations_to_json
(#1661) - Remove double assignement of
Dispatcher.job_queue
(#1698) - Expose dispatcher as property for
CallbackContext
(#1684) - Fix
None
check inJobQueue._put()
(#1707) - Log datetimes correctly in
JobQueue
(#1714) - Fix false
Message.link
creation for private groups (#1741) - Add option
--with-upstream-urllib3
tosetup.py
to allow using non-vendored version (#1725) - Fix persistence for nested
ConversationHandlers
(#1679) - Improve handling of non-decodable server responses (#1623)
- Fix download for files without
file_path
(#1591) - test_webhook_invalid_posts is now considered flaky and retried on failure (#1758)