diff options
author | kukin-konstantin <kukin.konstantin@gmail.com> | 2017-03-20 18:43:36 +0300 |
---|---|---|
committer | kukin-konstantin <kukin.konstantin@gmail.com> | 2017-03-20 18:55:09 +0300 |
commit | b68611144a92b266ab20b7db8fbce723bb499b70 (patch) | |
tree | e5573aaf74443c0542ed684ce5bdadf265e35858 /src/Api.cpp | |
parent | 1c7d4c17062644d28f485b0ff6cbc213e975ac29 (diff) |
fix errors
Diffstat (limited to 'src/Api.cpp')
-rw-r--r-- | src/Api.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Api.cpp b/src/Api.cpp index 984deb5..6fd86c2 100644 --- a/src/Api.cpp +++ b/src/Api.cpp @@ -310,7 +310,7 @@ Message::Ptr Api::sendVoice(int64_t chatId, const InputFile::Ptr voice, const st if (disableNotification){ args.push_back(HttpReqArg("disable_notification", disableNotification)); } - return TgTypeParser::getInstance().parseJsonAndGetMessage(sendRequest("sendVideo", args)); + return TgTypeParser::getInstance().parseJsonAndGetMessage(sendRequest("sendVoice", args)); } Message::Ptr Api::sendVoice(int64_t chatId, const std::string& voiceId, const std::string &caption, int duration, int32_t replyToMessageId, const GenericReply::Ptr replyMarkup, bool disableNotification) const { @@ -410,7 +410,7 @@ UserProfilePhotos::Ptr Api::getUserProfilePhotos(int32_t userId, int32_t offset, return TgTypeParser::getInstance().parseJsonAndGetUserProfilePhotos(sendRequest("getUserProfilePhotos", args)); } -File::Ptr Api::getFile(int32_t fileId) const +File::Ptr Api::getFile(const std::string &fileId) const { vector<HttpReqArg> args; args.push_back(HttpReqArg("file_id", fileId)); |