diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-26 13:11:10 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-26 13:11:10 +0300 |
commit | 1662a4421fecfdf03e68637e9a5969085644586e (patch) | |
tree | 49a22672b2440fbbdeae448ba0ffae15e42b6626 /include | |
parent | f05405db4308a5c419f15a3c9538e4c11e6c172a (diff) |
for #3964 - reply_id in Telegram, both for messages and files/pictures/etc
Diffstat (limited to 'include')
-rw-r--r-- | include/m_protosvc.h | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/include/m_protosvc.h b/include/m_protosvc.h index dcc7438b0d..67b3952cd3 100644 --- a/include/m_protosvc.h +++ b/include/m_protosvc.h @@ -724,21 +724,22 @@ struct PROTOFILERESUME // DB event: EVENTTYPE_MESSAGE, blob contains szMessage without 0 terminator
// Return 0 - success, other failure
-#define PREF_CREATEREAD 1 // create the database event with the 'read' flag set
-#define PREF_RTL 4 // 0.5+ addition: support for right-to-left messages
-#define PREF_SENT 16 // message will be created with the DBEF_SENT flag
-#define PREF_ENCRYPTED 32 // message is encrypted
-#define PREF_ENCRYPTED_STRONG 64// message is encrypted with verified key
+#define PREF_CREATEREAD 1 // create the database event with the 'read' flag set
+#define PREF_RTL 4 // 0.5+ addition: support for right-to-left messages
+#define PREF_SENT 16 // message will be created with the DBEF_SENT flag
+#define PREF_ENCRYPTED 32 // message is encrypted
+#define PREF_ENCRYPTED_STRONG 64 // message is encrypted with verified key
struct PROTORECVEVENT
{
- uint32_t flags; // combination of PREF_*
- uint32_t timestamp; // unix time
- char* szMessage; // message body in utf8
- LPARAM lParam; // extra space for the network level protocol module
- const char* szMsgId; // server message id, optional, should be NULL otherwise
- // ignored for protocols without PF4_SERVERMSGID in GetCaps()
- const char *szUserId; // user id, for group chats stored in the database
+ uint32_t flags; // combination of PREF_*
+ uint32_t timestamp; // unix time
+ char* szMessage; // message body in utf8
+ LPARAM lParam; // extra space for the network level protocol module
+ const char* szMsgId; // server message id, optional, should be NULL otherwise
+ // ignored for protocols without PF4_SERVERMSGID in GetCaps()
+ const char *szUserId; // user id, for group chats stored in the database
+ const char *szReplyId; // this message is a reply to a message with that server id
};
///////////////////////////////////////////////////////////////////////////////
@@ -781,14 +782,15 @@ EXTERN_C MIR_APP_DLL(MEVENT) Proto_AuthRecv(const char *szProtoName, PROTORECVEV struct PROTORECVFILE
{
- uint32_t dwFlags; // PRFF_*
- uint32_t timestamp; // unix time
- MAllCStrings descr; // file description
- int fileCount; // number of files being transferred
- MAllCStringArray files; // array of file names
- LPARAM lParam; // extra space for the network level protocol module
- const char *szId; // server message id
- const char *szUserId; // groupchat user id
+ uint32_t dwFlags; // PRFF_*
+ uint32_t timestamp; // unix time
+ MAllCStrings descr; // file description
+ int fileCount; // number of files being transferred
+ MAllCStringArray files; // array of file names
+ LPARAM lParam; // extra space for the network level protocol module
+ const char *szId; // server message id
+ const char *szUserId; // groupchat user id
+ const char *szReplyId; // this message is a reply to a message with that server id
};
#define PSR_FILE "/RecvFile"
|