From 1d327cf1380ab1fc65af169580749fa254b550cb086f9589c27a03e873586464 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 17 Mar 2025 20:19:34 +0000 Subject: [PATCH] Accepting request 1253785 from home:glaubitz:branches:devel:languages:python - Update to 1.39.0 * fix(session): persist session after `session.set_dc` * Update to layer 195 * Avoid error when trying to reset deadline for no msgbox entries * Updated to Layer 196 (#4525) * Add missing parameters to Message constructor (#4529) * Fix IOError with some image modes in photo resize This fixes image compression with mode "P" (potentially others) which is necessary as the server has erroneous alpha color with some types of images (mode "P" for example). This also properly applies the background argument that may be passed to _resize_photo_if_needed by always compressing images with alpha regardless of whether the server will compress the image for us. * Document drop_author and add drop_media_captions drop_author is already supported but is undocumented. drop_media_captions for consistency with drop_author being implemented. * Respect receive_updates=False * Improve edit_message message type hint This also allows utils.get_message_id to get the ID of InputMessageID. * Update to layer 198 * Unconditionally match text and link text in markdown Fixes cases where there's a nested [] in the text by matching until "](" is reached. This doesn't match newlines in URLs because that makes no sense. * Fix overlapping URLs and improve overlapping in md Also remove the unused overlap function. * Make markdown URL regex less greedy Fixes multiple URLs in a single message. * fix: support batch sending of image URLs and video URLs in albums * Consider range list-like This allows you to pass range() to things OBS-URL: https://build.opensuse.org/request/show/1253785 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Telethon?expand=0&rev=30 --- Telethon-1.38.1.tar.gz | 3 --- Telethon-1.39.0.tar.gz | 3 +++ python-Telethon.changes | 37 +++++++++++++++++++++++++++++++++++++ python-Telethon.spec | 2 +- 4 files changed, 41 insertions(+), 4 deletions(-) delete mode 100644 Telethon-1.38.1.tar.gz create mode 100644 Telethon-1.39.0.tar.gz diff --git a/Telethon-1.38.1.tar.gz b/Telethon-1.38.1.tar.gz deleted file mode 100644 index 348c409..0000000 --- a/Telethon-1.38.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:cfa2afdd1f9ac204530c861b2a9e4651985bdb4681486163668b6230cf857159 -size 506728 diff --git a/Telethon-1.39.0.tar.gz b/Telethon-1.39.0.tar.gz new file mode 100644 index 0000000..51d8411 --- /dev/null +++ b/Telethon-1.39.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:2d9ad3989cb73f2b3b387352a87f1ca561dae5f2d9c607499244e0a11bf9e77c +size 509308 diff --git a/python-Telethon.changes b/python-Telethon.changes index 278b8a8..e9c7a57 100644 --- a/python-Telethon.changes +++ b/python-Telethon.changes @@ -1,3 +1,40 @@ +------------------------------------------------------------------- +Mon Mar 17 13:11:04 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 1.39.0 + * fix(session): persist session after `session.set_dc` + * Update to layer 195 + * Avoid error when trying to reset deadline for no msgbox entries + * Updated to Layer 196 (#4525) + * Add missing parameters to Message constructor (#4529) + * Fix IOError with some image modes in photo resize This fixes image + compression with mode "P" (potentially others) which is necessary + as the server has erroneous alpha color with some types of images + (mode "P" for example). This also properly applies the background + argument that may be passed to _resize_photo_if_needed by always + compressing images with alpha regardless of whether the server + will compress the image for us. + * Document drop_author and add drop_media_captions drop_author is + already supported but is undocumented. drop_media_captions for + consistency with drop_author being implemented. + * Respect receive_updates=False + * Improve edit_message message type hint This also allows + utils.get_message_id to get the ID of InputMessageID. + * Update to layer 198 + * Unconditionally match text and link text in markdown Fixes cases + where there's a nested [] in the text by matching until "](" is + reached. This doesn't match newlines in URLs because that makes + no sense. + * Fix overlapping URLs and improve overlapping in md Also remove the + unused overlap function. + * Make markdown URL regex less greedy Fixes multiple URLs in a single + message. + * fix: support batch sending of image URLs and video URLs in albums + * Consider range list-like This allows you to pass range() to things + such as get_messages as ids= without first explicitly converting it + to a list. + * Update to layer 199 + ------------------------------------------------------------------- Mon Jan 13 19:50:54 UTC 2025 - John Paul Adrian Glaubitz diff --git a/python-Telethon.spec b/python-Telethon.spec index dd042d3..d89b33c 100644 --- a/python-Telethon.spec +++ b/python-Telethon.spec @@ -19,7 +19,7 @@ %define modname Telethon %{?sle15_python_module_pythons} Name: python-Telethon -Version: 1.38.1 +Version: 1.39.0 Release: 0 Summary: Full-featured Telegram client library for Python 3 License: MIT