d4rktg 0.4.1__py3-none-any.whl → 0.4.3__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.
d4rk/Utils/_round.py CHANGED
@@ -1,5 +1,6 @@
1
1
  from itertools import cycle
2
2
  from functools import wraps
3
+ from pyrogram import Message
3
4
 
4
5
  bot_cycle = None
5
6
  last_selected = None
@@ -11,8 +12,10 @@ def set_bot_cycle(bot_ids):
11
12
  def round_robin():
12
13
  def decorator(func):
13
14
  @wraps(func)
14
- async def wrapper(client, message, *args, **kwargs):
15
+ async def wrapper(client, message:Message, *args, **kwargs):
15
16
  global last_selected, bot_cycle
17
+ if message.chat.type.name.lower() == "private":
18
+ return await func(client, message, *args, **kwargs)
16
19
  if bot_cycle is None:return
17
20
  if last_selected is None:last_selected = next(bot_cycle)
18
21
  if client.me.id == last_selected:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: d4rktg
3
- Version: 0.4.1
3
+ Version: 0.4.3
4
4
  Summary: A module for create with easy and fast
5
5
  Author: D4rkShell
6
6
  Author-email: premiumqtrst@gmail.com
@@ -16,9 +16,9 @@ d4rk/Utils/_fonts.py,sha256=CQsDqPgvp27t3f75Cxod0EmZogEssLwIpyesH-YY5KM,7518
16
16
  d4rk/Utils/_ip.py,sha256=KJJW2QSngshIVWCO5YPXF1wj4IPQzVN5oFofpfzlU5w,559
17
17
  d4rk/Utils/_movie_parser.py,sha256=QEPd3z04p4pk2vxZ-2fYlRxHmQbmwQd2mCIlBsBM5AY,7039
18
18
  d4rk/Utils/_ractions.py,sha256=wOVPyoFnbDuMgoP6NF_gLO1DYcfhERC0trdAK1jWSE8,2170
19
- d4rk/Utils/_round.py,sha256=g8j0DMM41ZOzQpNL83qBwPj3DVSE63bHgVXbA4ZZ8lo,717
19
+ d4rk/Utils/_round.py,sha256=V_7Bf9kn24DOnnqp2pbOsigQpG1CvuXm-tmwpOWEYZk,885
20
20
  d4rk/Utils/_terminal.py,sha256=Anu4OcffY3v6LMOrCskP1cHrJIliomo1Hjownbhh2sQ,125
21
- d4rktg-0.4.1.dist-info/METADATA,sha256=8db9iBjCVSkca6_HwdlAVIQ1bq_UabUWJfOO2MHYacc,652
22
- d4rktg-0.4.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
- d4rktg-0.4.1.dist-info/top_level.txt,sha256=qs1qTnKWImmGi7E0FoJS0OAEOHoVZA9vHRS3Pm6ncAo,5
24
- d4rktg-0.4.1.dist-info/RECORD,,
21
+ d4rktg-0.4.3.dist-info/METADATA,sha256=pvzvYjtMIJgDe7AWLhCN_hXXDXp7eBMVX1BF_DXckAg,652
22
+ d4rktg-0.4.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
+ d4rktg-0.4.3.dist-info/top_level.txt,sha256=qs1qTnKWImmGi7E0FoJS0OAEOHoVZA9vHRS3Pm6ncAo,5
24
+ d4rktg-0.4.3.dist-info/RECORD,,
File without changes