Using Telegram

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
bing69
Posts: 139
Joined: Thursday 05 June 2014 10:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: 's-Hertogenbosch, NL
Contact:

Using Telegram

Post by bing69 »

I get on my way slowly. Have already made various scripts and blocky's.
Pushover also works but I have a question about how I get telegram (bone) method working.
Does this work in the same way as in SH?


curl --data chat_id=19959367 --data-urlencode "text=Some complex text $25 78%" "https://api.telegram.org/bot_mijn code/sendMessage?chat_id=Mijn_id&text=Er is aangebeld!"
randytsuch
Posts: 90
Joined: Sunday 20 March 2016 18:56
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: LA, Ca USA
Contact:

Re: Using Telegram

Post by randytsuch »

Did you try something like this?

Code: Select all

os.execute('curl command to send telegram .....')
I haven't used telegram so I don't know the specifics of using it
Milifax
Posts: 69
Joined: Friday 23 June 2017 9:27
Target OS: Linux
Domoticz version: 2024.4
Location: The Netherlands
Contact:

Re: Using Telegram

Post by Milifax »

bing69
Posts: 139
Joined: Thursday 05 June 2014 10:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: 's-Hertogenbosch, NL
Contact:

Re: Using Telegram

Post by bing69 »

randytsuch wrote:Did you try something like this?

Code: Select all

os.execute('curl command to send telegram .....')
I haven't used telegram so I don't know the specifics of using it
Thanks, but that not works :oops:
bing69
Posts: 139
Joined: Thursday 05 June 2014 10:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: 's-Hertogenbosch, NL
Contact:

Re: Using Telegram

Post by bing69 »

Thanks !, The same syntax (except extra ") as in LUA :)
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest