From b5f9a69d8bba76e5485f523bfad3caae81dedf8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=8EAhJ?= Date: Tue, 8 Aug 2023 19:43:28 +0330 Subject: [PATCH] Admit InlineQuery with wrapUpdate method --- src/MTProtoTools/UpdateHandler.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MTProtoTools/UpdateHandler.php b/src/MTProtoTools/UpdateHandler.php index d8541340e..331a4815f 100644 --- a/src/MTProtoTools/UpdateHandler.php +++ b/src/MTProtoTools/UpdateHandler.php @@ -27,6 +27,7 @@ use Amp\Http\Client\Response; use Amp\TimeoutException; use danog\MadelineProto\API; use danog\MadelineProto\EventHandler\AbstractMessage; +use danog\MadelineProto\EventHandler\InlineQuery; use danog\MadelineProto\EventHandler\Message; use danog\MadelineProto\EventHandler\Message\ChannelMessage; use danog\MadelineProto\EventHandler\Message\GroupMessage; @@ -344,6 +345,7 @@ trait UpdateHandler 'updateInlineBotCallbackQuery' => isset($update['game_short_name']) ? new InlineGameQuery($this, $update) : new InlineButtonQuery($this, $update), + 'updateBotInlineQuery' => new InlineQuery($this, $update), default => null }; }