Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lunks/telegram-youtube-notifier
https://github.com/lunks/telegram-youtube-notifier
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/lunks/telegram-youtube-notifier
- Owner: lunks
- License: mit
- Created: 2020-07-15T05:58:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T20:06:52.000Z (about 2 years ago)
- Last Synced: 2024-10-28T21:49:18.397Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 1.43 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```javascript
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
})
```