Skip to content

Commit

Permalink
* Cache mechanism for chats, users and both types of groups
Browse files Browse the repository at this point in the history
* New high-level API method `Client.get_main_list_chats(limit: int)` - Returns an ordered list of chats in a main chat
  list.

* Multiple raw methods wrappers which work the same but returns cached entity if it was found in cache: `get_chat`
  , `get_user`, `get_user_full_info`, `get_basic_group`, `get_basic_group_full_info`, `get_supergroup`
  , `get_supergroup_full_info`, `get_secret_chat`

* TL Schema parser now parses some parameters constraints in TL Schema such as nullability of parameter, min and max
  length
  • Loading branch information
pylakey committed Apr 9, 2021
1 parent 491dceb commit 107e7ac
Show file tree
Hide file tree
Showing 5 changed files with 666 additions and 143 deletions.
34 changes: 29 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,36 @@
# aiotdlib CHANGELOG

### v0.1.0

#### Added

* Cache mechanism for chats, users and both types of groups
* New high-level API method `Client.get_main_list_chats(limit: int)` - Returns an ordered list of chats in a main chat
list.
* Multiple raw methods wrappers which work the same but returns cached entity if it was found in cache: `get_chat`
, `get_user`, `get_user_full_info`, `get_basic_group`, `get_basic_group_full_info`, `get_supergroup`
, `get_supergroup_full_info`, `get_secret_chat`
* TL Schema parser now parses some parameters constraints in TL Schema such as nullability of parameter, min and max
length

#### Updated

* API objects were regenerated with updated parser

### v0.0.2
* Removed redundant `CurrentAuthorizationState` class

* added `parse_mode` param to `Client` class.
Default parse mode for high-level methods like `send_message`. Default: "html"
#### Added

* `Client.send_message` now automatically parses text entities in text.
Text will be parsed according to `parse_mode` option passed in constructor
* added `parse_mode` param to `Client` class. Default parse mode for high-level methods like `send_message`. Default: "
html"

#### Updated

* `Client.send_message` now automatically parses text entities in text. Text will be parsed according to `parse_mode`
option passed in constructor

#### Removed

* Removed redundant `CurrentAuthorizationState` class

### v0.0.1 - First Public Release
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.0.2"
__version__ = "0.1.0"

from .client import Client
from .filters import FilterCallable
Expand Down
Loading

0 comments on commit 107e7ac

Please sign in to comment.