Karma
commited on
Commit
·
7d5d1d3
1
Parent(s):
ca92427
Update misc.py
Browse files
Mikobot/plugins/helper_funcs/misc.py
CHANGED
@@ -239,7 +239,7 @@ def convert_gif(input):
|
|
239 |
**{
|
240 |
#'vf': 'scale=512:-1',
|
241 |
"crf": "30"
|
242 |
-
}
|
243 |
)
|
244 |
.overwrite_output()
|
245 |
.run()
|
@@ -248,4 +248,16 @@ def convert_gif(input):
|
|
248 |
return converted_name
|
249 |
|
250 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
# <================================================ END =======================================================>
|
|
|
239 |
**{
|
240 |
#'vf': 'scale=512:-1',
|
241 |
"crf": "30"
|
242 |
+
},
|
243 |
)
|
244 |
.overwrite_output()
|
245 |
.run()
|
|
|
248 |
return converted_name
|
249 |
|
250 |
|
251 |
+
def mention_username(username: str, name: str) -> str:
|
252 |
+
"""
|
253 |
+
Args:
|
254 |
+
username (:obj:`str`): The username of chat which you want to mention.
|
255 |
+
name (:obj:`str`): The name the mention is showing.
|
256 |
+
|
257 |
+
Returns:
|
258 |
+
:obj:`str`: The inline mention for the user as HTML.
|
259 |
+
"""
|
260 |
+
return f'<a href="t.me/{username}">{escape(name)}</a>'
|
261 |
+
|
262 |
+
|
263 |
# <================================================ END =======================================================>
|