mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-06 02:58:17 +01:00
Admit InlineQuery with wrapUpdate method
This commit is contained in:
parent
366c87afa5
commit
b5f9a69d8b
@ -27,6 +27,7 @@ use Amp\Http\Client\Response;
|
|||||||
use Amp\TimeoutException;
|
use Amp\TimeoutException;
|
||||||
use danog\MadelineProto\API;
|
use danog\MadelineProto\API;
|
||||||
use danog\MadelineProto\EventHandler\AbstractMessage;
|
use danog\MadelineProto\EventHandler\AbstractMessage;
|
||||||
|
use danog\MadelineProto\EventHandler\InlineQuery;
|
||||||
use danog\MadelineProto\EventHandler\Message;
|
use danog\MadelineProto\EventHandler\Message;
|
||||||
use danog\MadelineProto\EventHandler\Message\ChannelMessage;
|
use danog\MadelineProto\EventHandler\Message\ChannelMessage;
|
||||||
use danog\MadelineProto\EventHandler\Message\GroupMessage;
|
use danog\MadelineProto\EventHandler\Message\GroupMessage;
|
||||||
@ -344,6 +345,7 @@ trait UpdateHandler
|
|||||||
'updateInlineBotCallbackQuery' => isset($update['game_short_name'])
|
'updateInlineBotCallbackQuery' => isset($update['game_short_name'])
|
||||||
? new InlineGameQuery($this, $update)
|
? new InlineGameQuery($this, $update)
|
||||||
: new InlineButtonQuery($this, $update),
|
: new InlineButtonQuery($this, $update),
|
||||||
|
'updateBotInlineQuery' => new InlineQuery($this, $update),
|
||||||
default => null
|
default => null
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user