Get notifications in direct your telegram channel or group or DM once a new video is uploaded by your favourite YouTube creator(s)!
- Fork (and star) the repository.
- Head on to deno deploy, and connect with your GitHub.
- Search for "YouTubeFeeds", choose the
denobranch, and select automatic deployments, and the file "serverless.ts". - Add the variables
BOT_TOKEN,OWNERS,REDIS_URI,REDIS_PASSWORDand hit "Link". - Once deployed, copy the deployment URL, and open
https://api.telegram.org/bot<BOT_TOKEN>/setWebhook?url=<copied_URL>/<BOT_TOKEN>(without < and >) and hit enter.
You would get a message saying webhook was set. Voila, the bot is up and running!
- Open a telegram chat with the bot, and send
/startto check if it's working. - Use the command
/addto add a youtube channel to your feed. You can add by using the old youtube channelId links (/add https://www.youtube.com/channel/UCykFIBKkj5ce3SggtaYSwtQ) as well as the new channel username feature (/add @xditya). - Use
/listto view and remove added channels from the chat to stop receiving notifications.
Other than the bot supporting the new YouTube username feature, one deployed bot can now be used in multiple telegram chats to get notifications from multiple YouTube channels (unlike what it was before).
- Subscribe to my YouTube channel, it's free!
- Donate for my works.