How to use the puregram.Keyboard.textButton function in puregram

To help you get started, we’ve selected a few puregram examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github nitreojs / puregram / docs / examples / keyboards.js View on Github external
telegram.updates.hear('/keyboard', (context) => {
  return context.send('There\'s your keyboard!', {
    reply_markup: Keyboard.keyboard([
      [
        Keyboard.textButton('Button'),
      ],

      [
        Keyboard.textButton('Another button'),
        Keyboard.textButton('But there\'s more!'),
      ],

      [
        Keyboard.textButton('So'),
        Keyboard.textButton('many'),
        Keyboard.textButton('buttons!'),
      ],
    ]).resize(),
  });
});
github nitreojs / puregram / docs / examples / keyboards.js View on Github external
telegram.updates.hear('/keyboard', (context) => {
  return context.send('There\'s your keyboard!', {
    reply_markup: Keyboard.keyboard([
      [
        Keyboard.textButton('Button'),
      ],

      [
        Keyboard.textButton('Another button'),
        Keyboard.textButton('But there\'s more!'),
      ],

      [
        Keyboard.textButton('So'),
        Keyboard.textButton('many'),
        Keyboard.textButton('buttons!'),
      ],
    ]).resize(),
  });
});
github nitreojs / puregram / docs / examples / keyboards.js View on Github external
telegram.updates.hear('/keyboard', (context) => {
  return context.send('There\'s your keyboard!', {
    reply_markup: Keyboard.keyboard([
      [
        Keyboard.textButton('Button'),
      ],

      [
        Keyboard.textButton('Another button'),
        Keyboard.textButton('But there\'s more!'),
      ],

      [
        Keyboard.textButton('So'),
        Keyboard.textButton('many'),
        Keyboard.textButton('buttons!'),
      ],
    ]).resize(),
  });
});
github nitreojs / puregram / docs / examples / keyboards.js View on Github external
telegram.updates.hear('/keyboard', (context) => {
  return context.send('There\'s your keyboard!', {
    reply_markup: Keyboard.keyboard([
      [
        Keyboard.textButton('Button'),
      ],

      [
        Keyboard.textButton('Another button'),
        Keyboard.textButton('But there\'s more!'),
      ],

      [
        Keyboard.textButton('So'),
        Keyboard.textButton('many'),
        Keyboard.textButton('buttons!'),
      ],
    ]).resize(),
  });
});
github nitreojs / puregram / docs / examples / keyboards.js View on Github external
telegram.updates.hear('/keyboard', (context) => {
  return context.send('There\'s your keyboard!', {
    reply_markup: Keyboard.keyboard([
      [
        Keyboard.textButton('Button'),
      ],

      [
        Keyboard.textButton('Another button'),
        Keyboard.textButton('But there\'s more!'),
      ],

      [
        Keyboard.textButton('So'),
        Keyboard.textButton('many'),
        Keyboard.textButton('buttons!'),
      ],
    ]).resize(),
  });
});
github nitreojs / puregram / docs / examples / keyboards.js View on Github external
telegram.updates.hear('/keyboard', (context) => {
  return context.send('There\'s your keyboard!', {
    reply_markup: Keyboard.keyboard([
      [
        Keyboard.textButton('Button'),
      ],

      [
        Keyboard.textButton('Another button'),
        Keyboard.textButton('But there\'s more!'),
      ],

      [
        Keyboard.textButton('So'),
        Keyboard.textButton('many'),
        Keyboard.textButton('buttons!'),
      ],
    ]).resize(),
  });
});