I have
$inline_button1 = array("text"=>"Text","login_url"=>array("url" => "https://example.com"));
$inline_keyboard = [[$inline_button1]];
$keyboard=array("inline_keyboard"=>$inline_keyboard);
$replyMarkup = json_encode($keyboard);
$tg->send2($id, 'Test', $replyMarkup);
Function send2 look as
public function send2($id, $message, $reply) {
$data = array(
'chat_id' => $id,
'text' => $message,
'reply_markup' => $reply,
'parse_mode' => 'html',
);
$out = $this->request('sendMessage', $data);
return $out;
}
If i use 'url' instead 'login_url' it works fine.
I find the problem, it was needed specify parameter DOMAIN in botfather setting
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.