mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-10-01 10:49:11 +00:00
core, python: fix refused renames, extend the client API (#7379)
* core: do not commit refused name changes * feat(python): add error base and missing commands * feat(python): let callers drive startup themselves * style(python): satisfy the linter, skip generated types * feat(python): expose the message of a command error * core: update query plans * core: fix the batch limit parse error on GHC 8.10 * feat(python): reject profile images no client can render
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
"""SimpleX Chat — Python client library for chat bots."""
|
||||
|
||||
from . import util as util # re-export the util namespace
|
||||
from ._version import __version__
|
||||
from .api import (
|
||||
ChatApi,
|
||||
@@ -32,17 +33,16 @@ from .bot import (
|
||||
VideoMessage,
|
||||
VoiceMessage,
|
||||
)
|
||||
from .core import ChatAPIError, ChatInitError, CryptoArgs, MigrationConfirmation
|
||||
from . import util as util # re-export the util namespace
|
||||
from .core import ChatAPIError, ChatError, ChatInitError, CryptoArgs, MigrationConfirmation
|
||||
|
||||
__all__ = [
|
||||
"__version__",
|
||||
"Bot",
|
||||
"BotCommand",
|
||||
"BotProfile",
|
||||
"ChatAPIError",
|
||||
"ChatApi",
|
||||
"ChatCommandError",
|
||||
"ChatError",
|
||||
"ChatInitError",
|
||||
"ChatMessage",
|
||||
"Client",
|
||||
@@ -68,5 +68,6 @@ __all__ = [
|
||||
"UnknownMessage",
|
||||
"VideoMessage",
|
||||
"VoiceMessage",
|
||||
"__version__",
|
||||
"util",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user