This example shows how to program a Telegram Bot that displays the weather information of a city using the weather api.
mkdir build && cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make -j8
./weather_bot YOUR_BOT_TOKEN WEATHER_API_KEY
- 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.