reywechat 1.0.77__py3-none-any.whl → 1.0.79__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- reywechat/rdb.py +14 -14
- reywechat/rreceive.py +1 -2
- reywechat/rsend.py +7 -8
- {reywechat-1.0.77.dist-info → reywechat-1.0.79.dist-info}/METADATA +1 -1
- {reywechat-1.0.77.dist-info → reywechat-1.0.79.dist-info}/RECORD +7 -7
- {reywechat-1.0.77.dist-info → reywechat-1.0.79.dist-info}/WHEEL +0 -0
- {reywechat-1.0.77.dist-info → reywechat-1.0.79.dist-info}/licenses/LICENSE +0 -0
reywechat/rdb.py
CHANGED
@@ -93,7 +93,7 @@ class WeChatDatabase(WeChatBase):
|
|
93
93
|
|
94
94
|
def build_db(self) -> None:
|
95
95
|
"""
|
96
|
-
Check and build
|
96
|
+
Check and build database tables, by `self.db_names`.
|
97
97
|
"""
|
98
98
|
|
99
99
|
# Check.
|
@@ -759,7 +759,7 @@ class WeChatDatabase(WeChatBase):
|
|
759
759
|
## Insert.
|
760
760
|
if contact_table != []:
|
761
761
|
conn.execute.insert(
|
762
|
-
|
762
|
+
self.db_names['wechat.contact_user'],
|
763
763
|
user_data,
|
764
764
|
'update'
|
765
765
|
)
|
@@ -815,7 +815,7 @@ class WeChatDatabase(WeChatBase):
|
|
815
815
|
## Insert.
|
816
816
|
if contact_table != []:
|
817
817
|
conn.execute.insert(
|
818
|
-
|
818
|
+
self.db_names['wechat.contact_room'],
|
819
819
|
room_data,
|
820
820
|
'update'
|
821
821
|
)
|
@@ -893,7 +893,7 @@ class WeChatDatabase(WeChatBase):
|
|
893
893
|
## Insert.
|
894
894
|
if room_user_data != []:
|
895
895
|
conn.execute.insert(
|
896
|
-
|
896
|
+
self.db_names['wechat.contact_room_user'],
|
897
897
|
room_user_data,
|
898
898
|
'update'
|
899
899
|
)
|
@@ -961,7 +961,7 @@ class WeChatDatabase(WeChatBase):
|
|
961
961
|
|
962
962
|
## Insert.
|
963
963
|
self.database_wechat.execute.insert(
|
964
|
-
|
964
|
+
self.db_names['wechat.contact_user'],
|
965
965
|
data,
|
966
966
|
'update'
|
967
967
|
)
|
@@ -1002,7 +1002,7 @@ class WeChatDatabase(WeChatBase):
|
|
1002
1002
|
|
1003
1003
|
### 'contact_room'.
|
1004
1004
|
self.database_wechat.execute.insert(
|
1005
|
-
|
1005
|
+
self.db_names['wechat.contact_room'],
|
1006
1006
|
data,
|
1007
1007
|
'update'
|
1008
1008
|
)
|
@@ -1024,7 +1024,7 @@ class WeChatDatabase(WeChatBase):
|
|
1024
1024
|
|
1025
1025
|
## Update.
|
1026
1026
|
self.database_wechat.execute.update(
|
1027
|
-
|
1027
|
+
self.db_names['wechat.contact_room'],
|
1028
1028
|
data
|
1029
1029
|
)
|
1030
1030
|
|
@@ -1046,7 +1046,7 @@ class WeChatDatabase(WeChatBase):
|
|
1046
1046
|
|
1047
1047
|
## Update.
|
1048
1048
|
self.database_wechat.execute.update(
|
1049
|
-
|
1049
|
+
self.db_names['wechat.contact_room'],
|
1050
1050
|
data
|
1051
1051
|
)
|
1052
1052
|
|
@@ -1126,7 +1126,7 @@ class WeChatDatabase(WeChatBase):
|
|
1126
1126
|
|
1127
1127
|
# Insert.
|
1128
1128
|
self.database_wechat.execute.insert(
|
1129
|
-
|
1129
|
+
self.db_names['wechat.message_receive'],
|
1130
1130
|
data,
|
1131
1131
|
'ignore'
|
1132
1132
|
)
|
@@ -1169,7 +1169,7 @@ class WeChatDatabase(WeChatBase):
|
|
1169
1169
|
|
1170
1170
|
# Update.
|
1171
1171
|
self.database_wechat.execute.update(
|
1172
|
-
|
1172
|
+
self.db_names['wechat.message_send'],
|
1173
1173
|
data
|
1174
1174
|
)
|
1175
1175
|
|
@@ -1237,7 +1237,7 @@ class WeChatDatabase(WeChatBase):
|
|
1237
1237
|
')'
|
1238
1238
|
)
|
1239
1239
|
result = conn.execute.select(
|
1240
|
-
|
1240
|
+
self.db_names['wechat.message_send'],
|
1241
1241
|
['send_id', 'type', 'receive_id', 'parameter', 'file_id'],
|
1242
1242
|
where,
|
1243
1243
|
order='`plan_time` DESC, `send_id`'
|
@@ -1322,7 +1322,7 @@ class WeChatDatabase(WeChatBase):
|
|
1322
1322
|
## User.
|
1323
1323
|
if message.room is None:
|
1324
1324
|
result = message.receiver.wechat.database.database_wechat.execute.select(
|
1325
|
-
|
1325
|
+
self.db_names['wechat.message_send'],
|
1326
1326
|
['valid'],
|
1327
1327
|
'`user_id` = :user_id',
|
1328
1328
|
limit=1,
|
@@ -1332,7 +1332,7 @@ class WeChatDatabase(WeChatBase):
|
|
1332
1332
|
## Room.
|
1333
1333
|
elif message.user is None:
|
1334
1334
|
result = message.receiver.wechat.database.database_wechat.execute.select(
|
1335
|
-
|
1335
|
+
self.db_names['wechat.message_send'],
|
1336
1336
|
['valid'],
|
1337
1337
|
'`room_id` = :room_id',
|
1338
1338
|
limit=1,
|
@@ -1409,6 +1409,6 @@ class WeChatDatabase(WeChatBase):
|
|
1409
1409
|
|
1410
1410
|
# Insert.
|
1411
1411
|
self.database_wechat.execute.insert(
|
1412
|
-
|
1412
|
+
self.db_names['wechat.message_send'],
|
1413
1413
|
data
|
1414
1414
|
)
|
reywechat/rreceive.py
CHANGED
@@ -9,7 +9,6 @@
|
|
9
9
|
"""
|
10
10
|
|
11
11
|
|
12
|
-
from __future__ import annotations
|
13
12
|
from typing import Any, TypedDict, Literal, overload
|
14
13
|
from collections.abc import Callable
|
15
14
|
from queue import Queue
|
@@ -92,7 +91,7 @@ class WeChatMessage(WeChatBase):
|
|
92
91
|
|
93
92
|
def __init__(
|
94
93
|
self,
|
95
|
-
receiver: WechatReceiver,
|
94
|
+
receiver: 'WechatReceiver',
|
96
95
|
time: int,
|
97
96
|
id_: int,
|
98
97
|
number: int,
|
reywechat/rsend.py
CHANGED
@@ -9,7 +9,6 @@
|
|
9
9
|
"""
|
10
10
|
|
11
11
|
|
12
|
-
from __future__ import annotations
|
13
12
|
from typing import Any, Literal, overload
|
14
13
|
from collections.abc import Callable
|
15
14
|
from enum import IntEnum
|
@@ -86,7 +85,7 @@ class WeChatSendParameters(WeChatBase):
|
|
86
85
|
@overload
|
87
86
|
def __init__(
|
88
87
|
self,
|
89
|
-
sender: WeChatSender,
|
88
|
+
sender: 'WeChatSender',
|
90
89
|
send_type: Literal[WeChatSendTypeEnum.TEXT],
|
91
90
|
receive_id: str,
|
92
91
|
send_id: int | None = None,
|
@@ -97,7 +96,7 @@ class WeChatSendParameters(WeChatBase):
|
|
97
96
|
@overload
|
98
97
|
def __init__(
|
99
98
|
self,
|
100
|
-
sender: WeChatSender,
|
99
|
+
sender: 'WeChatSender',
|
101
100
|
send_type: Literal[WeChatSendTypeEnum.TEXT_AT],
|
102
101
|
receive_id: str,
|
103
102
|
send_id: int | None = None,
|
@@ -109,7 +108,7 @@ class WeChatSendParameters(WeChatBase):
|
|
109
108
|
@overload
|
110
109
|
def __init__(
|
111
110
|
self,
|
112
|
-
sender: WeChatSender,
|
111
|
+
sender: 'WeChatSender',
|
113
112
|
send_type: Literal[WeChatSendTypeEnum.FILE, WeChatSendTypeEnum.IMAGE, WeChatSendTypeEnum.EMOTION],
|
114
113
|
receive_id: str,
|
115
114
|
send_id: int | None = None,
|
@@ -121,7 +120,7 @@ class WeChatSendParameters(WeChatBase):
|
|
121
120
|
@overload
|
122
121
|
def __init__(
|
123
122
|
self,
|
124
|
-
sender: WeChatSender,
|
123
|
+
sender: 'WeChatSender',
|
125
124
|
send_type: Literal[WeChatSendTypeEnum.PAT],
|
126
125
|
receive_id: str,
|
127
126
|
send_id: int | None = None,
|
@@ -132,7 +131,7 @@ class WeChatSendParameters(WeChatBase):
|
|
132
131
|
@overload
|
133
132
|
def __init__(
|
134
133
|
self,
|
135
|
-
sender: WeChatSender,
|
134
|
+
sender: 'WeChatSender',
|
136
135
|
send_type: Literal[WeChatSendTypeEnum.PUBLIC],
|
137
136
|
receive_id: str,
|
138
137
|
send_id: int | None = None,
|
@@ -148,7 +147,7 @@ class WeChatSendParameters(WeChatBase):
|
|
148
147
|
@overload
|
149
148
|
def __init__(
|
150
149
|
self,
|
151
|
-
sender: WeChatSender,
|
150
|
+
sender: 'WeChatSender',
|
152
151
|
send_type: Literal[WeChatSendTypeEnum.FORWARD],
|
153
152
|
receive_id: str,
|
154
153
|
send_id: int | None = None,
|
@@ -158,7 +157,7 @@ class WeChatSendParameters(WeChatBase):
|
|
158
157
|
|
159
158
|
def __init__(
|
160
159
|
self,
|
161
|
-
sender: WeChatSender,
|
160
|
+
sender: 'WeChatSender',
|
162
161
|
send_type: WeChatSendTypeEnum,
|
163
162
|
receive_id: str,
|
164
163
|
send_id: int | None = None,
|
@@ -3,14 +3,14 @@ reywechat/rall.py,sha256=5J_X-XMOyb1Vp1jyS9-oRFXGOtp2vRPX1g3tJot_Eck,371
|
|
3
3
|
reywechat/rbase.py,sha256=hbxn5spvcl_C_Bw8A9teulOXT9GMlxUw145_YbXIOzc,1124
|
4
4
|
reywechat/rcache.py,sha256=5FIa8UB3VsLHT_EXHHmFP62a5AeS22anJCJXC8t4tWw,908
|
5
5
|
reywechat/rclient.py,sha256=ayOtQ0CaF8ydXjirLdVed8FbpfdQVTKVSd0x4grs-pQ,22712
|
6
|
-
reywechat/rdb.py,sha256=
|
6
|
+
reywechat/rdb.py,sha256=84yKQ72uGjn5clpFOHLKhpmbQo5d1fo_s-RGGKtnpc8,50435
|
7
7
|
reywechat/rlog.py,sha256=TSA-_5pwlq0sUND2cnLDqXvdmAdMAkC7tXIz3WfJ7Xw,5259
|
8
|
-
reywechat/rreceive.py,sha256=
|
9
|
-
reywechat/rsend.py,sha256=
|
8
|
+
reywechat/rreceive.py,sha256=YPMW99BDfgdv-6LdWE0C1NNQdh_FWVclcMMMioe74lo,50972
|
9
|
+
reywechat/rsend.py,sha256=MUpLeVeKc-9zswARqB3WLDmaOPLpAtN_u4788MHWoC8,20079
|
10
10
|
reywechat/rtrigger.py,sha256=c0peI208K2k2sOxtuszD8UMrhMrTGp0LMi_XE5ksJKg,4989
|
11
11
|
reywechat/rwechat.py,sha256=g0pbprMPv_qWb_lGFrPDAWsJO4vPSIgFLkw0Y28CZUo,4751
|
12
12
|
reywechat/data/client_api.dll,sha256=H9uj-x9Ztg0jFZK0yY6NsnyH5_119dQRFfoVVMidxRs,592384
|
13
|
-
reywechat-1.0.
|
14
|
-
reywechat-1.0.
|
15
|
-
reywechat-1.0.
|
16
|
-
reywechat-1.0.
|
13
|
+
reywechat-1.0.79.dist-info/METADATA,sha256=pK76U_EITXgg2f2kH3Wr0uEeuPyt8xcFHcqIlkp5LS4,1551
|
14
|
+
reywechat-1.0.79.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
15
|
+
reywechat-1.0.79.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
|
16
|
+
reywechat-1.0.79.dist-info/RECORD,,
|
File without changes
|
File without changes
|