Update README.md

This commit is contained in:
Moritz Sternemann
2015-12-29 16:50:20 +01:00
parent e1667adb7c
commit d6d7ef996e

View File

@ -5,24 +5,29 @@ You need a bot token to make API calls. Text the [@botfather](https://telegram.m
## Usage
Create a lib directory in your project directory and cd into it:
mkdir lib && cd lib
```sh
mkdir lib && cd lib
```
Clone the repo to your projects source directory:
git clone https://github.com/iMoritz/QtTelegramBot.git
```bash
git clone https://github.com/iMoritz/QtTelegramBot.git
```
Alternatively you can add QtTelegramBot as a git submodule to always stay up-to-date:
git submodule add https://github.com/iMoritz/QtTelegramBot.git
```bash
git submodule add https://github.com/iMoritz/QtTelegramBot.git
```
In your project file (*project*.pro) add this include:
include($$PWD/lib/QtTelegramBot/QtTelegramBot.pri)
```qmake
include($$PWD/lib/QtTelegramBot/QtTelegramBot.pri)
```
Now you can use the Bot classes using:
#include "qttelegrambot.h"
```c++
#include "qttelegrambot.h"
```
Everything in *QtTelegramBot* is in the `Telegram` namespace.