Releases: python-telegram-bot/python-telegram-bot
Releases · python-telegram-bot/python-telegram-bot
v12.7
Version 12.7
Released 2020-05-02
Major Changes:
- Bot API 4.8 support. Note: The
Dice
object now has a second positional argumentemoji
. This is relevant, if you instantiateDice
objects manually. (#1917)
New Features:
- New method
run_mothly
for theJobQueue
(#1705) Job.next_t
now gives the datetime of the jobs next execution (#1685)
Minor changes, CI improvements, doc fixes or bug fixes:
v12.6.1
v12.6
Version 12.6
Released 2020-04-10
Major Changes:
- Bot API 4.7 support. Note: In
Bot.create_new_sticker_set
andBot.add_sticker_to_set
, the order of the parameters had be changed, as thepng_sticker
parameter is now optional. (#1858)
Minor changes, CI improvements or bug fixes:
- Add tests for
swtich_inline_query(_current_chat)
with empty string (#1635) - Doc fixes (#1854, #1874, #1884)
- Update issue templates (#1880)
- Favor concrete types over "Iterable" (#1882)
- Pass last valid
CallbackContext
toTIMEOUT
handlers ofConversationHandler
(#1826) - Tweak handling of persistence and update persistence after job calls (#1827)
- Use checkout@v2 for GitHub actions (#1887)
v12.5.1
Version 12.5.1
Released 2020-03-30
Minor changes, doc fixes or bug fixes:
- Add missing docs for
PollHandler
andPollAnswerHandler
(#1853) - Fix wording in
Filters
docs (#1855) - Reorder tests to make them more stable (#1835)
- Make
ConversationHandler
attributes immutable (#1756) - Make
PrefixHandler
attributescommand
andprefix
editable (#1636) - Fix UTC as default
tzinfo
forJob
(#1696)
v12.5
New Features:
Bot.link
gives thet.me
link of the bot (#1770)
Major Changes:
Minor changes, CI improvements or bug fixes:
- Remove legacy CI files (#1783, #1791)
- Update pre-commit config file (#1787)
- Remove builtin names (#1792)
- CI improvements (#1808, #1848)
- Support Python 3.8 (#1614, #1824)
- Use stale bot for auto closing stale issues (#1820, #1829, #1840)
- Doc fixes (#1778, #1818)
- Fix typo in
edit_message_media
(#1779) - In examples, answer CallbackQueries and use
edit_message_text
shortcut (#1721) - Revert accidental change in vendored urllib3 (#1775)
v12.4.2
v12.4.1
v12.4.0
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)
v12.3.0
New features:
Filters.caption
allows only messages with caption (#1631).- Filter for exact messages/captions with new capability of
Filters.text
andFilters.caption
. Especially useful in combination with ReplyKeyboardMarkup. (#1631).
Major changes:
- Fix inconsistent handling of naive datetimes (#1506).
Minor changes, CI improvments or bug fixes:
- Documentation fixes (#1558, #1569, #1579, #1572, #1566, #1577, #1656).
- Add mutex protection on
ConversationHandler
(#1533). - Add
MAX_PHOTOSIZE_UPLOAD
constant (#1560). - Add args and kwargs to
Message.forward()
(#1574). - Transfer to GitHub Actions CI (#1555, #1556, #1605, #1606, #1607, #1612, #1615, #1645).
- Fix deprecation warning with Py3.8 by vendored urllib3 (#1618).
- Simplify assignements for optional arguments (#1600)
- Allow private groups for
Message.link
(#1619). - Fix wrong signature call for
ConversationHandler.TIMEOUT
handlers (#1653).
v12.2.0
New features:
- Nested ConversationHandlers (#1512).
Minor changes, CI improvments or bug fixes:
- Fix CI failures due to non-backward compat attrs depndency (#1540).
- travis.yaml: TEST_OFFICIAL removed from allowed_failures.
- Fix typos in examples (#1537).
- Fix Bot.to_dict to use proper first_name (#1525).
- Refactor
test_commandhandler.py
(#1408). - Add Python 3.8 (RC version) to Travis testing matrix (#1543).
- test_bot.py: Add to_dict test (#1544).
- Flake config moved into setup.cfg (#1546).