Skip to content

Commit

Permalink
update telegram group message example
Browse files Browse the repository at this point in the history
  • Loading branch information
hafidhh committed Nov 21, 2022
1 parent fb97cab commit 489d9eb
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions examples/Telegram_Group/Telegram_Group.ino
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() {

}

0 comments on commit 489d9eb

Please sign in to comment.