- rename
config_example.phptoconfig.php - set botToken from BotFather @ Telegram
- set
CHANNEL_ID - set
SUBREDDIT_NAME
bash run.sh, that bash script will run php script always, even after an error
$SubReddit = newSubReddit($SubRedditName)
// to set the number of posts to retrieve, 1 in this example$SubReddit->SetSubRedditPostsLimit(1);
// checks for any new post every 60 seconds$SubReddit->Poll(60);