Skip to content

Releases: python-telegram-bot/python-telegram-bot

v12.7

02 May 10:20
Compare
Choose a tag to compare

Version 12.7

Released 2020-05-02

Major Changes:

  • Bot API 4.8 support. Note: The Dice object now has a second positional argument emoji. This is relevant, if you instantiate Dice objects manually. (#1917)

New Features:

  • New method run_mothly for the JobQueue (#1705)
  • Job.next_t now gives the datetime of the jobs next execution (#1685)

Minor changes, CI improvements, doc fixes or bug fixes:

  • Added tzinfo argument to helpers.from_timestamp (#1621)
  • Stabalize CI (#1919, #1931)
  • Use ABCs @abstractmethod instead of raising NotImplementedError for Handler, BasePersistence and BaseFilter (#1905)
  • Doc fixes (#1914, #1902, #1910)

v12.6.1

11 Apr 07:56
Compare
Choose a tag to compare

Version 12.6.1

Released 2020-04-11

Bug fixes:

  • Fix serialization of reply_markup in media messages (#1889)

v12.6

10 Apr 22:00
Compare
Choose a tag to compare

Version 12.6

Released 2020-04-10

Major Changes:

  • Bot API 4.7 support. Note: In Bot.create_new_sticker_set and Bot.add_sticker_to_set, the order of the parameters had be changed, as the png_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 to TIMEOUT handlers of ConversationHandler (#1826)
  • Tweak handling of persistence and update persistence after job calls (#1827)
  • Use checkout@v2 for GitHub actions (#1887)

v12.5.1

30 Mar 16:34
Compare
Choose a tag to compare

Version 12.5.1

Released 2020-03-30

Minor changes, doc fixes or bug fixes:

  • Add missing docs for PollHandler and PollAnswerHandler (#1853)
  • Fix wording in Filters docs (#1855)
  • Reorder tests to make them more stable (#1835)
  • Make ConversationHandler attributes immutable (#1756)
  • Make PrefixHandler attributes command and prefix editable (#1636)
  • Fix UTC as default tzinfo for Job (#1696)

v12.5

29 Mar 08:31
Compare
Choose a tag to compare

New Features:

  • Bot.link gives the t.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

10 Feb 10:50
Compare
Choose a tag to compare

Bug Fixes

  • Pass correct parse_mode to InlineResults if bot.defaults is None (#1763)
  • Make sure PP can read files that dont have bot_data (#1760)

v12.4.1

08 Feb 13:08
Compare
Choose a tag to compare

This is a quick release for #1744 which was accidently left out of v12.4.0 though mentioned in the
release notes.

v12.4.0

08 Feb 12:20
Compare
Choose a tag to compare

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, because CommandHandler checks for MessageEntity.BOT_COMMAND since v12. This might lead to your MessageHandlers receiving more updates than before (#1680).
  • Filters.command new checks for MessageEntity.BOT_COMMAND instead of just a leading slash. Also by Filters.command(False) you can now filters for messages containing a command anywhere in the text (#1744).

Minor changes, CI improvements or bug fixes:

  • Add disptacher argument to Updater to allow passing a customized Dispatcher (#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 in JobQueue._put() (#1707)
  • Log datetimes correctly in JobQueue (#1714)
  • Fix false Message.link creation for private groups (#1741)
  • Add option --with-upstream-urllib3 to setup.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

11 Jan 19:27
Compare
Choose a tag to compare

New features:

  • Filters.caption allows only messages with caption (#1631).
  • Filter for exact messages/captions with new capability of Filters.text and Filters.caption. Especially useful in combination with ReplyKeyboardMarkup. (#1631).

Major changes:

  • Fix inconsistent handling of naive datetimes (#1506).

Minor changes, CI improvments or bug fixes:

v12.2.0

14 Oct 18:17
Compare
Choose a tag to compare

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).