Don't store empty chat_type.

main
levlam 5 years ago
parent b71e66003e
commit efaf601e85

@ -1941,8 +1941,10 @@ class Client::JsonInlineQuery : public Jsonable {
return ""; return "";
} }
}(); }();
if (chat_type[0] != '\0') {
object("chat_type", chat_type); object("chat_type", chat_type);
} }
}
object("query", query_); object("query", query_);
object("offset", offset_); object("offset", offset_);
} }

Loading…
Cancel
Save