Closed ihorBielovol closed 1 year ago
$bot->inlineQuery(function($update) use ($bot){
$content = new Text('artpro.dev', 'html');
$result = new Article(time(),'Title', 'description',null,null,null, $content);
$bot->answerInlineQuery($update->getId(), [$result]);
$bot->sendMessage($update->getId(), $update->getid().$update->getQuery());
});
How to use answerInlineQuery? can you give me an example?