File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change 11"""This file is part of the ethon distribution.
22Copyright (c) 2021 vasusen-code
3-
43This program is free software: you can redistribute it and/or modify
54it under the terms of the GNU General Public License as published by
65the Free Software Foundation, version 3.
7-
86This program is distributed in the hope that it will be useful, but
97WITHOUT ANY WARRANTY; without even the implied warranty of
108MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
119General Public License for more details.
12-
1310License can be found in < https://github.com/vasusen-code/ethon/blob/main/LICENSE > ."""
1411
1512#vasusen-code/thechariotoflight/dronebots
1613#__TG:ChauhanMahesh__
1714from telethon import events
1815
19- #to mention
16+ #to mention
2017async 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 } )'
You can’t perform that action at this time.
0 commit comments