PyBitmessage-2021-04-27/src/messagetypes/message.py

9 lines
225 B
Python
Raw Normal View History

class Message:
def __init__(self, data):
self.subject = data["subject"]
self.body = data["body"]
def process(self):
print "Subject: %s" % (self.subject)
print "Body: %s" % (self.body)