Skip to content

Commit

Permalink
* TDLib binaries upgraded to
Browse files Browse the repository at this point in the history
  latest [available version](tdlib/td@f8ab675)

* API types and functions regenerated
  • Loading branch information
pylakey committed Aug 3, 2021
1 parent 3797153 commit 6bfc46a
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 23 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# aiotdlib CHANGELOG

### 0.8.2 - Upgrade to latest TDLib

#### Updated

* TDLib binaries upgraded to
latest [available version](https://github.com/tdlib/td/commit/f8ab675ad14080b1609b5904c366052c814d1788)

* API types and functions regenerated

### 0.8.1 - Hotfix

#### Fixed
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM python:3.9-slim-buster

LABEL maintainer="Pylakey <[email protected]>"
ENV AIOTDLIB_VERSION="0.8.1"
ENV AIOTDLIB_VERSION="0.8.2"

RUN apt-get update && apt-get install -y \
zlib1g-dev \
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
[![PyPI pyversions](https://img.shields.io/pypi/pyversions/aiotdlib.svg)](https://pypi.python.org/pypi/aiotdlib/)
[![PyPI license](https://img.shields.io/pypi/l/aiotdlib.svg)](https://pypi.python.org/pypi/aiotdlib/)

> This wrapper is actual for **[TDLib v1.7.6 (d4dc4f2)](https://github.com/tdlib/td/commit/d4dc4f2a50f39b1c05efd955a6e9de0db2b197bc)**
> This wrapper is actual for **[TDLib v1.7.6 (f8ab675)](https://github.com/tdlib/td/commit/f8ab675ad14080b1609b5904c366052c814d1788)**
>
> This package includes prebuilt TDLib binaries for macOS and Debian Buster.
> You can use your own binary by passing `library_path` argument to `Client` class constructor. Make sure it's built from [this commit](https://github.com/tdlib/td/commit/d4dc4f2a50f39b1c05efd955a6e9de0db2b197bc). Compatibility with other versions of library is not guaranteed.
> You can use your own binary by passing `library_path` argument to `Client` class constructor. Make sure it's built from [this commit](https://github.com/tdlib/td/commit/f8ab675ad14080b1609b5904c366052c814d1788). Compatibility with other versions of library is not guaranteed.
## Features

* All types and functions are generated automatically
from [tl schema](https://github.com/tdlib/td/blob/d4dc4f2a50f39b1c05efd955a6e9de0db2b197bc/td/generate/scheme/td_api.tl)
from [tl schema](https://github.com/tdlib/td/blob/f8ab675ad14080b1609b5904c366052c814d1788/td/generate/scheme/td_api.tl)
* All types and functions come with validation and good IDE type hinting (thanks
to [Pydantic](https://github.com/samuelcolvin/pydantic))
* A set of high-level API methods which makes work with tdlib much simpler
Expand Down
2 changes: 1 addition & 1 deletion aiotdlib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "0.8.1"
__version__ = "0.8.2"

from .client import (
Client,
Expand Down
34 changes: 17 additions & 17 deletions aiotdlib/api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2257,7 +2257,7 @@ async def can_transfer_ownership(
*,
request_id: str = None,
request_timeout: int = None
) -> CanTransferOwnershipResult:
) -> CanTransferOwnershipResult:
"""
Checks whether the current session can be used to transfer a chat ownership to another user

Expand Down Expand Up @@ -4836,7 +4836,7 @@ async def get_active_live_location_messages(
*,
request_id: str = None,
request_timeout: int = None
) -> Messages:
) -> Messages:
"""
Returns all active live locations that should be updated by the application. The list is persistent across application restarts only if the message database is used

Expand Down Expand Up @@ -4973,7 +4973,7 @@ async def get_authorization_state(
*,
request_id: str = None,
request_timeout: int = None
) -> AuthorizationState:
) -> AuthorizationState:
"""
Returns the current authorization state; this is an offline request. For informational purposes only. Use updateAuthorizationState instead to maintain the current authorization state. Can be called before initialization

Expand All @@ -4989,7 +4989,7 @@ async def get_auto_download_settings_presets(
*,
request_id: str = None,
request_timeout: int = None
) -> AutoDownloadSettingsPresets:
) -> AutoDownloadSettingsPresets:
"""
Returns auto-download settings presets for the current user

Expand Down Expand Up @@ -6020,7 +6020,7 @@ async def get_database_statistics(
*,
request_id: str = None,
request_timeout: int = None
) -> DatabaseStatistics:
) -> DatabaseStatistics:
"""
Returns database statistics

Expand Down Expand Up @@ -6805,7 +6805,7 @@ async def get_log_verbosity_level(
*,
request_id: str = None,
request_timeout: int = None
) -> LogVerbosityLevel:
) -> LogVerbosityLevel:
"""
Returns current verbosity level of the internal logging of TDLib. Can be called synchronously

Expand Down Expand Up @@ -7850,7 +7850,7 @@ async def get_recommended_chat_filters(
*,
request_id: str = None,
request_timeout: int = None
) -> RecommendedChatFilters:
) -> RecommendedChatFilters:
"""
Returns recommended chat filters for the current user

Expand Down Expand Up @@ -8173,7 +8173,7 @@ async def get_storage_statistics_fast(
*,
request_id: str = None,
request_timeout: int = None
) -> StorageStatisticsFast:
) -> StorageStatisticsFast:
"""
Quickly returns approximate storage usage statistics. Can be called before authorization

Expand Down Expand Up @@ -8361,7 +8361,7 @@ async def get_temporary_password_state(
*,
request_id: str = None,
request_timeout: int = None
) -> TemporaryPasswordState:
) -> TemporaryPasswordState:
"""
Returns information about the current temporary password

Expand Down Expand Up @@ -10011,7 +10011,7 @@ async def request_authentication_password_recovery(
*,
request_id: str = None,
request_timeout: int = None
) -> Ok:
) -> Ok:
"""
Requests to send a password recovery code to an email address that was previously set up. Works only when the current authorization state is authorizationStateWaitPassword

Expand All @@ -10027,7 +10027,7 @@ async def request_password_recovery(
*,
request_id: str = None,
request_timeout: int = None
) -> EmailAddressAuthenticationCodeInfo:
) -> EmailAddressAuthenticationCodeInfo:
"""
Requests to send a 2-step verification password recovery code to an email address that was previously set up

Expand Down Expand Up @@ -10080,7 +10080,7 @@ async def resend_change_phone_number_code(
*,
request_id: str = None,
request_timeout: int = None
) -> AuthenticationCodeInfo:
) -> AuthenticationCodeInfo:
"""
Re-sends the authentication code sent to confirm a new phone number for the user. Works only if the previously received authenticationCodeInfo next_code_type was not null and the server-specified timeout has passed

Expand All @@ -10096,7 +10096,7 @@ async def resend_email_address_verification_code(
*,
request_id: str = None,
request_timeout: int = None
) -> EmailAddressAuthenticationCodeInfo:
) -> EmailAddressAuthenticationCodeInfo:
"""
Re-sends the code to verify an email address to be added to a user's Telegram Passport

Expand Down Expand Up @@ -10143,7 +10143,7 @@ async def resend_phone_number_confirmation_code(
*,
request_id: str = None,
request_timeout: int = None
) -> AuthenticationCodeInfo:
) -> AuthenticationCodeInfo:
"""
Resends phone number confirmation code

Expand All @@ -10159,7 +10159,7 @@ async def resend_phone_number_verification_code(
*,
request_id: str = None,
request_timeout: int = None
) -> AuthenticationCodeInfo:
) -> AuthenticationCodeInfo:
"""
Re-sends the code to verify a phone number to be added to a user's Telegram Passport

Expand All @@ -10175,7 +10175,7 @@ async def resend_recovery_email_address_code(
*,
request_id: str = None,
request_timeout: int = None
) -> PasswordState:
) -> PasswordState:
"""
Resends the 2-step verification recovery email address verification code

Expand Down Expand Up @@ -11972,7 +11972,7 @@ async def set_chat_message_ttl_setting(
Chat identifier

ttl (:class:`int`)
New TTL value, in seconds; must be one of 0, 86400, 604800 unless chat is secret
New TTL value, in seconds; must be one of 0, 86400, 7 * 86400, or 31 * 86400 unless the chat is secret

"""
_constructor = SetChatMessageTtlSetting.construct if skip_validation else SetChatMessageTtlSetting
Expand Down
2 changes: 1 addition & 1 deletion aiotdlib/api/functions/set_chat_message_ttl_setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class SetChatMessageTtlSetting(BaseObject):
Chat identifier
ttl (:class:`int`)
New TTL value, in seconds; must be one of 0, 86400, 604800 unless chat is secret
New TTL value, in seconds; must be one of 0, 86400, 7 * 86400, or 31 * 86400 unless the chat is secret
"""

Expand Down
Binary file modified aiotdlib/tdlib/libtdjson.1.7.6.dylib
Binary file not shown.
Binary file modified aiotdlib/tdlib/libtdjson.so.1.7.6
Binary file not shown.

0 comments on commit 6bfc46a

Please sign in to comment.