Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update python-telegram-bot to 12.6 #14

Closed

Conversation

pyup-bot
Copy link
Collaborator

This PR updates python-telegram-bot from 12.2.0 to 12.6.

Changelog

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 checkoutv2 for GitHub actions (`1887`_)

.. _`1858`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1858
.. _`1635`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1635
.. _`1854`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1854
.. _`1874`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1874
.. _`1884`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1884
.. _`1880`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1880
.. _`1882`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1882
.. _`1826`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1826
.. _`1827`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1827
.. _`1887`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1887

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`_)

.. _`1853`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1853
.. _`1855`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1855
.. _`1835`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1835
.. _`1756`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1756
.. _`1636`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1636
.. _`1696`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1696

12.5

============
*Released 2020-03-29*

**New Features:**

- `Bot.link` gives the `t.me` link of the bot (`1770`_)

**Major Changes:**

- Bot API 4.5 and 4.6 support. (`1508`_, `1723`_)

**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`_)

.. _`1783`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1783
.. _`1787`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1787
.. _`1792`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1792
.. _`1791`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1791
.. _`1808`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1808
.. _`1614`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1614
.. _`1770`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1770
.. _`1824`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1824
.. _`1820`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1820
.. _`1829`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1829
.. _`1840`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1840
.. _`1778`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1778
.. _`1779`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1779
.. _`1721`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1721
.. _`1775`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1775
.. _`1848`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1848
.. _`1818`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1818
.. _`1508`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1508
.. _`1723`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1723

12.4.2

==============
*Released 2020-02-10*

**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`_)

.. _`1763`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1763
.. _`1760`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1760

12.4.1

==============
*Released 2020-02-08*

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

12.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, 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`_)

.. _`wiki page for the new defaults`: https://github.com/python-telegram-bot/python-telegram-bot/wiki/Adding-defaults-to-your-bot
.. _`1744`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1744
.. _`1752`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1752
.. _`1750`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1750
.. _`1591`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1591
.. _`1490`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1490
.. _`1749`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1749
.. _`1623`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1623
.. _`1748`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1748
.. _`1679`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1679
.. _`1711`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1711
.. _`1325`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1325
.. _`1746`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1746
.. _`1725`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1725
.. _`1739`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1739
.. _`1741`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1741
.. _`1642`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1642
.. _`1738`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1738
.. _`1740`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1740
.. _`1734`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1734
.. _`1680`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1680
.. _`1718`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1718
.. _`1714`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1714
.. _`1707`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1707
.. _`1731`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1731
.. _`1673`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1673
.. _`1684`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1684
.. _`1703`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1703
.. _`1698`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1698
.. _`1669`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1669
.. _`1661`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1661
.. _`1647`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1647
.. _`1632`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1632
.. _`1624`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1624
.. _`1716`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1716
.. _`1484`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1484
.. _`1758`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1484

12.3.0

==============
*Released 2020-01-11*

**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 improvements 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`_).

.. _`1631`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1631
.. _`1506`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1506
.. _`1558`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1558
.. _`1569`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1569
.. _`1579`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1579
.. _`1572`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1572
.. _`1566`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1566
.. _`1577`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1577
.. _`1533`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1533
.. _`1560`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1560
.. _`1574`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1574
.. _`1555`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1555
.. _`1556`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1556
.. _`1605`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1605
.. _`1606`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1606
.. _`1607`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1607
.. _`1612`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1612
.. _`1615`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1615
.. _`1618`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1618
.. _`1600`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1600
.. _`1619`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1619
.. _`1653`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1653
.. _`1656`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1656
.. _`1645`: https://github.com/python-telegram-bot/python-telegram-bot/pull/1645
Links

@pyup-bot
Copy link
Collaborator Author

Closing this in favor of #15

@pyup-bot pyup-bot closed this Apr 11, 2020
@alexandrebarbaruiva alexandrebarbaruiva deleted the pyup-update-python-telegram-bot-12.2.0-to-12.6 branch April 11, 2020 08:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant