diff options
Diffstat (limited to 'protocols/Telegram/src/server.cpp')
-rw-r--r-- | protocols/Telegram/src/server.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp index 403d2f390c..d33a605ba9 100644 --- a/protocols/Telegram/src/server.cpp +++ b/protocols/Telegram/src/server.cpp @@ -137,6 +137,10 @@ void CTelegramProto::ProcessResponse(td::ClientManager::Response response) }
switch (response.object->get_id()) {
+ case TD::updateActiveEmojiReactions::ID:
+ ProcessActiveEmoji((TD::updateActiveEmojiReactions *)response.object.get());
+ break;
+
case TD::updateAuthorizationState::ID:
ProcessAuth((TD::updateAuthorizationState *)response.object.get());
break;
@@ -580,6 +584,16 @@ void CTelegramProto::ProcessConnectionState(TD::updateConnectionState *pObj) }
}
+void CTelegramProto::ProcessActiveEmoji(TD::updateActiveEmojiReactions *pObj)
+{
+ m_defaultEmoji.Empty();
+
+ for (auto &it : pObj->emojis_)
+ m_defaultEmoji.AppendFormat("%s ", it.c_str());
+
+ m_defaultEmoji.TrimRight();
+}
+
void CTelegramProto::ProcessDeleteMessage(TD::updateDeleteMessages *pObj)
{
if (!pObj->is_permanent_)
|