code: def url(self) -> str:
          
          if self.chat.type not in [ChatType.SUPER_GROUP, ChatType.CHANNEL]:
              raise TypeError('Invalid chat type!')
          elif not self.chat.username:
              raise TypeError('This chat does not have @username')
  
          return f"https://t.me/{self.chat.username}/{self.message_id}"
docs: Get URL for the message
  
          :return: str