Commit graph

42 commits

Author SHA1 Message Date
aa5c220a75 Merge branch 'dev' into inline_keyboard 2020-11-30 16:45:06 +03:00
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
4c15e4c8de Added InlineKeyboard support for sendPhoto request. 2017-02-19 20:21:59 +03:00
c24136c461 Merge branch 'dev' into inline_keyboard
Conflicts:
	src/RequestOptions.cpp
2017-02-19 18:15:32 +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
fd4589fe52 Fixed compiler error (missing assignment operator for class). 2017-02-16 20:38:03 +03:00
299dced3dc InlineKeyboardMarkup test support. 2017-02-16 02:10:41 +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
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
adb0630961 Rewritten sendPhoto functions, which are now variadic templated. 2016-11-12 01:37:33 +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
5eb0d10909 Add support for parse mode in messages. 2016-10-02 19:14:14 +03:00
bb59c65848 Removed Boost.Log dependency. 2016-10-02 02:37:35 +03:00
6438fb8a8b curlpp replaced by Curl for People. 2016-10-01 00:33:11 +03:00
544b2d1512 Disabled default 'Expect: 100-Continue' header in POST requests. 2016-09-30 22:00:12 +03:00
1e43989b77 JSON-parsing functions moved to namespace telebotxx. 2016-09-30 00:46:33 +03:00
34f110bcb6 Send photo implemented. 2016-09-27 00:49:07 +03:00
f58208f864 Basic response parsing implemented.
Fixed typo.
2016-09-26 23:07:14 +03:00
96394c3e0d Unnecessary move-assignment operator removed. 2016-09-26 20:57:36 +03:00
83d330f47a Class User implemented. 2016-09-26 19:17:07 +03:00
45cefdcd73 BotApi::Impl member functions inlined. 2016-09-26 14:26:14 +03:00
e8e7f9b5bd Class BotApi transformed according to PIMPL idiom. 2016-09-26 14:13:51 +03:00
2bd4fc839f Initial commit. 2016-09-26 00:07:49 +03:00