warp-beacon 2.3.12__py3-none-any.whl → 2.3.13__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/utils.py +14 -3
- {warp_beacon-2.3.12.dist-info → warp_beacon-2.3.13.dist-info}/METADATA +1 -1
- {warp_beacon-2.3.12.dist-info → warp_beacon-2.3.13.dist-info}/RECORD +8 -8
- {warp_beacon-2.3.12.dist-info → warp_beacon-2.3.13.dist-info}/LICENSE +0 -0
- {warp_beacon-2.3.12.dist-info → warp_beacon-2.3.13.dist-info}/WHEEL +0 -0
- {warp_beacon-2.3.12.dist-info → warp_beacon-2.3.13.dist-info}/entry_points.txt +0 -0
- {warp_beacon-2.3.12.dist-info → warp_beacon-2.3.13.dist-info}/top_level.txt +0 -0
warp_beacon/__version__.py
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
__version__ = "2.3.
|
1
|
+
__version__ = "2.3.13"
|
2
2
|
|
warp_beacon/telegram/utils.py
CHANGED
@@ -122,13 +122,24 @@ class Utils(object):
|
|
122
122
|
for mention in mentions:
|
123
123
|
username = mention[1:].strip()
|
124
124
|
if username:
|
125
|
-
user_id =
|
125
|
+
user_id = None
|
126
|
+
display_name = username
|
127
|
+
|
126
128
|
for member in members:
|
127
|
-
if member.user.username == username:
|
129
|
+
if member.user.username and member.user.username.lower() == username.lower():
|
128
130
|
user_id = member.user.id
|
131
|
+
display_name = member.user.first_name or member.user.last_name or username
|
129
132
|
break
|
133
|
+
|
134
|
+
if user_id is None:
|
135
|
+
for member in members:
|
136
|
+
if member.user.first_name and member.user.first_name.lower() == username.lower():
|
137
|
+
user_id = member.user.id
|
138
|
+
display_name = member.user.first_name
|
139
|
+
break
|
140
|
+
|
130
141
|
if user_id:
|
131
|
-
message = message.replace(f"@{username}", f'<a href="tg://user?id={user_id}">{
|
142
|
+
message = message.replace(f"@{username}", f'<a href="tg://user?id={user_id}">{display_name}</a>')
|
132
143
|
except Exception as e:
|
133
144
|
logging.warning("Exception occurred while handling TG mentions!")
|
134
145
|
logging.exception(e)
|
@@ -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=SvYyCmpESQQDFw3ipWnDZ2_z5YrFNpHWnKvL17dpQzw,24
|
8
8
|
warp_beacon/warp_beacon.py,sha256=7KEtZDj-pdhtl6m-zFLsSojs1ZR4o7L0xbqtdmYPvfE,342
|
9
9
|
warp_beacon/compress/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
10
10
|
warp_beacon/compress/video.py,sha256=_PDMVYCyzLYxHv1uZmmzGcG_8rjaZr7BTXsXTTy_oS4,2846
|
@@ -39,11 +39,11 @@ warp_beacon/telegram/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hS
|
|
39
39
|
warp_beacon/telegram/bot.py,sha256=u3yvXIcqFtVkrf82IXiC4y-UnrEySw49_immBoXIBN4,15725
|
40
40
|
warp_beacon/telegram/handlers.py,sha256=7gldKrX-CTDQNfD1NQ08cC31uPR-95mhN59OujAEqZg,7704
|
41
41
|
warp_beacon/telegram/placeholder_message.py,sha256=wN9-BRiyrtHG-EvXtZkGJHt2CX71munQ57ITttjt0mw,6400
|
42
|
-
warp_beacon/telegram/utils.py,sha256=
|
42
|
+
warp_beacon/telegram/utils.py,sha256=YoCITXrz5sS-63o_Xtl5dFXZh0W5G9vxI4el961wkkw,4390
|
43
43
|
warp_beacon/uploader/__init__.py,sha256=5KRWsxPRGuQ56YhCEnJsXnb-yQp8dpvWEsPDf0dD-fw,4964
|
44
|
-
warp_beacon-2.3.
|
45
|
-
warp_beacon-2.3.
|
46
|
-
warp_beacon-2.3.
|
47
|
-
warp_beacon-2.3.
|
48
|
-
warp_beacon-2.3.
|
49
|
-
warp_beacon-2.3.
|
44
|
+
warp_beacon-2.3.13.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
45
|
+
warp_beacon-2.3.13.dist-info/METADATA,sha256=vj0CPRmTaWO3jAc8jiCWcNFGIv2ySMpDWus02QuCmug,21704
|
46
|
+
warp_beacon-2.3.13.dist-info/WHEEL,sha256=52BFRY2Up02UkjOa29eZOS2VxUrpPORXg1pkohGGUS8,91
|
47
|
+
warp_beacon-2.3.13.dist-info/entry_points.txt,sha256=eSB61Rb89d56WY0O-vEIQwkn18J-4CMrJcLA_R_8h3g,119
|
48
|
+
warp_beacon-2.3.13.dist-info/top_level.txt,sha256=XusFB1mGUStI2gqbtRuJzQrfrAXmdMaT3QTyfvdLEXI,1064
|
49
|
+
warp_beacon-2.3.13.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|