notification about new live streams from YouTube to your Telegram channel
dm9pZCAq 05bc046691 don't complain if no videos found | 3 år sedan | |
---|---|---|
.gitignore | 4 år sedan | |
LICENSE | 4 år sedan | |
README.md | 3 år sedan | |
config.py | 3 år sedan | |
database.py | 3 år sedan | |
get_chat_id.py | 4 år sedan | |
get_yt_id.py | 3 år sedan | |
invidious.py | 3 år sedan | |
main.py | 3 år sedan | |
requirements.txt | 4 år sedan |
util for notification about new live streams from YouTube to your Telegram channel
python
>= 3.8token
form BotFatherapi_id
and api_id
form telegram.orgCHAT_ID
could be obtained with get_chat_id.py$ python3 -m venv venv
$ . ./venv/bin/activate
$ pip install -r requirements.txt
$ python -OO -- main.py
[
{
"id": "UC2eYFnH61tmytImy1mTYvhA"
},
{
"id": "UCVls1GmFKf6WlTraIb_IaJg",
"timeout": 300,
"chat": 1010101
}
]
id
- channel id obtained with get_yt_id.pytimeout
- timeout in seconds between new videos info requestschat
- you can specify another Telegram chat locally,
to use it instead of CHAT_ID
from config.pyget id
of telegram channel for CHAT_ID
in config.py
before running you need specify your API_ID
, API_HASH
and TOKEN
in config.py
then add bot to your channel and send any message to this channel
and bot will print id
of your channel
get id
of YouTube channel by name
$ python3 get_yt_id.py https://www.youtube.com/c/LukeSmithxyz
UC2eYFnH61tmytImy1mTYvhA