Skip to content

lunks/telegram-youtube-notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Telegram Youtube Notifier

A simple Telegram bot that notify groups when a new youtube video has been posted to a channel using a memory-based cache.

Usage

const telegramYoutubeNotifer = require('telegram-youtube-notifier').default

// Setup your Telegram Bot token
const telegramToken = token

// Comma-separated list of chat ids
const telegramChatIds = "chatId1,chatId2" 

// Youtube Channel ID you want to be notified of
const youtubeChannelId = "UCk5BcU1rOy6hepflk7_q_Pw"


// Message you want the bot to use before the link i.e.
// New video! https://www.youtube.com/watch?v=gvsQ09wM-bU
const message = "New Video!"

telegramYoutubeNotifer({
  telegramToken,
  telegramChatIds,
  youtubeChannelId,
  message
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published