witnessmenow / Universal-Arduino-Telegram-Bot

Use Telegram on your Arduino (ESP8266 or Wifi-101 boards)
MIT License
1.09k stars 302 forks source link

How to forget messages after x-Seconds/Minutes? #267

Closed do8pgg closed 2 years ago

do8pgg commented 2 years ago

Hi,

Everything works fine in the meantime. However a small problem: If the esp8266 times is not attainable and I want to switch on a relay with /on, and send the message several times, it is done after again reach several times.

Is there a solution?

Best regards, Peter

witnessmenow commented 2 years ago

I don't think i have anything in the library that could help with that. I guess it should in theory be possible to see when the message was sent and ignore it if its old, but I don't think I parse anything like that

On Sun 12 Dec 2021, 09:23 petergeher, @.***> wrote:

Hi,

Everything works fine in the meantime. However a small problem: If the esp8266 times is not attainable and I want to switch on a relay with /on, and send the message several times, it is done after again reach several times.

Is there a solution?

Best regards, Peter

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/witnessmenow/Universal-Arduino-Telegram-Bot/issues/267, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAL5PQQJFRQKVBDHCLJZQIDUQRSX7ANCNFSM5J4BHHKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.