You've already forked Curso-lenguaje-python
Add movies trivial Bot for Telegram
This commit is contained in:
16
catch-all/06_bots_telegram/07_movie2_bot/movie/Movie.py
Normal file
16
catch-all/06_bots_telegram/07_movie2_bot/movie/Movie.py
Normal file
@@ -0,0 +1,16 @@
|
||||
from abc import ABC, abstractmethod
|
||||
|
||||
|
||||
class Movie(ABC):
|
||||
|
||||
id = 0
|
||||
name = ''
|
||||
type = ''
|
||||
|
||||
@abstractmethod
|
||||
def __init__(self, name):
|
||||
self.name = name
|
||||
self.type = None
|
||||
|
||||
def get_name(self):
|
||||
return self.name
|
||||
8
catch-all/06_bots_telegram/07_movie2_bot/movie/Pop.py
Normal file
8
catch-all/06_bots_telegram/07_movie2_bot/movie/Pop.py
Normal file
@@ -0,0 +1,8 @@
|
||||
from movie.Movie import Movie
|
||||
|
||||
|
||||
class Pop(Movie):
|
||||
|
||||
def __init__(self):
|
||||
super(Pop, self).__init__(name='Pop Movie')
|
||||
self.type = "pop"
|
||||
@@ -0,0 +1,2 @@
|
||||
from movie.Movie import Movie
|
||||
from movie.Pop import Pop
|
||||
Reference in New Issue
Block a user