From b0d4bc6f276dd7e786ddfba1f63aff985d33b846 Mon Sep 17 00:00:00 2001 From: mihalin Date: Thu, 30 Jun 2022 01:10:18 +0300 Subject: [PATCH] no removeprefix method --- olgram/commands/admin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/olgram/commands/admin.py b/olgram/commands/admin.py index 0dd689a..2a51e3f 100644 --- a/olgram/commands/admin.py +++ b/olgram/commands/admin.py @@ -27,7 +27,7 @@ async def notify(message: types.Message, state: FSMContext): await message.answer(_("Нужно указать имя бота")) return - bot = await models.Bot.filter(name=bot_name.removeprefix("@")).first() + bot = await models.Bot.filter(name=bot_name.replace("@", "")).first() if not bot: await message.answer(_("Такого бота нет в системе"))