15
0

- Update to 1.21.1:

- New schema and QoL improvements (v1.21)
  - Scheme layer used: 125
  - View new and changed raw API methods.
  - Not many changes in this release, mostly the layer
    change. Lately quite a few people have been reporting
    TypeNotFoundError, which occurs when the server sends types
    that it shouldn’t. This can happen when Telegram decides
    to add a new, incomplete layer, and then they change the
    layer without bumping the layer number (so some constructor
    IDs no longer match and the error occurs). This layer
    change should fix it.
  - Additions
      - Message.click() now supports a password parameter,
        needed when doing things like changing the owner of a
        bot via @BotFather.
  - Enhancements
      - tgcrypto will now be used for encryption when
        installed.
  - Bug fixes
      - Message.edit wasn’t working in your own chat on
        events other than NewMessage.
      - client.delete_dialog() was not working on chats.
      - events.UserUpdate should now handle channels’ typing
        status.
      - InputNotifyPeer auto-cast should now work on other
        TLObject.
      - For some objects, False was not correctly serialized.
  - New schema and QoL improvements (v1.20)
  - Scheme layer used: 124

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Telethon?expand=0&rev=12
This commit is contained in:
2021-06-14 14:40:36 +00:00
committed by Git OBS Bridge
parent a8ed73cd81
commit 56365cbcdf
6 changed files with 199 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-Telethon
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
# Python2 is not supported
%define skip_python2 1
Name: python-Telethon
Version: 1.17.0
Version: 1.21.1
Release: 0
Summary: Full-featured Telegram client library for Python 3
License: MIT
@@ -45,14 +45,13 @@ Telethon is an asyncio Python 3 MTProto library to interact with Telegram's API
%prep
%setup -q -n Telethon-%{version}
find {README.rst,LICENSE} -type f -perm /111 -exec chmod 644 {} \;
chmod 644 *.rst LICENSE
%build
%python_build
%install
%python_install
%python_expand rm -r %{buildroot}%{$python_sitelib}/tests
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -62,6 +61,7 @@ find {README.rst,LICENSE} -type f -perm /111 -exec chmod 644 {} \;
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/*
%{python_sitelib}/telethon
%{python_sitelib}/Telethon-%{version}-py*.egg-info
%changelog