warp-beacon 2.6.88__py3-none-any.whl → 2.6.89__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.
- warp_beacon/__version__.py +1 -1
- warp_beacon/warp_beacon.py +32 -7
- {warp_beacon-2.6.88.dist-info → warp_beacon-2.6.89.dist-info}/METADATA +1 -1
- {warp_beacon-2.6.88.dist-info → warp_beacon-2.6.89.dist-info}/RECORD +8 -8
- {warp_beacon-2.6.88.dist-info → warp_beacon-2.6.89.dist-info}/WHEEL +0 -0
- {warp_beacon-2.6.88.dist-info → warp_beacon-2.6.89.dist-info}/entry_points.txt +0 -0
- {warp_beacon-2.6.88.dist-info → warp_beacon-2.6.89.dist-info}/licenses/LICENSE +0 -0
- {warp_beacon-2.6.88.dist-info → warp_beacon-2.6.89.dist-info}/top_level.txt +0 -0
warp_beacon/__version__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
__version__ = "2.6.
|
1
|
+
__version__ = "2.6.89"
|
2
2
|
|
warp_beacon/warp_beacon.py
CHANGED
@@ -1,14 +1,39 @@
|
|
1
1
|
import os
|
2
|
+
import sys
|
3
|
+
import uuid
|
4
|
+
import secrets
|
5
|
+
import hashlib
|
6
|
+
import argparse
|
2
7
|
|
3
8
|
from warp_beacon.telegram.bot import Bot
|
4
9
|
|
5
10
|
#import logging
|
6
11
|
|
12
|
+
def generate_uuid() -> str:
|
13
|
+
return str(uuid.uuid4())
|
14
|
+
|
15
|
+
def generate_device_id(seed: str = None) -> str:
|
16
|
+
raw = secrets.token_hex(8) if not seed else seed.encode()
|
17
|
+
hex_part = hashlib.md5(raw).hexdigest()[:16]
|
18
|
+
return f"android-{hex_part}"
|
19
|
+
|
7
20
|
def main() -> None:
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
21
|
+
parser = argparse.ArgumentParser(description="Warp Beacon Telegram bot.")
|
22
|
+
parser.add_argument("--uuid", action="store_true", help="Generate UUID")
|
23
|
+
parser.add_argument("--generate-device-id", type=str, metavar="INSTAGRAM_LOGIN", help="Generate device_id with account login")
|
24
|
+
|
25
|
+
args = parser.parse_args()
|
26
|
+
|
27
|
+
if args.uuid:
|
28
|
+
print(generate_uuid())
|
29
|
+
elif args.generate_device_id:
|
30
|
+
print(generate_device_id(args.generate_device_id))
|
31
|
+
else:
|
32
|
+
bot = Bot(
|
33
|
+
tg_bot_name=os.environ.get("TG_BOT_NAME", default=None),
|
34
|
+
tg_token=os.environ.get("TG_TOKEN", default=None),
|
35
|
+
tg_api_id=os.environ.get("TG_API_ID", default=None),
|
36
|
+
tg_api_hash=os.environ.get("TG_API_HASH", default=None)
|
37
|
+
)
|
38
|
+
bot.start()
|
39
|
+
sys.exit(0)
|
@@ -4,8 +4,8 @@ var/warp_beacon/accounts.json,sha256=OsXdncs6h88xrF_AP6_WDCK1waGBn9SR-uYdIeK37GM
|
|
4
4
|
var/warp_beacon/placeholder.gif,sha256=cE5CGJVaop4Sx21zx6j4AyoHU0ncmvQuS2o6hJfEH88,6064
|
5
5
|
var/warp_beacon/proxies.json,sha256=VnjlQDXumOEq72ZFjbh6IqHS1TEHqn8HPYAZqWCeSIA,95
|
6
6
|
warp_beacon/__init__.py,sha256=_rThNODmz0nDp_n4mWo_HKaNFE5jk1_7cRhHyYaencI,163
|
7
|
-
warp_beacon/__version__.py,sha256=
|
8
|
-
warp_beacon/warp_beacon.py,sha256=
|
7
|
+
warp_beacon/__version__.py,sha256=AhxRZFfW4nuV1nG374FacuiUBDMNSLMJmo9LBJyboDs,24
|
8
|
+
warp_beacon/warp_beacon.py,sha256=ADCR30uGXIsDrt9WoiI9Ghu2QtWs0qZIK6x3pQKM_B4,1109
|
9
9
|
warp_beacon/yt_auth.py,sha256=GUTKqYr_tzDC-07Lx_ahWXSag8EyLxXBUnQbDBIkEmk,6022
|
10
10
|
warp_beacon/compress/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
11
|
warp_beacon/compress/video.py,sha256=_PDMVYCyzLYxHv1uZmmzGcG_8rjaZr7BTXsXTTy_oS4,2846
|
@@ -52,9 +52,9 @@ warp_beacon/telegram/progress_file_reader.py,sha256=e3equyNKlKs764AD-iE9QRsh3YDH
|
|
52
52
|
warp_beacon/telegram/types.py,sha256=Kvdng6uCF1HRoqQgGW1ZYYPJoVuYkFb-LDvMBbW5Hjk,89
|
53
53
|
warp_beacon/telegram/utils.py,sha256=1Lq67aRylVJzbwSyvAgjPAGjJZFATkICvAj3TJGuJiM,4635
|
54
54
|
warp_beacon/uploader/__init__.py,sha256=j3qcuKhpchseZLGzSsSiogqe6WdMbkK8d3I-ConhNRs,5687
|
55
|
-
warp_beacon-2.6.
|
56
|
-
warp_beacon-2.6.
|
57
|
-
warp_beacon-2.6.
|
58
|
-
warp_beacon-2.6.
|
59
|
-
warp_beacon-2.6.
|
60
|
-
warp_beacon-2.6.
|
55
|
+
warp_beacon-2.6.89.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
56
|
+
warp_beacon-2.6.89.dist-info/METADATA,sha256=a3IGbK9FA8yZZxisbuboczOGs5zPXZKUmyN6PYhHmUo,22736
|
57
|
+
warp_beacon-2.6.89.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
58
|
+
warp_beacon-2.6.89.dist-info/entry_points.txt,sha256=eSB61Rb89d56WY0O-vEIQwkn18J-4CMrJcLA_R_8h3g,119
|
59
|
+
warp_beacon-2.6.89.dist-info/top_level.txt,sha256=5YQRN46STNg81V_3jdzZ6bftkMxhe1hTPSFvJugDu84,1405
|
60
|
+
warp_beacon-2.6.89.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|