-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update telegram group message example
- Loading branch information
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Example Telegram Group Message | ||
// Github : | ||
// https://github.com/hafidhh | ||
// https://github.com/hafidhh/Callmebot_ESP8266 | ||
|
||
#include <ESP8266WiFi.h> | ||
#include <Callmebot_ESP8266.h> | ||
|
||
const char* ssid = "your_ssid"; | ||
const char* password = "your_password"; | ||
|
||
String apiKey = "@your_username/phonenumber"; | ||
String message = "your_text_message"; | ||
|
||
void setup() { | ||
Serial.begin(115200); | ||
|
||
WiFi.begin(ssid, password); | ||
Serial.println("Connecting"); | ||
while(WiFi.status() != WL_CONNECTED) { | ||
delay(500); | ||
Serial.print("."); | ||
} | ||
Serial.println(""); | ||
Serial.print("Connected to WiFi network with IP Address: "); | ||
Serial.println(WiFi.localIP()); | ||
|
||
// Telegram Group Message | ||
telegramGroup(apiKey, message); | ||
} | ||
|
||
void loop() { | ||
|
||
} |