mirror of
https://github.com/MrSedan/neuro-reply-bot-reworked.git
synced 2026-01-14 21:49:42 +03:00
Replacement fix
This commit is contained in:
@@ -69,8 +69,9 @@ class AdminCommands(Handler):
|
|||||||
entity.offset += 3+res2.index(s)
|
entity.offset += 3+res2.index(s)
|
||||||
posts_entities.append(entity)
|
posts_entities.append(entity)
|
||||||
else:
|
else:
|
||||||
res2 += 'Их нет\)\n'
|
res2 += 'Их нет)\n'
|
||||||
await message.answer(res, parse_mode='markdownv2')
|
await message.answer(res.replace('#', '\#').replace(
|
||||||
|
"_", "\_").replace('.', '\.').replace(',', '\,').replace('!', '\!').replace('-', '\-').replace(':', '\:').replace('+', '\+'), parse_mode='markdownv2')
|
||||||
await message.answer(res2, entities=posts_entities)
|
await message.answer(res2, entities=posts_entities)
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user