async def _send_to_admin_chat(bot:Bot, text:str, **kwargs) -> bool: """ This will try to send a notification or text to a admin account or a nofication group / channel based on admin wants. """ chat_id = settings.bot.notification_chat_id if not chat_id: RanaLogger.warning("I should to have chat id to send to admin chat") return False try: await bot.send_message(chat_id=chat_id, text=text, **kwargs) return True except TelegramError as e: RanaLogger.warning(f"Notification for admin chatFailed, {e}") return False