-
Notifications
You must be signed in to change notification settings - Fork 47
Dev/2.3.0 #65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Dev/2.3.0 #65
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
b6f4e55
Add error hooks and relogin support
ink-developer a97e698
Merge remote-tracking branch 'origin/main' into dev/2.3.0
ink-developer 93008b8
Add chat delete and contact import APIs
ink-developer 1d4ad55
Add disconnect hook and simplify edit attachments
ink-developer 80ab48d
Allow multiple on_start handlers
ink-developer fe1c5ab
chore: prepare release 2.3.0
ink-developer 6c6f1d7
fix: minor fixes
ink-developer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,40 @@ | ||
| PyMax 2.3.0 | ||
| =========== | ||
|
|
||
| Изменения относительно ``2.2.0``. | ||
|
|
||
| Добавлено | ||
| --------- | ||
|
|
||
| * Несколько ``on_start``-обработчиков на одном клиенте или роутере. Все | ||
| зарегистрированные callbacks запускаются после успешного login. | ||
| * ``on_error()`` для централизованной обработки ошибок из handler-ов, | ||
| фильтров, ``on_start`` и login на этапе запуска. | ||
| * ``ErrorScope.GLOBAL`` и ``ErrorScope.LOCAL`` для выбора области действия | ||
| error-handler-а. | ||
| * ``on_disconnect()`` для реакции на сетевое отключение перед reconnect. В | ||
| callback передаются исходная ошибка, флаг reconnect и задержка. | ||
| * ``relogin()`` для удаления текущей локальной сессии и повторной авторизации. | ||
| * ``delete_chat()`` на клиенте и ``Chat.delete()`` на bound-объекте чата. | ||
| * ``import_contacts()`` и ``ContactInfo`` для импорта контактов из телефонной | ||
| книги. | ||
| * ``SessionStore.delete_all_sessions()`` для очистки встроенного SQLite-store. | ||
|
|
||
| Изменилось | ||
| ---------- | ||
|
|
||
| * ``edit_message()`` и ``Message.edit()`` принимают новые вложения только через | ||
| ``attachments=[...]``. | ||
| * Тип ``attachments`` для отправки и редактирования сообщений теперь принимает | ||
| любую ``Sequence`` из ``Photo``, ``File`` и ``Video``. | ||
| * Обработанные login-ошибки на этапе ``start`` больше не приводят к запуску | ||
| ``on_start``. | ||
|
|
||
| Миграция | ||
| -------- | ||
|
|
||
| * В ``edit_message()`` и ``Message.edit()`` используйте ``attachments=[...]``. | ||
| Параметр ``attachment`` удален. | ||
| * Если error-handler зарегистрирован и успешно отработал, исходная ошибка | ||
| считается обработанной. Если сам error-handler падает, исходная ошибка | ||
| продолжает распространяться. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| ContactInfo | ||
| =========== | ||
|
|
||
| .. autoclass:: pymax.types.domain.user.ContactInfo | ||
| :members: | ||
| :show-inheritance: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| __version__ = "2.2.0" | ||
| __version__ = "2.3.0" | ||
|
|
||
|
|
||
| from .auth import ( | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.