mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix syntax error
This commit is contained in:
parent
0cc6a2c8f6
commit
7d1c8c42d3
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue