summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOleg Morozenkov <m@oleg.rocks>2019-12-05 02:07:08 +0300
committerGitHub <noreply@github.com>2019-12-05 02:07:08 +0300
commit99b337b65cc6727f51c1d26aac17f01c318c38d6 (patch)
treea4254770416e89b2afb4cd0040f29faa83c7a9e2
parent2978ae35b63eb57d367794e4ac6fd6f492373171 (diff)
Update README.md
-rw-r--r--README.md22
1 files changed, 5 insertions, 17 deletions
diff --git a/README.md b/README.md
index ad7ab16..3cf9d10 100644
--- a/README.md
+++ b/README.md
@@ -69,11 +69,8 @@ make -j4
sudo make install
```
-Or you can treat this repository as a submodule of your project, for example, see [echobot-submodule](samples/echobot-submodule/CMakeLists.txt)
+You can treat this repository as a submodule of your project, for example, see [echobot-submodule](samples/echobot-submodule/CMakeLists.txt)
-## Specific library installation notes
-
-### Docker
You can use Docker to build and run your bot. Set the base image of your's Dockerfile to [reo7sp/tgbot-cpp](https://hub.docker.com/r/reo7sp/tgbot-cpp/).
@@ -87,20 +84,11 @@ You can use Docker to build and run your bot. Set the base image of your's Docke
g++ telegram_bot.cpp -o telegram_bot --std=c++11 -I/usr/local/include -lTgBot -lboost_system -lssl -lcrypto -lpthread
```
-### Options available when compiling bot
-
-#### With CMake
-```
-add_definitions(-DTGBOT_DISABLE_NAGLES_ALGORITHM) # Disable 'Nagle's algorithm'
-add_definitions(-DTGBOT_CHANGE_SOCKET_BUFFER_SIZE) # Socket Buffer Size Expansion
-add_definitions(-DTGBOT_CHANGE_READ_BUFFER_SIZE) # Read Buffer Size Expansion
-```
-
-#### Without CMake
+### Build options
```
--DTGBOT_DISABLE_NAGLES_ALGORITHM
--DTGBOT_CHANGE_SOCKET_BUFFER_SIZE
--DTGBOT_CHANGE_READ_BUFFER_SIZE
+-DTGBOT_DISABLE_NAGLES_ALGORITHM # Disable 'Nagle's algorithm'
+-DTGBOT_CHANGE_SOCKET_BUFFER_SIZE # Socket Buffer Size Expansion
+-DTGBOT_CHANGE_READ_BUFFER_SIZE # Read Buffer Size Expansion
```