mirror of
				https://github.com/civsocit/olgram.git
				synced 2025-10-30 02:43:24 +00:00 
			
		
		
		
	no removeprefix method
This commit is contained in:
		
							parent
							
								
									55e99becd0
								
							
						
					
					
						commit
						b0d4bc6f27
					
				|  | @ -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(_("Такого бота нет в системе")) | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user