In Domoticz under Setup / Settings / Notifications, Custom HTTP Action - set the Enabled tick box, add the id (1234567) identified earlier to the #TO field and then add the necesary https url to the URL/Action field: Press the Test button and then Apply Settings.The above sendmessage method works with a single user.The sign up process is very straightforward, and shouldn’t take longer than a few minutes.
Curl can be directly sent by Lua using the os.execute function: command Array = token = "0000000: KEYKEYKEYKEYKEYKEY" chatid = 12345678 message = 'This is from Lua and another minute has gone by!
Once you’ve picked a name and a username, the Bot Father will reply with your bot’s token. You can add the bot by searching for the username you picked, or use the convenient link provided by the Bot Father.
To send a message through the Telegram bot API, the bot needs to provide the ID of the chat it wishes to speak in.
This is how you’ll add the bot to Telegram to begin interacting with it.
You might, for example, name your bot “Bob’s Pet Bot” and have a username of Bobs Pet Bot.
Search for Chatid dating:
In June 2015 Telegram introduced a bot platform: https://telegram.org/blog/bot-revolution, using this approach there is no need to install any software on your Domoticz system in order to use Telegram purely for notification.