warp-beacon 2.6.2__py3-none-any.whl → 2.6.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.
- warp_beacon/__version__.py +1 -1
- warp_beacon/telegram/bot.py +2 -0
- warp_beacon/telegram/utils.py +7 -0
- {warp_beacon-2.6.2.dist-info → warp_beacon-2.6.3.dist-info}/METADATA +1 -1
- {warp_beacon-2.6.2.dist-info → warp_beacon-2.6.3.dist-info}/RECORD +9 -9
- {warp_beacon-2.6.2.dist-info → warp_beacon-2.6.3.dist-info}/WHEEL +0 -0
- {warp_beacon-2.6.2.dist-info → warp_beacon-2.6.3.dist-info}/entry_points.txt +0 -0
- {warp_beacon-2.6.2.dist-info → warp_beacon-2.6.3.dist-info}/licenses/LICENSE +0 -0
- {warp_beacon-2.6.2.dist-info → warp_beacon-2.6.3.dist-info}/top_level.txt +0 -0
warp_beacon/__version__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
__version__ = "2.6.
|
1
|
+
__version__ = "2.6.3"
|
2
2
|
|
warp_beacon/telegram/bot.py
CHANGED
@@ -412,6 +412,8 @@ class Bot(object):
|
|
412
412
|
try:
|
413
413
|
reply_message = None
|
414
414
|
if job.media_type in (JobType.VIDEO, JobType.IMAGE, JobType.AUDIO, JobType.ANIMATION):
|
415
|
+
if job.message_type in (JobType.VIDEO, JobType.AUDIO):
|
416
|
+
await Utils.ensure_me_loaded(self.client)
|
415
417
|
if job.placeholder_message_id:
|
416
418
|
try:
|
417
419
|
reply_message = await self.client.edit_message_media(**self.build_tg_args(job))
|
warp_beacon/telegram/utils.py
CHANGED
@@ -147,3 +147,10 @@ class Utils(object):
|
|
147
147
|
logging.warning("Exception occurred while handling TG mentions!")
|
148
148
|
logging.exception(e)
|
149
149
|
return message
|
150
|
+
|
151
|
+
@staticmethod
|
152
|
+
async def ensure_me_loaded(client: Client) -> None:
|
153
|
+
if not client.is_connected:
|
154
|
+
return
|
155
|
+
if not client.me or not client.me.is_premium:
|
156
|
+
client.me = await client.get_me()
|
@@ -4,7 +4,7 @@ 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=
|
7
|
+
warp_beacon/__version__.py,sha256=RdyLgLBn4p6PfoS01WHZJRyWWGk8nQFLI6qssk-tN7I,23
|
8
8
|
warp_beacon/warp_beacon.py,sha256=7KEtZDj-pdhtl6m-zFLsSojs1ZR4o7L0xbqtdmYPvfE,342
|
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
|
@@ -38,15 +38,15 @@ warp_beacon/scraper/youtube/youtube.py,sha256=ctHPmTfNO-5dcYeh1K4_PkB6MQRVgByr4E
|
|
38
38
|
warp_beacon/storage/__init__.py,sha256=0Vajd0oITKJfu2vmNx5uQSt3-L6vwIvUYWJo8HZCjco,3398
|
39
39
|
warp_beacon/storage/mongo.py,sha256=qC4ZiO8XXvPnP0rJwz4CJx42pqFsyAjCiW10W5QdT6E,527
|
40
40
|
warp_beacon/telegram/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
41
|
-
warp_beacon/telegram/bot.py,sha256=
|
41
|
+
warp_beacon/telegram/bot.py,sha256=csPgDMWv6HshRZ9qKE4hmQYJCRmPScniVA5B2utohck,18828
|
42
42
|
warp_beacon/telegram/caption_shortener.py,sha256=EnguNCF52ne7y4P-iJAbI6K3sqoJqJbND_dX5Fhwkv0,1549
|
43
43
|
warp_beacon/telegram/handlers.py,sha256=uvR6TPHSqdSxigp3wR-ewiE6t3TvVcbVLVcYGwkgD2s,9559
|
44
44
|
warp_beacon/telegram/placeholder_message.py,sha256=wN9-BRiyrtHG-EvXtZkGJHt2CX71munQ57ITttjt0mw,6400
|
45
|
-
warp_beacon/telegram/utils.py,sha256=
|
45
|
+
warp_beacon/telegram/utils.py,sha256=1Lq67aRylVJzbwSyvAgjPAGjJZFATkICvAj3TJGuJiM,4635
|
46
46
|
warp_beacon/uploader/__init__.py,sha256=e75mOcC0vrUVjrTNMQzVUTgXGdGo4J6n8t5doOnYG5I,5616
|
47
|
-
warp_beacon-2.6.
|
48
|
-
warp_beacon-2.6.
|
49
|
-
warp_beacon-2.6.
|
50
|
-
warp_beacon-2.6.
|
51
|
-
warp_beacon-2.6.
|
52
|
-
warp_beacon-2.6.
|
47
|
+
warp_beacon-2.6.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
48
|
+
warp_beacon-2.6.3.dist-info/METADATA,sha256=hNvql_kVvf3-kZpeeK7ug-Ap8ezGReQ1i6Lmo5O6yfI,22625
|
49
|
+
warp_beacon-2.6.3.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
|
50
|
+
warp_beacon-2.6.3.dist-info/entry_points.txt,sha256=eSB61Rb89d56WY0O-vEIQwkn18J-4CMrJcLA_R_8h3g,119
|
51
|
+
warp_beacon-2.6.3.dist-info/top_level.txt,sha256=4ML0-mXsezLtRXyxQUntL_ktc5HX9npTeQWzvV8kFvA,1161
|
52
|
+
warp_beacon-2.6.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|