mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Replace deprecated 'is_private' method (#553)
This commit is contained in:
parent
69e4ecc606
commit
df294e579f
1 changed files with 2 additions and 1 deletions
|
|
@ -267,7 +267,8 @@ class Message(base.TelegramObject):
|
|||
|
||||
:return: str
|
||||
"""
|
||||
if ChatType.is_private(self.chat):
|
||||
|
||||
if self.chat.type == ChatType.PRIVATE:
|
||||
raise TypeError("Invalid chat type!")
|
||||
url = "https://t.me/"
|
||||
if self.chat.username:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue