I'm using telegram bot api for implementing an inline bot. For sending query result to the user, I'm using answerInlineQuery
method in this way. This is just an example for showing a photo that exist on telegram server to user:
$results = array(
array(
"type" => "photo",
"id" => "1",
"photo_file_id" => the file id,
"title" => "test title",
"description" => "test description",
"caption" => "test caption",
"parse_mode" => "HTML"
),
);
$postFields["results"] = json_encode($results);
$postFields["cache_time"] = 0;
//send $postFields to telegram bot api server with curl
This works and after user sending inline query, one image shows as the result list. But the problem is two fields title
and description
does not show in the result list, even these are exist in telegram api documentation here.
What's is the problem and whay these two fields does not present in the result list?