Skip to content

Commit 39f7a8f

Browse files
authored
Merge pull request #347 from BloodRedTape/bloodredtape/fix-allowed-updates
Fix allowed updates json building
2 parents a649622 + c980595 commit 39f7a8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Api.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ std::vector<Update::Ptr> Api::getUpdates(std::int32_t offset,
2828
if (allowedUpdates != nullptr) {
2929
std::string allowedUpdatesJson = _tgTypeParser.parseArray<std::string>(
3030
[] (const std::string& s)->std::string {
31-
return s;
31+
return '"' + s + '"';
3232
}, *allowedUpdates);
3333
args.emplace_back("allowed_updates", allowedUpdatesJson);
3434
}

0 commit comments

Comments
 (0)