From d53626ef2eba52b0fbc5a29e73ad444973a9b39d Mon Sep 17 00:00:00 2001 From: Oleg A Date: Mon, 20 Jun 2022 17:52:46 +0300 Subject: [PATCH] fix: use f-string to get correct type for mandatory field --- aiogram/types/chat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/types/chat.py b/aiogram/types/chat.py index a47fbb99..fe71e0c7 100644 --- a/aiogram/types/chat.py +++ b/aiogram/types/chat.py @@ -89,7 +89,7 @@ class Chat(TelegramObject): if self.last_name is not None: return f"{self.first_name} {self.last_name}" - return self.first_name + return f"{self.first_name}" def ban_sender_chat(self, sender_chat_id: int) -> BanChatSenderChat: from ..methods import BanChatSenderChat