Dtgbot is working perfect and love to use it. For now I want to go a step further so my 'TaskerBot' can talk to my 'DomoticzBot'. As bots can talk to eachother in private, the only way they can talk to eachother is in a channel.
So now I got a channel with me and my two bots. The thing is that dtgbot should understand the specific code from the channel.
If this will work than I can build my own geofence task working without having to open a port on my router of enable my VPN.
The reponse from a message and a channel is pretty the same, but I don't know anything about the dtgbot code.
Channel
Code: Select all
{
"update_id":602971###,
"channel_post":{
"message_id":5,
"author_signature":"#",
"chat":{
"id":-100##########,
"title":"#",
"username":"#",
"type":"channel"
},
"date":1533288546,
"text":"Test"
}
}
Code: Select all
{
"update_id":684538###,
"message":{
"message_id":118,
"from":{
"id":#########,
"is_bot":false,
"first_name":"#",
"username":"#",
"language_code":"en-us"
},
"chat":{
"id":#########,
"first_name":"#",
"username":"#",
"type":"private"
},
"date":1533290530,
"text":"Hi"
}
)