1
0
Fork 0
mirror of https://gitlab.com/ifiction/ifhub-telegram.git synced 2024-04-29 07:39:33 +03:00

indexnow request

This commit is contained in:
Alexander Yakovlev 2023-10-18 13:06:15 +06:00
parent 0a0dfce50a
commit 219e244fcf
2 changed files with 5 additions and 0 deletions

View file

@ -156,6 +156,10 @@ foreach ($articles as $article) {
file_put_contents('.lastrun', time());
}
}
if (!empty($config['INDEXNOW'])) {
$client = new \GuzzleHttp\Client();
$client->request('GET', 'https://www.bing.com/indexnow?url='.$link.'&key='.$config['INDEXNOW']);
}
} else {
echo $description."\n";
}

View file

@ -8,3 +8,4 @@ TELEGRAM_API_KEY: some-key-here
TELEGRAM_BOT_NAME: bot name
TELEGRAM_CHAT_ID: id
BITLY_TOKEN: token
INDEXNOW: see https://www.bing.com/indexnow