Skip to content

Telegram bot showing weather and exchange rates written in C++

License

Notifications You must be signed in to change notification settings

dan4ik605743/tgbot_cpp

Repository files navigation

Ubuntu CodeFactor

tgbot_cpp

A telegram bot written in C++ using the tgbot-cpp telegram API library. Able to send data about the weather and exchange rates.

Dependencies

  • boost(>=1.75)
  • cmake
  • openssl
  • curl
  • zlib

Bot compilation

git clone https://github.com/dan4ik605743/tgbot_cpp
cd tgbot_cpp
mkdir build && cd build
cmake ../
cmake --build .

Build options

-DTGBOT_ENABLE_INLINE_KEYBOARD  # Enable support inline keyboard in bot

Usage

At startup, you need to enter 2 parameters, the api key from openweathermap and the bot token itself.

tgbot -a ~/api.txt -t ~/token.txt

About

Telegram bot showing weather and exchange rates written in C++

Topics

Resources

License

Stars

Watchers

Forks