diff options
author | vvaltman <vvaltman@neon> | 2015-05-05 12:48:36 +0300 |
---|---|---|
committer | vvaltman <vvaltman@neon> | 2015-05-05 12:48:36 +0300 |
commit | a4588778f998d0f27fb7e342a84b2b4ab56274dc (patch) | |
tree | 674c2afe81dbfe42187679af18bb7f2f5a2e0e6c /tgl-layout.h | |
parent | 0c663f5b888bafc13c9e8cd399945b63ada678c9 (diff) |
support for photos caption
Diffstat (limited to 'tgl-layout.h')
-rw-r--r-- | tgl-layout.h | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tgl-layout.h b/tgl-layout.h index 7d84099..970c4c9 100644 --- a/tgl-layout.h +++ b/tgl-layout.h @@ -444,10 +444,14 @@ struct tgl_webpage { struct tgl_message_media { enum tgl_message_media_type type; union { - struct tgl_photo *photo; - //struct tgl_video video; - //struct tgl_audio audio; - struct tgl_document *document; + struct { + union { + struct tgl_photo *photo; + struct tgl_document *document; + }; + char *caption; + }; + struct tgl_encr_document *encr_document; struct tgl_webpage *webpage; |