reywechat 1.0.50__py3-none-any.whl → 1.0.51__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/rreceive.py CHANGED
@@ -524,7 +524,7 @@ class WeChatMessage(WeChatBase):
524
524
  ### Mark.
525
525
  if is_call_next:
526
526
  call_next_mark_value = f'{self.user}_{self.room}'
527
- self.receiver.call_next_mark(call_next_mark_value)
527
+ self.receiver.mark(call_next_mark_value, 'is_call_next')
528
528
 
529
529
  self._is_call = is_call
530
530
  self._call_text = call_text
@@ -590,12 +590,12 @@ class WeChatMessage(WeChatBase):
590
590
 
591
591
  # Judge.
592
592
  call_next_mark_value = f'{self.user}_{self.room}'
593
- self._is_last_call = call_next_mark_value in self.receiver.call_next_mark
593
+ self._is_last_call = self.receiver.mark.is_marked(call_next_mark_value, 'is_call_next')
594
594
 
595
595
  # Mark.
596
596
  if self._is_last_call:
597
597
  call_next_mark_value = f'{self.user}_{self.room}'
598
- self.receiver.call_next_mark.remove(call_next_mark_value)
598
+ self.receiver.mark.remove(call_next_mark_value, 'is_call_next')
599
599
 
600
600
  return self.is_last_call
601
601
 
@@ -1125,7 +1125,7 @@ class WechatReceiver(WeChatBase):
1125
1125
  self.queue: Queue[WeChatMessage] = Queue()
1126
1126
  self.handlers: list[Callable[[WeChatMessage], Any]] = []
1127
1127
  self.started: bool | None = False
1128
- self.call_next_mark = Mark()
1128
+ self.mark = Mark()
1129
1129
  self.trigger = WeChatTrigger(self)
1130
1130
 
1131
1131
  # Start.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: reywechat
3
- Version: 1.0.50
3
+ Version: 1.0.51
4
4
  Summary: WeChat method set.
5
5
  Project-URL: homepage, https://github.com/reyxbo/reywechat/
6
6
  Author-email: Rey <reyxbo@163.com>
@@ -5,12 +5,12 @@ reywechat/rcache.py,sha256=7UsHHfgFOgxuSqlTSAO6CprgUUOeBCXYus0kxmRBQxk,908
5
5
  reywechat/rclient.py,sha256=lc1CPle9h08mwP8NlJN0ybzcNJxtpV0ma6q6cz1RIxk,22518
6
6
  reywechat/rdb.py,sha256=YHkW81RZIdHCt2vvjgFKOZxU-EHyVf9F_XT_nOc7jxg,47354
7
7
  reywechat/rlog.py,sha256=4EsTgrgC05JvWeKAucUaWGga638CRRJISJN6qncBCAw,5249
8
- reywechat/rreceive.py,sha256=ezz6-RVKWmll-TuKXaAnmQRRQdn91v6DJlfpWcTuG20,36213
8
+ reywechat/rreceive.py,sha256=ym_X-OueLh23cQYEUehIt3soZeQr8nrvi_6Mx9vUbUo,36229
9
9
  reywechat/rsend.py,sha256=TiSjHMccbjM2U6na3xPGKq3RhoaW23-BsgLdRyJSGEw,18047
10
10
  reywechat/rtrigger.py,sha256=WdOQwobPdGPyyE9J-qtQFPd60713T0aWqKk02PLdCRE,4966
11
11
  reywechat/rwechat.py,sha256=nIyrf3hB3n03picxV1f1hWNFzhFOXcV201ZuS97P3N4,4741
12
12
  reywechat/data/client_api.dll,sha256=H9uj-x9Ztg0jFZK0yY6NsnyH5_119dQRFfoVVMidxRs,592384
13
- reywechat-1.0.50.dist-info/METADATA,sha256=AlBjYWk7HvQsccQ_YggBO5OpES7JFw8YwpgEtRNZGww,1551
14
- reywechat-1.0.50.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
- reywechat-1.0.50.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
16
- reywechat-1.0.50.dist-info/RECORD,,
13
+ reywechat-1.0.51.dist-info/METADATA,sha256=T_mMa-3Q1dTtBmgWscUx8wr6XIg2n4V9u94z7nDkuU4,1551
14
+ reywechat-1.0.51.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
15
+ reywechat-1.0.51.dist-info/licenses/LICENSE,sha256=UYLPqp7BvPiH8yEZduJqmmyEl6hlM3lKrFIefiD4rvk,1059
16
+ reywechat-1.0.51.dist-info/RECORD,,