diff options
author | Oleg Morozenkov <omorozenkov@gmail.com> | 2018-06-05 19:06:23 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-05 19:06:23 +0300 |
commit | 1a90b5022d47bc0059214381b74db6fae9767cef (patch) | |
tree | f88e480700cb36f8acdcfdebcbac01328f16c98d /README.md | |
parent | 381a1cd0d949db88abd0b28bc717a8690b93ccc0 (diff) | |
parent | 0f4e792a641527aa590a1a9e23bdaad2f16ab6bc (diff) |
Merge pull request #63 from JellyBrick/master
Bot API 2.2 (Game) update / Add optimization option
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -52,6 +52,22 @@ sudo make install 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 +``` +-DTGBOT_DISABLE_NAGLES_ALGORITHM +-DTGBOT_CHANGE_SOCKET_BUFFER_SIZE +-DTGBOT_CHANGE_READ_BUFFER_SIZE +``` + ### Also 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/). |