{"action":"created","issue":{"url":"https://api.github.com/repos/joaoricardo000/whatsapp-bot-seed/issues/23","labels_url":"https://api.github.com/repos/joaoricardo000/whatsapp-bot-seed/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/joaoricardo000/whatsapp-bot-seed/issues/23/comments","events_url":"https://api.github.com/repos/joaoricardo000/whatsapp-bot-seed/issues/23/events","html_url":"https://github.com/joaoricardo000/whatsapp-bot-seed/issues/23","id":125830183,"number":23,"title":"How to add a trigger to an external event and send a msg","user":{"login":"joyarzun","id":828211,"avatar_url":"https://avatars.githubusercontent.com/u/828211?v=3","gravatar_id":"","url":"https://api.github.com/users/joyarzun","html_url":"https://github.com/joyarzun","followers_url":"https://api.github.com/users/joyarzun/followers","following_url":"https://api.github.com/users/joyarzun/following{/other_user}","gists_url":"https://api.github.com/users/joyarzun/gists{/gist_id}","starred_url":"https://api.github.com/users/joyarzun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joyarzun/subscriptions","organizations_url":"https://api.github.com/users/joyarzun/orgs","repos_url":"https://api.github.com/users/joyarzun/repos","events_url":"https://api.github.com/users/joyarzun/events{/privacy}","received_events_url":"https://api.github.com/users/joyarzun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":12,"created_at":"2016-01-10T16:44:16Z","updated_at":"2016-01-29T00:17:28Z","closed_at":null,"body":"Hi there.\r\nI want to add an external event and this trigger a message by WA. The external event is other python process that has motion detection. So, when it detects motion this should trigger a msg to whatsapp-bot. In your project, the event is a message received that trigger a response. In a wider context, I have a raspberry pi with a cam. I want that RPI send me a message if the cam detect motion. How I can accomplish this?  Any advice or help are grateful"},"comment":{"url":"https://api.github.com/repos/joaoricardo000/whatsapp-bot-seed/issues/comments/176493414","html_url":"https://github.com/joaoricardo000/whatsapp-bot-seed/issues/23#issuecomment-176493414","issue_url":"https://api.github.com/repos/joaoricardo000/whatsapp-bot-seed/issues/23","id":176493414,"user":{"login":"x23piracy","id":772243,"avatar_url":"https://avatars.githubusercontent.com/u/772243?v=3","gravatar_id":"","url":"https://api.github.com/users/x23piracy","html_url":"https://github.com/x23piracy","followers_url":"https://api.github.com/users/x23piracy/followers","following_url":"https://api.github.com/users/x23piracy/following{/other_user}","gists_url":"https://api.github.com/users/x23piracy/gists{/gist_id}","starred_url":"https://api.github.com/users/x23piracy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/x23piracy/subscriptions","organizations_url":"https://api.github.com/users/x23piracy/orgs","repos_url":"https://api.github.com/users/x23piracy/repos","events_url":"https://api.github.com/users/x23piracy/events{/privacy}","received_events_url":"https://api.github.com/users/x23piracy/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T00:17:28Z","updated_at":"2016-01-29T00:17:28Z","body":"Hi,\r\n\r\nok i have the bot now starting up with no errors. When i was rude, i was overliking your post and i was a little bit blind because you already gave me the solution. Sorry for this.\r\n\r\nWell since the bot starts no without error i created your example script to send a test message, changed the number to my cell phone number and executed the script:\r\n\r\n`root@NbI-1527:/tmp# python test.py\r\nTraceback (most recent call last):\r\n  File \"test.py\", line 9, in <module>\r\n    body=\"Test Message!\")\r\nTypeError: basic_publish() got an unexpected keyword argument 'to'`\r\n\r\nIs a code change needed?\r\n\r\n\r\nRegards X23"}}