mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Change get_url typing to Optional[str]
This commit is contained in:
parent
4b1188669c
commit
56c5c20241
1 changed files with 1 additions and 1 deletions
|
|
@ -1714,7 +1714,7 @@ class Message(TelegramObject):
|
|||
reply_markup=reply_markup,
|
||||
)
|
||||
|
||||
def get_url(self, force_private: bool = False) -> str:
|
||||
def get_url(self, force_private: bool = False) -> Optional[str]:
|
||||
"""
|
||||
Returns message URL. Cannot be used in private (one-to-one) chats.
|
||||
If chat has a username, returns URL like https://t.me/username/message_id
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue