Skip to content

Commit f4fbeea

Browse files
authored
Update teleutils.py
1 parent 2841089 commit f4fbeea

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ethon/teleutils.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,20 @@
11
"""This file is part of the ethon distribution.
22
Copyright (c) 2021 vasusen-code
3-
43
This program is free software: you can redistribute it and/or modify
54
it under the terms of the GNU General Public License as published by
65
the Free Software Foundation, version 3.
7-
86
This program is distributed in the hope that it will be useful, but
97
WITHOUT ANY WARRANTY; without even the implied warranty of
108
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
119
General Public License for more details.
12-
1310
License can be found in < https://github.com/vasusen-code/ethon/blob/main/LICENSE > ."""
1411

1512
#vasusen-code/thechariotoflight/dronebots
1613
#__TG:ChauhanMahesh__
1714
from telethon import events
1815

19-
#to mention
16+
#to mention
2017
async def mention(bot, id):
21-
break
18+
a = await bot.get_entity(int(id))
19+
x = a.first_name
20+
return f'[{x}](tg://user?id={id})'

0 commit comments

Comments
 (0)