mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-09 09:22:03 +00:00
Merge pull request #30 from surik00/dev-1.x
New markdown method - hide_link
This commit is contained in:
commit
bddfe5055f
1 changed files with 11 additions and 0 deletions
|
|
@ -185,3 +185,14 @@ def escape_md(*content, sep=' '):
|
|||
:return:
|
||||
"""
|
||||
return _escape(_join(*content, sep=sep))
|
||||
|
||||
|
||||
def hide_link(url):
|
||||
"""
|
||||
Hide URL (HTML only)
|
||||
Can be used for adding an image to a text message
|
||||
|
||||
:param url:
|
||||
:return:
|
||||
"""
|
||||
return f'<a href="{url}">​</a>'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue