Minor style changes
This commit is contained in:
parent
2d9ae53d89
commit
e099886eb1
|
@ -95,7 +95,7 @@ async def enter_password(evt: CommandEvent) -> None:
|
||||||
except MForbidden:
|
except MForbidden:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
assert(evt.sender.command_status)
|
assert evt.sender.command_status
|
||||||
req = {
|
req = {
|
||||||
"uuid": await evt.sender.get_uuid(),
|
"uuid": await evt.sender.get_uuid(),
|
||||||
"form": {
|
"form": {
|
||||||
|
@ -125,7 +125,7 @@ async def enter_password(evt: CommandEvent) -> None:
|
||||||
|
|
||||||
|
|
||||||
async def enter_dv_code(evt: CommandEvent) -> None:
|
async def enter_dv_code(evt: CommandEvent) -> None:
|
||||||
assert(evt.sender.command_status)
|
assert evt.sender.command_status
|
||||||
req: dict = evt.sender.command_status["req"]
|
req: dict = evt.sender.command_status["req"]
|
||||||
passcode = evt.content.body
|
passcode = evt.content.body
|
||||||
await evt.mark_read()
|
await evt.mark_read()
|
||||||
|
|
|
@ -204,7 +204,7 @@ class Client:
|
||||||
profile_req_struct = await self._api_user_request_result(
|
profile_req_struct = await self._api_user_request_result(
|
||||||
ProfileReqStruct,
|
ProfileReqStruct,
|
||||||
"get_profile",
|
"get_profile",
|
||||||
user_id=user_id.serialize()
|
user_id=user_id.serialize(),
|
||||||
)
|
)
|
||||||
return profile_req_struct.profile
|
return profile_req_struct.profile
|
||||||
|
|
||||||
|
@ -219,7 +219,7 @@ class Client:
|
||||||
return await self._api_user_request_result(
|
return await self._api_user_request_result(
|
||||||
ResultListType(UserInfoUnion),
|
ResultListType(UserInfoUnion),
|
||||||
"get_participants",
|
"get_participants",
|
||||||
channel_props=channel_props.serialize()
|
channel_props=channel_props.serialize(),
|
||||||
)
|
)
|
||||||
|
|
||||||
async def get_chats(self, channel_props: ChannelProps, sync_from: Long | None, limit: int | None) -> list[Chatlog]:
|
async def get_chats(self, channel_props: ChannelProps, sync_from: Long | None, limit: int | None) -> list[Chatlog]:
|
||||||
|
@ -228,7 +228,7 @@ class Client:
|
||||||
"get_chats",
|
"get_chats",
|
||||||
channel_props=channel_props.serialize(),
|
channel_props=channel_props.serialize(),
|
||||||
sync_from=sync_from.serialize() if sync_from else None,
|
sync_from=sync_from.serialize() if sync_from else None,
|
||||||
limit=limit
|
limit=limit,
|
||||||
)
|
)
|
||||||
|
|
||||||
async def list_friends(self) -> FriendListStruct:
|
async def list_friends(self) -> FriendListStruct:
|
||||||
|
@ -242,7 +242,7 @@ class Client:
|
||||||
Chatlog,
|
Chatlog,
|
||||||
"send_message",
|
"send_message",
|
||||||
channel_props=channel_props.serialize(),
|
channel_props=channel_props.serialize(),
|
||||||
text=text
|
text=text,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -13,6 +13,14 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
"""
|
##from .web_client import *
|
||||||
from .auth_api_client import *
|
##from .xvc import * # as xvc
|
||||||
"""
|
#from .struct import * # as struct
|
||||||
|
#from .auth_api_client import *
|
||||||
|
##from .service_api_client import *
|
||||||
|
##from .oauth_api_client import *
|
||||||
|
##from .attachment_api_client import *
|
||||||
|
##from .open_upload_api_client import *
|
||||||
|
##from .web_api_util import * # as webApiUtil
|
||||||
|
##from .header_util import * # as headerUtil
|
||||||
|
##from .service_api_util import * # as serviceApiUtil
|
||||||
|
|
Loading…
Reference in New Issue