Telegram-Custom-Artwork-Api/defs.py

7 lines
240 B
Python
Raw Normal View History

2022-09-25 14:08:06 +00:00
class Music:
2022-09-25 14:45:27 +00:00
def __init__(self, name: str, album: str, artist: str = ""):
2022-09-25 14:08:06 +00:00
self.name = name
self.album = album
2022-09-25 14:45:27 +00:00
self.artist = artist
self.name = f"{self.artist} - {self.name}" if self.artist else self.name