Closed alirezadp10 closed 4 years ago
You can retrieve the unique id from the chosen result, which should be used to get the content you need (from the array of articles generated).
$unique_id = $this->getChosenInlineResult()->getResultId();
Does that get you what you need? You'll need to extract the logic that generates the articles array, to be able to access it from the ChoseninlineresultCommand
as well.
@alirezadp10G Did you manage to get it to work?
hey guys I try to implement telegram bot that behave like @imdb but unfortunately when I get the
$this->getChosenInlineResult()
method in theChoseninlineresultCommand.php
I could not find themessage_id
of the inline message that created withinput_message_content
parameter ofInlineQueryResultArticle
methodthe main question is how can I represent the result of item selected in specific chat?
here is my code:
InlinequeryCommand.php
ChoseninlineresultCommand.php