Hello,
I have Telegram running and I can send and receive text messages.
I can also send buttons, but nothing comes back to the Telegram receiver when a button is clicked.
I have no idea where else to look or what to check.
This is my test to send the button
[{"id":"callback_handler","type":"function","z":"716b40efe6f3823e","name":"Callback auswerten","func":"if (msg.payload.type === \"callback_query\") {\n const aktion = msg.payload.content;\n const antwort = (aktion === \"heizung_an\")\n ? \"Heizung wurde eingeschaltet!\"\n : (aktion === \"heizung_aus\")\n ? \"Heizung wurde ausgeschaltet!\"\n : \"Unbekannte Aktion!\";\n\n // Telegram erwartet IMMER eine Antwort bei callback_query\n return {\n payload: {\n chatId: msg.payload.chatId,\n type: 'message',\n content: antwort\n }\n };\n}\n\nreturn null;","outputs":1,"timeout":"","noerr":0,"initialize":"","finalize":"","libs":,"x":550,"y":200,"wires":[["90dbcc0849fea872","20787d840b66999b"]]},{"id":"188773d7aebf5c10","type":"telegram event","z":"716b40efe6f3823e","name":"","bot":"8d8ccc97ab1d3524","event":"callback_query","autoanswer":false,"x":240,"y":180,"wires":[["38a2ea75151eb98b","callback_handler"]]},{"id":"90dbcc0849fea872","type":"debug","z":"716b40efe6f3823e","name":"debug 80","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":860,"y":200,"wires":},{"id":"20787d840b66999b","type":"telegram sender","z":"716b40efe6f3823e","name":"","bot":"8d8ccc97ab1d3524","haserroroutput":false,"outputs":1,"x":890,"y":240,"wires":[]},{"id":"38a2ea75151eb98b","type":"debug","z":"716b40efe6f3823e","name":"debug 79","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":520,"y":140,"wires":},{"id":"f45ac2b76240b9d4","type":"function","z":"716b40efe6f3823e","name":"function 13","func":"msg.payload = {\n chatId: 44444444, // Ersetze hier deine Telegram Chat-ID\n type: \"message\",\n content: \"Was soll mit der Heizung geschehen?\",\n options: {\n reply_markup: {\n inline_keyboard: [\n [\n { text: \"Heizung AN\", callback_data: \"heizung_an\" },\n { text: \"Heizung AUS\", callback_data: \"heizung_aus\" }\n ]\n ]\n }\n }\n};\nreturn msg;\n","outputs":1,"timeout":0,"noerr":0,"initialize":"","finalize":"","libs":,"x":530,"y":240,"wires":[["20787d840b66999b"]]},{"id":"94781efeec2338e6","type":"inject","z":"716b40efe6f3823e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":260,"y":240,"wires":[["f45ac2b76240b9d4"]]},{"id":"8d8ccc97ab1d3524","type":"telegram bot","botname":"Testtobienbot","usernames":"","chatids":"","baseapiurl":"","updatemode":"polling","pollinterval":"300","usesocks":false,"sockshost":"","socksprotocol":"socks5","socksport":"6667","socksusername":"anonymous","sockspassword":"","bothost":"","botpath":"","localbotport":"8443","publicbotport":"8443","privatekey":"","certificate":"","useselfsignedcertificate":false,"sslterminated":false,"verboselogging":false}]