Skip to content

Commit b8536a5

Browse files
committed
last example and icons update
1 parent 03557ad commit b8536a5

File tree

2 files changed

+26
-17
lines changed

2 files changed

+26
-17
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Universal Telegram Bot Library
22

3+
![Travis CI status](https://api.travis-ci.org/witnessmenow/Universal-Arduino-Telegram-Bot.svg?branch=master)
4+
![License](https://img.shields.io/github/license/witnessmenow/Universal-Arduino-Telegram-Bot)
5+
![Release stable](https://badgen.net/github/release/witnessmenow/Universal-Arduino-Telegram-Bot/stable)
6+
37
An Arduino IDE library for using Telegram Bot API. It's designed to be used with multiple Arduino architectures.
48

59
Join the [Arduino Telegram Library Group Chat](https://t.me/arduino_telegram_library) if you have any questions/feedback or would just like to be kept up to date with the library's progress.
@@ -42,10 +46,11 @@ Include UniversalTelegramBot in your project:
4246
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)
4347

4448
```ino
45-
#define BOTtoken "XXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
49+
// Telegram BOT Token (Get from Botfather)
50+
#define BOT_TOKEN "XXXXXXXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
4651
// WiFiSSLClient client; //For 101 boards
47-
WiFiClientSecure client; //For ESP8266 boards
48-
UniversalTelegramBot bot(BOTtoken, client);
52+
WiFiClientSecure secured_client;
53+
UniversalTelegramBot bot(BOT_TOKEN, secured_client);
4954
```
5055
5156
*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)

platformio.ini

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,27 @@
11
; PlatformIO Project Configuration File
2-
;
3-
; Build options: build flags, source filter
4-
; Upload options: custom upload port, speed and extra flags
5-
; Library options: dependencies, extra library storages
6-
; Advanced options: extra scripting
7-
;
8-
; Please visit documentation for the other options and examples
9-
; http://docs.platformio.org/page/projectconf.html
10-
[common]
11-
lib_deps_external = ArduinoJson
2+
3+
; 64 ArduinoJson
4+
; by Benoit Blanchon
5+
; Repository: https://github.com/bblanchon/ArduinoJson.git
6+
; 1262 UniversalTelegramBot
7+
; by Brian Lough
8+
; Repository: https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot.git
9+
10+
[platformio]
11+
description = Universal Telegram Bot Library
12+
default_envs = d1_mini
13+
14+
[env]
15+
lib_deps =
16+
ArduinoJson
17+
monitor_speed = 115200
1218

1319
[env:d1_mini]
1420
platform = espressif8266
1521
board = d1_mini
1622
framework = arduino
17-
lib_deps = WifiManager, ${common.lib_deps_external}
1823

1924
[env:esp32dev]
20-
platform = espressif32_stage
21-
board = esp32dev
25+
platform = espressif32
26+
board = esp32doit-devkit-v1
2227
framework = arduino
23-
lib_deps = ${common.lib_deps_external}

0 commit comments

Comments
 (0)