EdJoPaTo / grammy-inline-menu

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

Menu.interact `do()` function is executed after the second click #210

Closed snurfer0 closed 1 year ago

snurfer0 commented 1 year ago

When clicking on this button, the do() is executed only on second click. Also it does not redirect to another menu

    this.menu.interact(`My Profile ${icons.phone}`, 'some-action', {
            do: async (ctx) => {
                try {
                    console.log('press');

                    return `/${PROFILE_MENU.DEVELOPER}/`;
                } catch (error) {
                    console.error(error);
                    return '.';
                }
            },
        });