-
Notifications
You must be signed in to change notification settings - Fork 315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add multiple User_ID #310
Comments
Hope this helps! |
Thx you very much fror your support. This is what I came out as a script: #include <ESP8266WiFi.h> // Wifi network station credentials // Use @MyidBot (IDBot) to find out the chat ID of an individual or a group const String authorized_chat_ids[] = { "11111111", "22222222" }; const int numberUsers = sizeof(authorized_chat_ids) / sizeof(authorized_chat_ids[0]); bool isValidUser(String chat_id, String from_name) X509List cert(TELEGRAM_CERTIFICATE_ROOT); void setup() { // attempt to connect to Wifi network: Serial.print("Retrieving time: "); bot.sendMessage(CHAT_ID, "Bot started up", ""); void loop() { } I tried to compile the code without point 4, and get this error: Can you please take a look at the script and correct stuff, to be able to use it with 2 user_ID, and this way , I would be able to replicate it for 3 or more user. |
This is a user level thing
|
Hello, it is more a help requested than an issue.
Can somebody please let me know how to add another User_ID at line #36 ??
there: #define CHAT_ID "XXXXXXXXXX"
I want to add more than 1 Telegram number/ User_ID, meaning, being able to receive notification from Arduino to multiple devices.
Should I maybe repeat this line with the others ID ??
Thx guys
The text was updated successfully, but these errors were encountered: