personal assistant telegram bot
- TgBot
- Boost
- OpenSSL
- fmt
- Zlib
- cURL
- log.c (submodule)
- pugixml (submodule, checkout tags newest please)
- inih (submodule)
- googletest (test)
currenly, supported platform only linux. I have no plans to make a windows version.
make sure all dependencies are installed, and you need several GB of ram.
pacman
sudo pacman -Syu
sudo pacman -S cmake boost openssl zlib curl fmt
optional (testing)
sudo pacman -S gtest
git clone https://github.com/fadhil-riyanto/tgbot-cpp
cd tgbot-cpp
cmake .
make -j4
sudo make install
this server make your bot fast than default api.telegram.org
git clone --recursive https://github.com/tdlib/telegram-bot-api.git
cd telegram-bot-api
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --target install
nb: use -DCMAKE_BUILD_TYPE=debug
if you want debug binary mode
start the service, you need api_id and api_hash from https://my.telegram.org/
telegram-bot-api --api-id=YOUR_API_ID --api-hash=YOUR_API_HASH --local --http-ip-address=127.0.0.1
git clone https://github.com/fadhil-riyanto/fadhil-riyanto-bot.git
cd fadhil-riyanto-bot
git submodule update
mkdir build
cmake ..
make -j4
This will use api.telegram.org instead selfhosted server, you can skip step 3
add add_compile_definitions("-DSERVER_ENV")
to the CMakeLists.txt
license: GPL-3.0
Fadhil Riyanto [email protected]