There is a solution that I can think of. According to the Telegram API Documentation , you can pass an optional parameter switch_inline_query. This is not an application switch_inline_query, but it can do what you want. Your code will be like this:
$keyboard = [
'inline_keyboard' => [
[['text' => 'forward me to groups'], 'switch_inline_query' => 'this is a message'],
]];
HTTPRequest("sendMessage", [
"chat_id" => $request["message"]["chat"]["id"],
"text" => "this is a message",
"reply_markup" => json_encode($keyboard)
]);
inline , :
@Yourbot This is a message
.