Fix syntax error

This commit is contained in:
Alex Root Junior 2020-09-13 22:27:50 +03:00
parent 0cc6a2c8f6
commit 7d1c8c42d3

View file

@ -245,8 +245,8 @@ class Message(base.TelegramObject):
:return: str
"""
if self.chat.type == ChatType.PRIVATE:
raise TypeError('Invalid chat type
if ChatType.is_private(self.chat):
raise TypeError("Invalid chat type!")
url = "https://t.me/"
if self.chat.username:
# Generates public link