This example shows how to program a Telegram Bot that will alert you if there is a recent earthquake somewhere in the world.
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j8
./earthquake_bot YOUR_BOT_TOKEN
- Open the Telegram mobile app and search BotFather
- Send BotFather a command /newbot
- Follow instructions to create a new Bot
- After you finish the instructions, you will receive a Bot Token, make sure you keep it secured.