fix: use f-string to get correct type for mandatory field

This commit is contained in:
Oleg A 2022-06-20 17:52:46 +03:00
parent 86d3dfe81f
commit d53626ef2e
No known key found for this signature in database
GPG key ID: 5FE046817A9657C5

View file

@ -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