reywechat 1.0.79__py3-none-any.whl → 1.0.81__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/rclient.py CHANGED
@@ -212,7 +212,7 @@ class WeChatClient(WeChatBase):
212
212
  Inject DLL file of start API into the WeChat client process.
213
213
  """
214
214
 
215
- # Handle parameter.
215
+ # Set parameter.
216
216
  dll_file_relpath = './data/client_api.dll'
217
217
  dll_file_path = find_relpath(__file__, dll_file_relpath)
218
218
 
@@ -251,7 +251,7 @@ class WeChatClient(WeChatBase):
251
251
  Client response content dictionary.
252
252
  """
253
253
 
254
- # Handle parameter.
254
+ # Set parameter.
255
255
  url = f'http://127.0.0.1:{self.client_api_port}/api/{api}'
256
256
  data = data or {}
257
257
  if type(success_code) == int:
@@ -299,7 +299,7 @@ class WeChatClient(WeChatBase):
299
299
  Check result.
300
300
  """
301
301
 
302
- # Handle parameter.
302
+ # Set parameter.
303
303
  api = 'checkLogin'
304
304
 
305
305
  # Request.
@@ -352,7 +352,7 @@ class WeChatClient(WeChatBase):
352
352
  - `Key 'decrypt_key'`: Database decrypt key.
353
353
  """
354
354
 
355
- # Handle parameter.
355
+ # Set parameter.
356
356
  api = 'userInfo'
357
357
 
358
358
  # Request.
@@ -402,7 +402,7 @@ class WeChatClient(WeChatBase):
402
402
  timeout : Request timeout seconds.
403
403
  """
404
404
 
405
- # Handle parameter.
405
+ # Set parameter.
406
406
  api = 'hookSyncMsg'
407
407
  port = str(port)
408
408
  timeout_ms_str = str(int(timeout * 1000))
@@ -440,7 +440,7 @@ class WeChatClient(WeChatBase):
440
440
  Unhook the message.
441
441
  """
442
442
 
443
- # Handle parameter.
443
+ # Set parameter.
444
444
  api = 'unhookSyncMsg'
445
445
 
446
446
  # Request.
@@ -462,7 +462,7 @@ class WeChatClient(WeChatBase):
462
462
  id\\_ : Message ID.
463
463
  """
464
464
 
465
- # Handle parameter.
465
+ # Set parameter.
466
466
  api = 'downloadAttach'
467
467
  data = {'msgId': id_}
468
468
 
@@ -484,7 +484,7 @@ class WeChatClient(WeChatBase):
484
484
  dir\\_ : Save directory.
485
485
  """
486
486
 
487
- # Handle parameter.
487
+ # Set parameter.
488
488
  api = 'getVoiceByMsgId'
489
489
  dir_ = os_abspath(dir_)
490
490
  data = {
@@ -517,7 +517,7 @@ class WeChatClient(WeChatBase):
517
517
  - `Key 'name'`: User nickname or chat room name.
518
518
  """
519
519
 
520
- # Handle parameter.
520
+ # Set parameter.
521
521
  api = 'getContactList'
522
522
  filter_names = {
523
523
  'filehelper': '朋友推荐消息',
@@ -586,7 +586,7 @@ class WeChatClient(WeChatBase):
586
586
  User nickname or chat room name.
587
587
  """
588
588
 
589
- # Handle parameter.
589
+ # Set parameter.
590
590
  api = 'getContactProfile'
591
591
  data = {'wxid': id_}
592
592
 
@@ -619,7 +619,7 @@ class WeChatClient(WeChatBase):
619
619
  List of chat room member user ID.
620
620
  """
621
621
 
622
- # Handle parameter.
622
+ # Set parameter.
623
623
  api = 'getMemberFromChatRoom'
624
624
  data = {'chatRoomId': room_id}
625
625
 
@@ -683,7 +683,7 @@ class WeChatClient(WeChatBase):
683
683
  if text == '':
684
684
  throw(ValueError, text)
685
685
 
686
- # Handle parameter.
686
+ # Set parameter.
687
687
  api = 'sendTextMsg'
688
688
  data = {
689
689
  'wxid': receive_id,
@@ -717,7 +717,7 @@ class WeChatClient(WeChatBase):
717
717
  if text == '':
718
718
  throw(ValueError, text)
719
719
 
720
- # Handle parameter.
720
+ # Set parameter.
721
721
  api = 'sendAtText'
722
722
  if type(user_id) != str:
723
723
  user_id = ','.join(user_id)
@@ -745,7 +745,7 @@ class WeChatClient(WeChatBase):
745
745
  path : Message file path.
746
746
  """
747
747
 
748
- # Handle parameter.
748
+ # Set parameter.
749
749
  api = 'sendFileMsg'
750
750
  data = {
751
751
  'wxid': receive_id,
@@ -770,7 +770,7 @@ class WeChatClient(WeChatBase):
770
770
  path : Message image file path.
771
771
  """
772
772
 
773
- # Handle parameter.
773
+ # Set parameter.
774
774
  api = 'sendImagesMsg'
775
775
  data = {
776
776
  'wxid': receive_id,
@@ -795,7 +795,7 @@ class WeChatClient(WeChatBase):
795
795
  path : Message emotion file path.
796
796
  """
797
797
 
798
- # Handle parameter.
798
+ # Set parameter.
799
799
  api = 'sendCustomEmotion'
800
800
  data = {
801
801
  'wxid': receive_id,
@@ -820,7 +820,7 @@ class WeChatClient(WeChatBase):
820
820
  user_id : User ID of pat.
821
821
  """
822
822
 
823
- # Handle parameter.
823
+ # Set parameter.
824
824
  api = 'sendPatMsg'
825
825
  data = {
826
826
  'wxid': receive_id,
@@ -855,7 +855,7 @@ class WeChatClient(WeChatBase):
855
855
  public_id : Control public account ID.
856
856
  """
857
857
 
858
- # Handle parameter.
858
+ # Set parameter.
859
859
  text = text or ''
860
860
  image_url = image_url or ''
861
861
  public_name = public_name or ''
@@ -889,7 +889,7 @@ class WeChatClient(WeChatBase):
889
889
  message_id : Forward message ID.
890
890
  """
891
891
 
892
- # Handle parameter.
892
+ # Set parameter.
893
893
  api = 'sendImagesMsg'
894
894
  data = {
895
895
  'wxid': receive_id,