summaryrefslogtreecommitdiff
path: root/protocols/Telegram/src/utils.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-29 20:23:00 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-29 20:23:00 +0300
commitf667c9138be6ebb88972501c553384ab46c19a6d (patch)
treeef5a458559e1868ab07ee86f9dc35428b4ffb82f /protocols/Telegram/src/utils.h
parent79e717d8e8afe090495da64477b670f7b6434544 (diff)
Telegram: message ids are unique only inside the same chat, not globally
Diffstat (limited to 'protocols/Telegram/src/utils.h')
-rw-r--r--protocols/Telegram/src/utils.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/protocols/Telegram/src/utils.h b/protocols/Telegram/src/utils.h
index d924a4a137..1af5f4ee4c 100644
--- a/protocols/Telegram/src/utils.h
+++ b/protocols/Telegram/src/utils.h
@@ -7,3 +7,6 @@ TD::object_ptr<TD::inputFileLocal> makeFile(const wchar_t *pwszFilename);
TD::object_ptr<TD::formattedText> formatBbcodes(const char *pszText);
TG_FILE_REQUEST::Type AutoDetectType(const wchar_t *pwszFilename);
+
+CMStringA msg2id(const TD::message *pMsg);
+CMStringA msg2id(TD::int53 chatId, TD::int53 msgId);