diff options
Diffstat (limited to 'libs/user.py')
| -rw-r--r-- | libs/user.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/user.py b/libs/user.py new file mode 100644 index 0000000..b201ce9 --- /dev/null +++ b/libs/user.py | |||
| @@ -0,0 +1,5 @@ | |||
| 1 | from aiogram.types import Chat, User | ||
| 2 | |||
| 3 | |||
| 4 | def mention(user: User | Chat) -> str: | ||
| 5 | return f'<a href="tg://user?id={user.id}">{user.full_name}</a>' | ||
