dianartanto

node function 5

Feb 16th, 2026
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.68 KB | Source Code | 0 0
  1. var opts = {
  2.     reply_markup: JSON.stringify({
  3.         "inline_keyboard": [[
  4.             {
  5.                 "text": "R7 ON",
  6.                 "callback_data": "30"
  7.             },
  8.             {
  9.                 "text": "R7 OFF",
  10.                 "callback_data": "31"
  11.             },
  12.             {
  13.                 "text": "R8 ON",
  14.                 "callback_data": "32"
  15.             },
  16.             {
  17.                 "text": "R8 OFF",
  18.                 "callback_data": "33"
  19.             }]
  20.         ]
  21.     })
  22. };
  23. msg.error = false;
  24. msg.payload.content = 'Kontrol R7 & R8';
  25. msg.payload.options = opts;
  26. msg.payload.chatId = xxxxxxxxxxx;
  27. msg.payload.type = "message";
  28. return [msg];
  29.  
Advertisement
Add Comment
Please, Sign In to add comment