diff --git a/aiogram/types/chat.py b/aiogram/types/chat.py index 1792613c..3f0c4e10 100644 --- a/aiogram/types/chat.py +++ b/aiogram/types/chat.py @@ -70,6 +70,8 @@ class Chat(base.TelegramObject): For example: -1001122334455 -> 1122334455 """ + if self.type == ChatType.PRIVATE: + raise TypeError('`shifted_id` property is not available for private chats') shift = -1000000000000 return shift - self.id