We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f39362 commit a4f7503Copy full SHA for a4f7503
wechatrobot/Api.py
@@ -6,8 +6,9 @@
6
from wechatrobot import ChatRoomData_pb2 as ChatRoom
7
8
class Api:
9
- port : int = os.environ.get('WECHAT_HOOK_PORT', 18888)
10
- db_handle : Dict[str, int] = 0
+ def __init__(self, port = 18888):
+ self.port = port
11
+ self.db_handle : Dict[str, int] = 0
12
13
def IsLoginIn(self , **params) -> Dict:
14
return self.post(WECHAT_IS_LOGIN , IsLoginBody(**params))
0 commit comments