| Total Complexity | 1 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | # -*- coding: utf-8 -*- |
||
| 2 | |||
| 3 | |||
| 4 | from html import escape |
||
| 5 | |||
| 6 | |||
| 7 | async def mention_html(user_id, name): |
||
| 8 | |||
| 9 | """ |
||
| 10 | |||
| 11 | The function is designed to output a link to a telegram. |
||
| 12 | |||
| 13 | """ |
||
| 14 | |||
| 15 | return f'<a href="tg://user?id={user_id}">{escape(name)}</a>' |
||
| 16 |