mirror of
https://github.com/civsocit/olgram.git
synced 2025-12-16 09:26:17 +00:00
no removeprefix method
This commit is contained in:
@@ -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(_("Такого бота нет в системе"))
|
||||
|
||||
Reference in New Issue
Block a user