dianartanto

node function 3

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