icalingua-python-bot/ica-rs/ica_typing.py

53 lines
946 B
Python
Raw Normal View History

2024-02-20 20:11:25 +08:00
# Python 兼容版本 3.8+
from typing import Optional
class IcaStatus:
@property
def login(self) -> bool:
...
@property
def online(self) -> bool:
...
@property
def self_id(self) -> Optional[bool]:
...
@property
def nick_name(self) -> Optional[str]:
...
@property
def ica_version(self) -> Optional[str]:
...
@property
def os_info(self) -> Optional[str]:
...
@property
def resident_set_size(self) -> Optional[str]:
...
@property
def head_used(self) -> Optional[str]:
...
@property
def load_average(self) -> Optional[str]:
...
class ReplyMessage:
...
class SendMessage:
...
2024-02-21 23:07:21 +08:00
class NewMessage:
def reply_with(self, message: str) -> SendMessage:
...
2024-02-22 02:40:39 +08:00
class IcaClient:
@staticmethod
async def send_message(client: "IcaClient", message: SendMessage) -> bool:
...