Skip to content

Commit

Permalink
Update to v1.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Lonami committed Apr 24, 2019
1 parent 9fc719c commit 01eb49d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
22 changes: 22 additions & 0 deletions readthedocs/extra/changelog.rst
Expand Up @@ -13,6 +13,20 @@ it can take advantage of new goodies!

.. contents:: List of All Versions

Fix-up for Photo Downloads (v1.7.1)
===================================

*Published at 2019/04/24*

Telegram changed the way thumbnails (which includes photos) are downloaded,
so you can no longer use a :tl:`PhotoSize` alone to download a particular
thumbnail size (this is a **breaking change**).

Instead, you will have to specify the new ``thumb`` parameter in
`client.download_media() <telethon.client.downloads.DownloadMethods.download_media>`
to download a particular thumbnail size. This addition enables you to easily
download thumbnails from documents, something you couldn't do easily before.


Easier Events (v1.7)
====================
Expand Down Expand Up @@ -69,6 +83,9 @@ Breaking Changes
* The layer changed, and a lot of things did too. If you are using
raw API, you should be careful with this. In addition, some attributes
weren't of type ``datetime`` when they should be, which has been fixed.
* Due to the layer change, you can no longer download photos with just
their :tl:`PhotoSize`. Version 1.7.1 introduces a new way to download
thumbnails to work around this issue.
* `client.disconnect()
<telethon.client.telegrambaseclient.TelegramBaseClient.disconnect>`
is now asynchronous again. This means you need to ``await`` it. You
Expand All @@ -94,6 +111,11 @@ Additions
You can also easily use this for sending files, playing games, etc.


New bugs
~~~~~~~~

* Downloading photos is broken. This is fixed in v1.7.1.

Bug fixes
~~~~~~~~~

Expand Down
9 changes: 9 additions & 0 deletions readthedocs/extra/examples/projects-using-telethon.rst
Expand Up @@ -53,3 +53,12 @@ TelegramTUI
`Author's website <https://github.com/bad-day>`_

A Telegram client on your terminal.

spotify_telegram_bio_updater
****************************

`Link <https://github.com/Poolitzer/spotify_telegram_bio_updater>`_ /
`Author's website <https://t.me/pooltalks>`_

Small project that updates the biography of a telegram user according
to their current Spotify playback, or revert it if no playback is active.
2 changes: 1 addition & 1 deletion telethon/version.py
@@ -1,3 +1,3 @@
# Versions should comply with PEP440.
# This line is parsed in setup.py:
__version__ = '1.7'
__version__ = '1.7.1'

0 comments on commit 01eb49d

Please sign in to comment.