From 54525fb9e5cf0e84389f61be2a1de1f6bfc01716 Mon Sep 17 00:00:00 2001 From: asapelkin Date: Mon, 16 Jan 2017 14:19:19 +0400 Subject: Little typo Little typo fixed. "sendVideo" instead "sendVoice". --- src/Api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Api.cpp') diff --git a/src/Api.cpp b/src/Api.cpp index 361b4d6..55d61c2 100644 --- a/src/Api.cpp +++ b/src/Api.cpp @@ -332,7 +332,7 @@ Message::Ptr Api::sendVoice(int64_t chatId, const std::string& voiceId, 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::sendLocation(int64_t chatId, float latitude, float longitude, int32_t replyToMessageId, const GenericReply::Ptr& replyMarkup, bool disableNotification) const { -- cgit v1.2.3