Skip to content
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

Telegram bot #135

Closed
PascalSI opened this issue Mar 9, 2020 · 5 comments
Closed

Telegram bot #135

PascalSI opened this issue Mar 9, 2020 · 5 comments
Labels
enhancement New feature or request

Comments

@PascalSI
Copy link

PascalSI commented Mar 9, 2020

Hi, no one tried to use this library with the Telegram bot to control the alarm and receive the event?
I want to try, but not knowing where to start ... I am not very good at programming.

@taligentx
Copy link
Owner

Hi @PascalSI - Iate response, you can find an example of using ESP8266 with Telegram at:
https://www.instructables.com/id/Telegram-Bot-With-ESP8266/

You can look at the built-in PushBullet example sketch and modify it for Telegram based on the above example. If you get this working, feel free to add a PR and I'll add it to the examples.

@taligentx taligentx added enhancement New feature or request help wanted Extra attention is needed labels Oct 2, 2020
taligentx added a commit that referenced this issue Dec 22, 2020
…examples, support message prefix in notification examples, use root certificate for Pushbullet connections
@taligentx
Copy link
Owner

@PascalSI I've added a Telegram bot example sketch for esp8266 and esp32 that allows for control (arm/disarm) through the bot. If there are any issues with the sketch, I'll leave this issue open for feedback.

@taligentx taligentx removed the help wanted Extra attention is needed label Dec 22, 2020
@PascalSI
Copy link
Author

I got a problem when compiling, it gives this error:
C:\Users\User\Documents\Arduino\sketch_dec31a\sketch_dec31a.ino: In function 'void loop()': sketch_dec31a:134:9: error: 'class dscKeybusInterface' has no member named 'pauseStatus' dsc.pauseStatus = false; ^ sketch_dec31a:140:9: error: 'class dscKeybusInterface' has no member named 'pauseStatus' dsc.pauseStatus = true; ^ sketch_dec31a:154:7: error: 'class dscKeybusInterface' has no member named 'loop' dsc.loop(); ^ sketch_dec31a:183:15: error: 'class dscKeybusInterface' has no member named 'disabled' if (dsc.disabled[partition]) continue; ^ exit status 1 'class dscKeybusInterface' has no member named 'pauseStatus'

Could you tell me why this might be?

@taligentx
Copy link
Owner

Which version of the library are you using? The Telegram bot will only work with the current develop branch, you'll need to download this branch manually and place it in the Arduino libraries directory.

@taligentx
Copy link
Owner

The Telegram sketch is released in the new library version 2.0, feel free to re-open if there are still issues after updating the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants