Skip to content

Commit e2c901f

Browse files
authored
Merge pull request #158 from HappyFacade/patch-1
Add syntax highlighting to readme
2 parents 3a350d9 + 11c38b4 commit e2c901f

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ Each library only supported a single type of Arduino and had different features
2121

2222
The downloaded code can be included as a new library into the IDE selecting the menu:
2323

24-
Sketch / include Library / Add .Zip library
24+
```
25+
Sketch / include Library / Add .Zip library
26+
```
2527

2628
You also have to install the ArduinoJson library written by [Benoît Blanchon](https://github.com/bblanchon). Search for it on the Arduino Library manager or get it from [here](https://github.com/bblanchon/ArduinoJson).
2729

@@ -33,14 +35,18 @@ To generate your new Bot, you need an Access Token. Talk to [BotFather](https://
3335

3436
Include UniversalTelegramBot in your project:
3537

36-
#include <UniversalTelegramBot.h>
38+
```ino
39+
#include <UniversalTelegramBot.h>
40+
```
3741

3842
and pass it a Bot token and a SSL Client (See the [examples](https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot/tree/master/examples) for more details)
3943

40-
#define BOTtoken "XXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
41-
// WiFiSSLClient client; //For 101 boards
42-
WiFiClientSecure client; //For ESP8266 boards
43-
UniversalTelegramBot bot(BOTtoken, client);
44+
```ino
45+
#define BOTtoken "XXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
46+
// WiFiSSLClient client; //For 101 boards
47+
WiFiClientSecure client; //For ESP8266 boards
48+
UniversalTelegramBot bot(BOTtoken, client);
49+
```
4450
4551
*NOTE:* This library has not been tested with the 101 boards as I do not have a compatible board. [If you can help please let us know!](https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot/issues/2)
4652

0 commit comments

Comments
 (0)