Skip to content

fadhil-riyanto/fadhil-riyanto-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fadhil's telegram bot

personal assistant telegram bot

Dependencies

build instructions

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.

1. Install dependencies

pacman

sudo pacman -Syu
sudo pacman -S cmake boost openssl zlib curl fmt

optional (testing)

sudo pacman -S gtest

2. build tgbot-cpp from source

git clone https://github.com/fadhil-riyanto/tgbot-cpp
cd tgbot-cpp
cmake .
make -j4
sudo make install

3. build telegram-bot-api server

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

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

4. build the bot

git clone https://github.com/fadhil-riyanto/fadhil-riyanto-bot.git

cd fadhil-riyanto-bot
git submodule update
mkdir build
cmake ..
make -j4

Licence

license: GPL-3.0

Maintainer

Fadhil Riyanto