summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/server.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-07-26 19:07:28 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-07-26 19:07:28 +0300
commit4c9b4fd15432c70cb913e5f6a7afed21be0d0edb (patch)
treedc51313f04b4c009c0134cf63fe17c6d001d03c2 /protocols/Telegram/src/server.cpp
parent91e4125bbc27bd0b4b3adcfba35829a9380946ae (diff)
we not to generate zero message ids
Diffstat (limited to 'protocols/Telegram/src/server.cpp')
-rw-r--r--protocols/Telegram/src/server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Telegram/src/server.cpp b/protocols/Telegram/src/server.cpp
index 7241123e9b..4226d8a413 100644
--- a/protocols/Telegram/src/server.cpp
+++ b/protocols/Telegram/src/server.cpp
@@ -258,7 +258,7 @@ void CTelegramProto::OnSendMessage(td::ClientManager::Response &response, void *
int CTelegramProto::SendTextMessage(int64_t chatId, const char *pszMessage)
{
- int ret = m_iMsgId++;
+ int ret = ++m_iMsgId;
auto pContent = TD::make_object<TD::inputMessageText>();
pContent->text_ = TD::make_object<TD::formattedText>();