summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-05-28 14:09:09 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-05-28 14:09:09 +0300
commite03a74ebbe45017423275277ceac380fdfc44919 (patch)
treef459ac60966dbb36b3d1794e861d5fbb006c6c35
parent5f60625fec3342eb530f4e8f6bf4c6bba76a9dd6 (diff)
fixes #5033 (Telegram: исходящие звуковые файлы рассматриваются как голосовые сообщения)
-rw-r--r--protocols/Telegram/src/proto.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Telegram/src/proto.cpp b/protocols/Telegram/src/proto.cpp
index a420a65122..97c3e44a01 100644
--- a/protocols/Telegram/src/proto.cpp
+++ b/protocols/Telegram/src/proto.cpp
@@ -615,8 +615,8 @@ HANDLE CTelegramProto::SendFile(MCONTACT hContact, const wchar_t *szDescription,
pPart = std::move(pContent);
}
else if (iFileType == TG_FILE_REQUEST::VOICE) {
- auto pContent = TD::make_object<TD::inputMessageVoiceNote>();
- pContent->voice_note_ = makeFile(it->pwszName);
+ auto pContent = TD::make_object<TD::inputMessageAudio>();
+ pContent->audio_ = makeFile(it->pwszName);
pContent->caption_ = std::move(caption);
pContent->duration_ = 0;
pPart = std::move(pContent);