-
Notifications
You must be signed in to change notification settings - Fork 26
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
Light bot for specific user id #42
Comments
Hi @muk3shb, I've just uploaded a new release 2.0.8 with this bug fixed. You need to take care with command ( words preceded by "/") coming from group, because Telegram in that case add automatically the id of group like this for example: /my_command@myGroupName You need to handle this messages in a different way than the lightBot.ino example do.
|
Sir, I executed this, it is working fine. I have few questions to ask.. Here they are..
My concern - If someone who knows the command other than the user then the BOT will work for the actual user and the user who knows the command.
The BOT works as universal so i think there's something which is fixed on the working side of the bot. |
When your bot receive a new message, inside the struct
|
This is Compiling well and on the output side, Only Default case is being executed. How can i call for "insert pw" Here in the code I have just wrote tha passkey, pley don't confused i haven't assigned any passkey yet.
|
MessageDocument type is when you receive a binary file as attached document (as in case for a new firmware).
|
Thanks sir, i got the refrence and this is working fine. However, Since i have defined the lightbot outside switch structure, it is easily accessible. how i make the loop end by turning lightbot on and reverting back to first step or welcome msg step ? switch (msgType) {
if (msgText.indexOf("/light_on") > -1) { // if the received message contains /light_on"... |
Thankyou So much!! I found that code on the example and with little changes, it is working!! i have not changed anything just very minute changes. There are no errors but the message is continuously generating. Here is the code..
// i am reverifying the chatid by using simple operator and it is working!! but the bot is continuosly generating the message. the code that i have mentioned will work fine
Originally posted by @muk3shb in #41 (comment)
The text was updated successfully, but these errors were encountered: