diff options
author | George Hazan <george.hazan@gmail.com> | 2025-02-22 13:47:34 +0200 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2025-02-22 13:47:34 +0200 |
commit | a05ef89b2b702ba075a5de5ba9a82d7bb08e0e6b (patch) | |
tree | ba107f797da213dd7df291603c6a08d21e7e92e6 /protocols/Telegram/src/proto.cpp | |
parent | 9eecc9f22473c075247770a3958fa443dab23813 (diff) |
Telegram: message editing doesn't work
Diffstat (limited to 'protocols/Telegram/src/proto.cpp')
-rw-r--r-- | protocols/Telegram/src/proto.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp index c4042f1d52..40f7f166d6 100644 --- a/protocols/Telegram/src/proto.cpp +++ b/protocols/Telegram/src/proto.cpp @@ -273,9 +273,9 @@ void CTelegramProto::OnEventEdited(MCONTACT hContact, MEVENT, const DBEVENTINFO return; if (dbei.szId && dbei.cbBlob && dbei.pBlob && dbei.eventType == EVENTTYPE_MESSAGE) { - auto text = formatBbcodes((char*)dbei.pBlob); - // auto content = TD::make_object<TD::inputMessageText>(std::move(text), 0, false); - // SendQuery(new TD::editMessageText(pUser->chatId, dbei2id(dbei), 0, std::move(content))); + auto content = TD::make_object<TD::inputMessageText>(); + content->text_ = formatBbcodes((char *)dbei.pBlob); + SendQuery(new TD::editMessageText(pUser->chatId, dbei2id(dbei), 0, std::move(content))); } } |