Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SOLVED] hide inlinekeyboard after click #71

Open
Sparviero-Sughero opened this issue Jul 18, 2024 · 1 comment
Open

[SOLVED] hide inlinekeyboard after click #71

Sparviero-Sughero opened this issue Jul 18, 2024 · 1 comment

Comments

@Sparviero-Sughero
Copy link

Sparviero-Sughero commented Jul 18, 2024

i made this code

      /* inlinekeyboard */
      $keyboard_buttons = [
        new InlineKeyboardButton(['text' => $ico_enab.' Enabled', 'callback_data' => "switchcam;".$row['camera_name'].';enable']),
        new InlineKeyboardButton(['text' => $ico_disab.' Disabled', 'callback_data' => "switchcam;".$row['camera_name'].';disable']),
      ];
      $inline_keyboard = new InlineKeyboard($keyboard_buttons);

it is possible to hide the keyboard (or delete entire message) wher user click a button?

@Sparviero-Sughero Sparviero-Sughero changed the title hide inline keyboard after click hide inlinekeyboard after click Jul 18, 2024
@Sparviero-Sughero
Copy link
Author

solved with

      return Request::editMessageText([
          'chat_id' => $callback_query->getMessage()->getChat()->getId(),
          'message_id' => $callback_query->getMessage()->getMessageId(),
          'text' => "text",
          'reply_markup' => $inline_keyboard_markup,
          'parse_mode' => 'Markdown',
      ]);

@Sparviero-Sughero Sparviero-Sughero changed the title hide inlinekeyboard after click [SOLVED] hide inlinekeyboard after click Jul 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant