change sign format
This commit is contained in:
parent
de15a932fa
commit
96f3b7b76f
8
.idea/markdown-exported-files.xml
Normal file
8
.idea/markdown-exported-files.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="MarkdownExportedFiles">
|
||||
<htmlFiles />
|
||||
<imageFiles />
|
||||
<otherFiles />
|
||||
</component>
|
||||
</project>
|
3
main.py
3
main.py
@ -143,8 +143,7 @@ def _sign_text(text, m: Message, limit):
|
||||
sign = ''
|
||||
if text.startswith('!sign') or text.startswith('/sign'):
|
||||
text = text[5:]
|
||||
sign = f'\n\n____________\n' \
|
||||
f'by <a href="tg://user?id={m.from_user.id}">{escape(m.from_user.full_name)}</a>'
|
||||
sign = f'\n\n — <a href="tg://user?id={m.from_user.id}">{escape(m.from_user.full_name)}</a>'
|
||||
|
||||
return text[:limit - len(sign)] + sign
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user