From 78c5dd9a8648dba7ca09f59b4b7460610c6ff3a6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 18 Sep 2023 18:14:53 +0300 Subject: Telegram: ability to add custom chat reactions using NewHistory --- plugins/ExternalAPI/m_NewStory.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'plugins/ExternalAPI') 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 @@ -2,6 +2,16 @@ #include +///////////////////////////////////////////////////////////////////////////////////////// +// 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 -- cgit v1.2.3