|
-
-
-
- from enum import Enum
-
- class ReplyType(Enum):
- TEXT = 1
- VOICE = 2
- IMAGE = 3
- IMAGE_URL = 4
-
- INFO = 9
- ERROR = 10
- def __str__(self):
- return self.name
-
- class Reply:
- def __init__(self, type : ReplyType = None , content = None):
- self.type = type
- self.content = content
- def __str__(self):
- return "Reply(type={}, content={})".format(self.type, self.content)
|