diff --git a/olgram/commands/menu.py b/olgram/commands/menu.py index 995ba27..70f11bf 100644 --- a/olgram/commands/menu.py +++ b/olgram/commands/menu.py @@ -154,16 +154,16 @@ async def send_bot_text_menu(bot: Bot, call: ty.Optional[types.CallbackQuery] = команду /start Текущий текст: - ``` +
{1}
- ```
+
Отправьте сообщение, чтобы изменить текст.
""")
text = text.format(bot.name, bot.start_text)
if call:
- await edit_or_create(call, text, keyboard, parse_mode="markdown")
+ await edit_or_create(call, text, keyboard, parse_mode="HTML")
else:
- await AioBot.get_current().send_message(chat_id, text, reply_markup=keyboard, parse_mode="markdown")
+ await AioBot.get_current().send_message(chat_id, text, reply_markup=keyboard, parse_mode="HTML")
@dp.message_handler(state="wait_start_text", content_types="text", regexp="^[^/].+") # Not command
diff --git a/server/custom.py b/server/custom.py
index e6d725b..b58323e 100644
--- a/server/custom.py
+++ b/server/custom.py
@@ -49,14 +49,14 @@ async def message_handler(message, *args, **kwargs):
chat_id = message.reply_to_message.forward_from_chat
if not chat_id:
return SendMessage(chat_id=message.chat.id,
- text="__Невозможно переслать сообщение: автор не найден__",
- parse_mode="Markdown")
+ text="Невозможно переслать сообщение: автор не найден",
+ parse_mode="HTML")
chat_id = int(chat_id)
try:
await message.copy_to(chat_id)
except (exceptions.MessageError, exceptions.BotBlocked):
- await message.reply("__Невозможно переслать сообщение (автор заблокировал бота?)__",
- parse_mode="Markdown")
+ await message.reply("Невозможно переслать сообщение (автор заблокировал бота?)",
+ parse_mode="HTML")
return
else:
await message.forward(super_chat_id)