mirror of
https://gitlab.com/ifiction/ifhub-telegram.git
synced 2024-10-22 22:15:31 +00:00
indexnow request
This commit is contained in:
parent
0a0dfce50a
commit
219e244fcf
2 changed files with 5 additions and 0 deletions
4
bot.php
4
bot.php
|
@ -156,6 +156,10 @@ foreach ($articles as $article) {
|
||||||
file_put_contents('.lastrun', time());
|
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 {
|
} else {
|
||||||
echo $description."\n";
|
echo $description."\n";
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,3 +8,4 @@ TELEGRAM_API_KEY: some-key-here
|
||||||
TELEGRAM_BOT_NAME: bot name
|
TELEGRAM_BOT_NAME: bot name
|
||||||
TELEGRAM_CHAT_ID: id
|
TELEGRAM_CHAT_ID: id
|
||||||
BITLY_TOKEN: token
|
BITLY_TOKEN: token
|
||||||
|
INDEXNOW: see https://www.bing.com/indexnow
|
||||||
|
|
Loading…
Reference in a new issue