diff options
author | V V <vvaltman@aurum> | 2015-09-25 18:24:16 +0300 |
---|---|---|
committer | V V <vvaltman@aurum> | 2015-09-25 18:24:16 +0300 |
commit | ca9054502bc84f3e1eefa4c6169b7b13f3712dea (patch) | |
tree | 10e360b76bdf4c42a8f65fe0dce2f3ced945afeb /tgl-layout.h | |
parent | 418f81be448fdebb04c3809795f8c160ee13280c (diff) |
tgl: try to add partial channel support
Diffstat (limited to 'tgl-layout.h')
-rw-r--r-- | tgl-layout.h | 35 |
1 files changed, 31 insertions, 4 deletions
diff --git a/tgl-layout.h b/tgl-layout.h index 7ccabf2..eac880a 100644 --- a/tgl-layout.h +++ b/tgl-layout.h @@ -37,6 +37,7 @@ #define TGLMF_EMPTY (1 << 12) #define TGLMF_SERVICE (1 << 13) #define TGLMF_SESSION_OUTBOUND (1 << 14) +#define TGLMF_POST_AS_CHANNEL (1 << 8) #define TGLMF_CREATE 0x10000 @@ -173,7 +174,8 @@ enum tgl_message_action_type { tgl_message_action_commit_key, tgl_message_action_abort_key, tgl_message_action_request_key, - tgl_message_action_accept_key + tgl_message_action_accept_key, + tgl_message_action_channel_create }; enum tgl_typing_status { @@ -215,10 +217,10 @@ struct tgl_photo { long long id; long long access_hash; int refcnt; - int user_id; + //int user_id; int date; char *caption; - struct tgl_geo geo; + //struct tgl_geo geo; int sizes_num; struct tgl_photo_size *sizes; }; @@ -287,6 +289,30 @@ struct tgl_user { struct tgl_bot_info *bot_info; }; +struct tgl_channel { + tgl_peer_id_t id; + int flags; + struct tgl_message *last; + char *print_title; + int structure_version; + struct tgl_file_location photo_big; + struct tgl_file_location photo_small; + int last_read_in; + int last_read_out; + long long photo_id; + struct tgl_photo *photo; + + long long access_hash; + int date; + char *title; + char *username; + int version; + char *about; + int participants_count; + int admins_count; + int kicked_count; +}; + struct tgl_chat_user { int user_id; int inviter_id; @@ -375,6 +401,7 @@ typedef union tgl_peer { }; struct tgl_user user; struct tgl_chat chat; + struct tgl_channel channel; struct tgl_secret_chat encr_chat; } tgl_peer_t; /* @@ -408,7 +435,7 @@ struct tgl_document { long long id; long long access_hash; int refcnt; - int user_id; + //int user_id; int date; int size; int dc_id; |