diff options
author | Stavros Korokithakis <hi@stavros.io> | 2018-12-10 04:57:03 +0200 |
---|---|---|
committer | Stavros Korokithakis <hi@stavros.io> | 2018-12-10 04:57:03 +0200 |
commit | 2bdce115eea41b00c31c64e47d388decc4766fe7 (patch) | |
tree | bb5c6c56a2aa39e183a17189596ecf8abe968468 /signald/types.py | |
parent | 0aca0ae50a7336c705a92f2444d6fcd1b3e283e9 (diff) | |
download | pysignald-2bdce115eea41b00c31c64e47d388decc4766fe7.tar.gz pysignald-2bdce115eea41b00c31c64e47d388decc4766fe7.zip |
Add bot interface
Diffstat (limited to 'signald/types.py')
-rw-r--r-- | signald/types.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/signald/types.py b/signald/types.py index 75cdcbd..b1c4b51 100644 --- a/signald/types.py +++ b/signald/types.py @@ -13,10 +13,11 @@ class Attachment: class Message: username = attr.ib(type=str) source = attr.ib(type=str) - message = attr.ib(type=str) + text = attr.ib(type=str) source_device = attr.ib(type=int, default=0) timestamp = attr.ib(type=int, default=None) timestamp_iso = attr.ib(type=str, default=None) expiration_secs = attr.ib(type=int, default=0) + is_receipt = attr.ib(type=bool, default=False) attachments = attr.ib(type=list, default=[]) quote = attr.ib(type=str, default=None) |