Commit graph

71 commits

Author SHA1 Message Date
b1f0b94ba3 Add .clang-format and reformat all sources. 2020-11-30 15:14:05 +03:00
0c71edab8b Switch to C++17.
Update dependencies.
Rewrite tests to use Catch2 library.
Add CMake option to use LLVM libc++.
Delete bootstrap theme for Doxygen.
2020-11-30 14:12:21 +03:00
ad2290eca5 Update C++ Requests and RapidJSON. 2020-02-09 02:13:41 +03:00
26f04f5732 Fixed Boost version. 2017-02-19 18:03:42 +03:00
910684a08b Fix addon specification.
Reduced build matrix.
2017-02-19 17:39:25 +03:00
54ded921ae Fixed Travis config (add Boost 1.58 from PPA). 2017-02-19 17:24:40 +03:00
9a607eef8c Used boost::optional for optional fields.
Updates and attachments hierarchy replaced with Union-like classes.
Changes in JSON parsing for RVO/move-semantics.
2017-02-19 16:09:13 +03:00
79ea1a08a1 Changed Updates hierarchy.
ChannelPost and EditedChannelPost now supported.
2017-02-16 21:48:22 +03:00
014411a8a3 Used boost::variant in Union-like classes. 2017-02-16 00:57:05 +03:00
ea28b547eb Created macro for simple named param classes declaration and definition. 2017-02-15 21:43:18 +03:00
592751a50c Source code reformated. 2017-02-15 20:22:18 +03:00
81bb25f4fe Fixed Clang warning. 2017-02-15 18:49:11 +03:00
9280a6dfbc Fixed test make target. 2016-11-26 15:30:49 +03:00
607647cb25 Fixed building instructions 2016-11-26 15:33:19 +04:00
a20cbee5a6 Fixed invalid configure command for Travis CI. 2016-11-26 03:03:59 +03:00
f995e59423 Added CMake function RequireCXX14().
Fixed double compiler flags.
2016-11-26 03:01:12 +03:00
f635883351 Removed hardcoded build paths.
Type of libraries changed to static.
2016-11-26 02:10:29 +03:00
b80facba72 Fixed build on Gentoo. 2016-11-25 18:52:27 +03:00
7599c99113 Added examples of sending photos 2016-11-13 00:52:27 +04:00
b56eb9e71b Added Usage section 2016-11-12 03:13:22 +04:00
0315344af0 Added Boost to requirements list. 2016-11-12 02:42:51 +04:00
adb0630961 Rewritten sendPhoto functions, which are now variadic templated. 2016-11-12 01:37:33 +03:00
d5e6a89cad Updated C++ Requests. 2016-11-11 16:43:46 +03:00
d9216391ae Fixed previous commit. 2016-11-10 20:44:50 +03:00
2ed1d34926 Rewritten sendMessage function, which is now variadic templated.
Added Boost dependency (for Boost.Optional).
2016-11-10 20:37:29 +03:00
9da2b2966e getUpdates() implemented. 2016-11-09 20:28:06 +03:00
5c1f3a3dd0 Removed declarations of functions which are used only internally in JsonObjects.cpp. 2016-11-09 20:25:06 +03:00
ff8f9a2e74 BotApi::send* now return Message, recieved from server. 2016-11-09 20:16:11 +03:00
2861dc5dff parseResponse() renamed to checkResponse and is now void. 2016-11-09 20:03:29 +03:00
90d2c2dc96 Full constructor removed from class User.
User::toString() implemented.
operator<< (User) implemented.
2016-11-09 19:44:19 +03:00
0e896f7066 Added swap function for PhotoSizeArray. 2016-11-09 15:28:10 +03:00
bec2705dc2 Fixed Message::swap(). 2016-11-09 15:27:09 +03:00
6cb17ac538 Class Message implemented.
Fixed class Chat (type of id changed to std::int64_t).
Class PhotoSizeArray implemented.
JSON-parsing functions were rewritten and moved to JsonObjects.cpp.
Implemented new JSON-parsing functions.
2016-11-09 01:40:05 +03:00
fd98bb70fe Fixed compiler flags. 2016-11-08 14:53:19 +03:00
a4654b8b23 Sending photo by URL implemented. 2016-11-08 14:29:40 +03:00
d5fce8062a Classes Attachment, PhotoSize, Audio, Document and Sticker implemented. 2016-10-15 01:55:17 +03:00
10dda01a61 Class Chat implemented. 2016-10-14 23:48:02 +03:00
ccc54c397a Fixed title of submodule. 2016-10-05 14:55:38 +04:00
6cb2d3da93 Added Travis CI status. 2016-10-05 14:50:24 +04:00
566a241c3b Added installation of dependencies. 2016-10-05 13:26:11 +03:00
5d4e931726 Fixed .travis.yml. 2016-10-04 15:42:57 +03:00
edb73fdb2d Compiler changed to clang. 2016-10-04 15:23:28 +03:00
adff6aff21 Added export CC, CXX. 2016-10-04 15:04:03 +03:00
b3579eed8b Added libboost-system-dev dependency. 2016-10-04 14:07:48 +03:00
0d517cdb61 Removed version limit from Boost dependency. 2016-10-04 14:03:20 +03:00
d98df8b761 Removed unused packages. 2016-10-04 13:56:43 +03:00
f42f38b894 Fixed .travis.yml. 2016-10-04 13:52:22 +03:00
af459ddcc1 Added .travis.yml. 2016-10-04 13:45:10 +03:00
369a23b983 Fixed typo. 2016-10-04 03:55:31 +03:00
12a8e3e047 Deleted set CMAKE_MODULE_PATH 2016-10-04 03:39:08 +04:00