diff options
| author | George Hazan <george.hazan@gmail.com> | 2025-05-28 14:09:09 +0300 |
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2025-05-28 14:09:09 +0300 |
| commit | e03a74ebbe45017423275277ceac380fdfc44919 (patch) | |
| tree | f459ac60966dbb36b3d1794e861d5fbb006c6c35 | |
| parent | 5f60625fec3342eb530f4e8f6bf4c6bba76a9dd6 (diff) | |
fixes #5033 (Telegram: исходящие звуковые файлы рассматриваются как голосовые сообщения)
| -rw-r--r-- | protocols/Telegram/src/proto.cpp | 4 |
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); |
