Since Telegram introduced Bots there is a simple way to tell Domoticz to send your Notifications to your Telegram-Account. You have to start a new Bot, start a chat and tell Domoticz to send the notifications to this chat. You can't control Domoticz via Telegram with this method, but you can get Notifications.
- Install Telegram
- start a chat with BotFather. He will show you a message beginning with "They call me the Botfather....."
- tell Botfather "/newbot"
- write the name of your bot and hit Enter
- Now give your bot a username. it must end with "bot". Simply write it and type Enter
- Now you get an address for you bot and - important!- an access token.
- Start a Chat with your new Bot identified by the username you gave him.
- type /start Enter
- tell the bot "Hello World" or something similar, the message does not matter.
- in your Browser open the address https://api.telegram.org/bot<yourBotToken>/getUpdates
- now you get a message back in your browser (a webpage opens). There is a part "{"id":<YourChatId,"first_name":...." Notice the chatId
- got to your Domoticz Page => Setup => Settings => Notifications. on the right you will find "Custom HTTP / Action"
- Click "Enabled"
- in the field "URL/Action" enter https://api.telegram.org/bot<YourBotApi ... t=#MESSAGE.
For <YourBotApi> enter the API Key BotFather told you during Bot creation, for <YourChatId> your Chatid. - Hit "Test" and you should get the Domoticz Test Message
If you want a specific Userpic for the bot, e.g. the Domoticz Logo, you can tell BotFather "/setuserpic", then pic your Bot from the list and upload a profile pic.
That's it, have fun!