summaryrefslogtreecommitdiff
path: root/plugins/ExternalAPI
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-09-18 18:14:53 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-09-18 18:14:53 +0300
commit78c5dd9a8648dba7ca09f59b4b7460610c6ff3a6 (patch)
tree0a49a7e53e8ba05f501f46dd6ed36e355b49158b /plugins/ExternalAPI
parent41e677d44f0efc241bf484252af6de64b0d00a6c (diff)
Telegram: ability to add custom chat reactions using NewHistory
Diffstat (limited to 'plugins/ExternalAPI')
-rw-r--r--plugins/ExternalAPI/m_NewStory.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/ExternalAPI/m_NewStory.h b/plugins/ExternalAPI/m_NewStory.h
index 309ac45d60..ad6c7583a9 100644
--- a/plugins/ExternalAPI/m_NewStory.h
+++ b/plugins/ExternalAPI/m_NewStory.h
@@ -3,6 +3,16 @@
#include <vector>
/////////////////////////////////////////////////////////////////////////////////////////
+// NS get current event
+
+#define MS_NEWSTORY_GETCURRENT "NewStory/GetCurrent"
+
+__forceinline MEVENT NS_GetCurrent(HANDLE hwnd)
+{
+ return (MEVENT)CallService(MS_NEWSTORY_GETCURRENT, WPARAM(hwnd), 0);
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
// NS get selection
#define MS_NEWSTORY_GETSELECTION "NewStory/GetSelection"