Hi,
I’m running into problems while trying to send queries or messages to an telegram group.
The problem is the telegram chatIDs that belong to a group has a leading - sign.
e.g. “-2173987325983”
My telegram things file has 2 chatIDs defined, one bot and one group.
Thing telegram:telegramBot:HQGroup "Telegram Bot" [ botToken="901234547:AAF3BqIfH-S06zjnlb0YeL1dnRpA9Nt99zo", chatIds="-1234570420082","987617487", parseMode="HTML" ] {
Channels:
DateTime : lastMessageDate
String : lastMessageText
String : lastMessageName
String : lastMessageURL
String : lastMessageUsername
String : chatId
String : replyId
}
if I try to send a message to both without defining a chatID everything runs just fine
telegramAction.sendTelegramQuery("Testschalter gedrückt. Soll ich den Schalter wieder ausschalten?", "Reply_Test", "Ja", "Nein")
also with my personal chatID
telegramAction.sendTelegramQuery(987617487,"Testschalter gedrückt. Soll ich den Schalter wieder ausschalten?", "Reply_Test", "Ja", "Nein")
but sending to a group seems not to be possible because of the - sign.
telegramAction.sendTelegramQuery(-1234570420082,"Testschalter gedrückt. Soll ich den Schalter wieder ausschalten?", "Reply_Test", "Ja", "Nein")
I also tried to quote the chatID
“-1234570420082”
‘-1234570420082’
Has anyone an idea what to try next, or is this just not covered by the binding and I have to report a bug?