EdJoPaTo / grammy-inline-menu

Inline Menus for Telegram made simple. Successor of telegraf-inline-menu.
MIT License
357 stars 44 forks source link

Menu button that opens a link #140

Closed newtoniumx3 closed 3 years ago

newtoniumx3 commented 3 years ago

Describe your goal Open URL from a button press.

Expected I'm trying to add a button in my submenu that when clicked opens a URL in the browser. How can I do this?

module.exports = () => {
  const subMenuTemplate = new MenuTemplate((ctx) => {
    return {
      text: 'Menu',
      parse_mode: 'Markdown'
    }
  });

  subMenuTemplate.manualRow(backButtonRow());

  return subMenuTemplatePurge;
};
EdJoPaTo commented 3 years ago

Take a look on the FAQ in the readme: How can I show an url button?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.