From 4d9037612bcb9648d8f515e3033bf2c7c6fe5f00 Mon Sep 17 00:00:00 2001 From: monosans Date: Thu, 9 Jan 2025 19:29:03 +0300 Subject: [PATCH] fix: don't require Downloadable.file_id to be writable --- aiogram/types/downloadable.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aiogram/types/downloadable.py b/aiogram/types/downloadable.py index be808293..080caf64 100644 --- a/aiogram/types/downloadable.py +++ b/aiogram/types/downloadable.py @@ -2,4 +2,5 @@ from typing import Protocol class Downloadable(Protocol): - file_id: str + @property + def file_id(self) -> str: ...